Blame SPECS/gnome-weather.spec

e64897
%global gjs_version 1.49.4
e64897
%global gobject_introspection_version 1.35.9
e64897
%global gtk3_version 3.11.4
e64897
%global libgweather_version 3.25.91
e64897
e64897
Name:		gnome-weather
e64897
Version:	3.26.0
e64897
Release:	1%{?dist}
e64897
Summary:	A weather application for GNOME
e64897
e64897
License:	GPLv2+ and LGPLv2+ and MIT and CC-BY and CC-BY-SA
e64897
URL:		https://wiki.gnome.org/Apps/Weather
e64897
Source0:	https://download.gnome.org/sources/%{name}/3.26/%{name}-%{version}.tar.xz
e64897
e64897
BuildArch:	noarch
e64897
e64897
BuildRequires:	intltool
e64897
BuildRequires:	desktop-file-utils
e64897
BuildRequires:	gjs-devel >= %{gjs_version}
e64897
BuildRequires:	glib2-devel
e64897
BuildRequires:	gobject-introspection >= %{gobject_introspection_version}
e64897
BuildRequires:	gtk3-devel >= %{gtk3_version}
e64897
BuildRequires:	libgweather-devel >= %{libgweather_version}
e64897
BuildRequires:	pkgconfig(libgeoclue-2.0) >= 2.3.1
e64897
e64897
Requires:	gdk-pixbuf2
e64897
Requires:	gjs >= %{gjs_version}
e64897
Requires:	glib2
e64897
Requires:	gobject-introspection >= %{gobject_introspection_version}
e64897
Requires:	gtk3 >= %{gtk3_version}
e64897
Requires:	libgweather >= %{libgweather_version}
e64897
e64897
%description
e64897
gnome-weather is a weather application for GNOME
e64897
e64897
%package tests
e64897
Summary: Tests for the gnome-weather package
e64897
Requires: %{name} = %{version}-%{release}
e64897
e64897
%description tests
e64897
The gnome-weather-tests package contains tests that can be used to verify
e64897
the functionality of the installed gnome-weather package.
e64897
e64897
%prep
e64897
%autosetup
e64897
e64897
%build
e64897
%configure --disable-static --enable-installed-tests
e64897
%make_build
e64897
e64897
%install
e64897
%make_install
e64897
find %{buildroot} -name '*.la' -print -delete
e64897
e64897
# Fix appdata file name
e64897
mv %{buildroot}%{_datadir}/appdata/org.gnome.Weather.appdata.xml \
e64897
   %{buildroot}%{_datadir}/appdata/org.gnome.Weather.Application.appdata.xml
e64897
e64897
%find_lang org.gnome.Weather
e64897
e64897
%check
e64897
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Weather.Application.desktop
e64897
e64897
%post
e64897
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
e64897
e64897
%postun
e64897
if [ $1 -eq 0 ] ; then
e64897
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e64897
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
e64897
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e64897
fi
e64897
e64897
%posttrans
e64897
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
e64897
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e64897
e64897
%files -f org.gnome.Weather.lang
e64897
%license COPYING
e64897
%doc NEWS data/CREDITS
e64897
%{_bindir}/gnome-weather
e64897
%{_datadir}/appdata/org.gnome.Weather.Application.appdata.xml
e64897
%{_datadir}/applications/org.gnome.Weather.Application.desktop
e64897
%{_datadir}/dbus-1/services/org.gnome.Weather.Application.service
e64897
%{_datadir}/dbus-1/services/org.gnome.Weather.BackgroundService.service
e64897
%{_datadir}/glib-2.0/schemas/org.gnome.Weather.Application.gschema.xml
e64897
%dir %{_datadir}/gnome-shell/
e64897
%dir %{_datadir}/gnome-shell/search-providers/
e64897
%{_datadir}/gnome-shell/search-providers/org.gnome.Weather.Application.search-provider.ini
e64897
%{_datadir}/icons/hicolor/*/apps/org.gnome.Weather.png
e64897
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Weather-symbolic.svg
e64897
%{_datadir}/org.gnome.Weather/
e64897
e64897
%files tests
e64897
%{_libexecdir}/installed-tests/org.gnome.Weather/
e64897
%{_datadir}/installed-tests
e64897
e64897
%changelog
e64897
* Mon Sep 11 2017 Kalev Lember <klember@redhat.com> - 3.26.0-1
e64897
- Update to 3.26.0
e64897
- Resolves: #1511093
e64897
e64897
* Thu Feb 23 2017 Matthias Clasen <mclasen@redhat.com> - 3.20.2-1
e64897
- Rebase to 3.20.2
e64897
  Resolves: rhbz#1386969
e64897
e64897
* Mon Mar 23 2015 Richard Hughes <rhughes@redhat.com> - 3.14.1-1
e64897
- Update to 3.14.1
e64897
- Resolves: #1174587
e64897
e64897
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.8.2-4
e64897
- Mass rebuild 2014-01-24
e64897
e64897
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.8.2-3
e64897
- Mass rebuild 2013-12-27
e64897
e64897
* Thu Dec 5 2013 Zeeshan Ali <zeenix@redhat.com> - 3.8.2-2
e64897
- Add categories to desktop file (#1037834).
e64897
e64897
* Tue May 14 2013 Matthias Clasen <mclasen@redhat.com> - 3.8.2-1
e64897
- Update to 3.8.2
e64897
e64897
* Wed Apr 17 2013 Kalev Lember <kalevlember@gmail.com> - 3.8.1-1
e64897
- Update to 3.8.1
e64897
e64897
* Thu Mar 28 2013 Cosimo Cecchi <cosimoc@gnome.org> - 3.8.0-1
e64897
- Update to 3.8.0
e64897
e64897
* Tue Mar 19 2013 Cosimo Cecchi <cosimoc@gnome.org> - 3.7.92-1
e64897
- Initial packaging
e64897