Blame SPECS/gnome-weather.spec

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