Cosimo Cecchi 07b2dfe
Name:		gnome-weather
16d82d8
Version:	3.8.2
Cosimo Cecchi 07b2dfe
Release:	1%{?dist}
Cosimo Cecchi 07b2dfe
Summary:	A weather application for GNOME
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
License:	GPLv2+ and LGPLv2+ and MIT and CC-BY and CC-BY-SA
Cosimo Cecchi 07b2dfe
URL:		https://live.gnome.org/Design/Apps/Weather
3f6b326
Source0:	http://ftp.acc.umu.se/pub/GNOME/sources/%{name}/3.8/%{name}-%{version}.tar.xz
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
BuildRequires:	intltool
Cosimo Cecchi 07b2dfe
BuildRequires:	desktop-file-utils
Cosimo Cecchi 07b2dfe
BuildRequires:	gjs-devel
Cosimo Cecchi 07b2dfe
BuildRequires:	glib2-devel
Cosimo Cecchi 07b2dfe
BuildRequires:	gnome-common
Cosimo Cecchi 07b2dfe
BuildRequires:	gtk3-devel
Cosimo Cecchi 07b2dfe
BuildRequires:  gobject-introspection >= 1.35.9
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
# libgd is not meant to be installed as a system-wide shared library.
Cosimo Cecchi 07b2dfe
# It is just a way for GNOME applications to share widgets and other common
Cosimo Cecchi 07b2dfe
# code on an ad-hoc basis.
Cosimo Cecchi 07b2dfe
Provides:	bundled(libgd)
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
# Filter out the libgd.so() provide, since we don't want to possibly
Cosimo Cecchi 07b2dfe
# satisfy any erroneous dependency on it.
Cosimo Cecchi 07b2dfe
%filter_provides_in %{_libdir}/%{name}/.*\.so$
Cosimo Cecchi 07b2dfe
%filter_setup
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%description
Cosimo Cecchi 07b2dfe
gnome-weather is a weather application for GNOME
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%prep
Cosimo Cecchi 07b2dfe
%setup -q
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%build
Cosimo Cecchi 07b2dfe
%configure --disable-static
Cosimo Cecchi 07b2dfe
make %{?_smp_mflags}
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%install
Cosimo Cecchi 07b2dfe
make install DESTDIR=$RPM_BUILD_ROOT
Cosimo Cecchi 07b2dfe
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
Cosimo Cecchi 07b2dfe
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
Cosimo Cecchi 07b2dfe
%find_lang %{name}
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%postun
Cosimo Cecchi 07b2dfe
if [ $1 -eq 0 ] ; then
Cosimo Cecchi 07b2dfe
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
Cosimo Cecchi 07b2dfe
fi
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%posttrans
Cosimo Cecchi 07b2dfe
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%files -f %{name}.lang
Cosimo Cecchi 07b2dfe
%doc NEWS data/CREDITS
Cosimo Cecchi 07b2dfe
%{_datadir}/%{name}
Cosimo Cecchi 07b2dfe
%{_bindir}/%{name}
Cosimo Cecchi 07b2dfe
%{_datadir}/glib-2.0/schemas/*
Cosimo Cecchi 07b2dfe
%{_datadir}/applications/*
Cosimo Cecchi 07b2dfe
%{_libdir}/gnome-weather/
Cosimo Cecchi 07b2dfe
Cosimo Cecchi 07b2dfe
%changelog
16d82d8
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.2-1
16d82d8
- Update to 3.8.2
16d82d8
3f6b326
* Wed Apr 17 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
3f6b326
- Update to 3.8.1
3f6b326
Cosimo Cecchi 1209414
* Thu Mar 28 2013 Cosimo Cecchi <cosimoc@gnome.org> - 3.8.0-1
Cosimo Cecchi 1209414
- Update to 3.8.0
Cosimo Cecchi 1209414
Cosimo Cecchi 07b2dfe
* Tue Mar 19 2013 Cosimo Cecchi <cosimoc@gnome.org> - 3.7.92-1
Cosimo Cecchi 07b2dfe
- Initial packaging
Cosimo Cecchi 07b2dfe