76 lines
2.4 KiB
RPMSpec
76 lines
2.4 KiB
RPMSpec
%global gobject_introspection_version 1.35.9
|
|
%global gtk4_version 4.5
|
|
%global gjs_version 1.71.0
|
|
%global libgweather_version 4.0
|
|
|
|
Name: gnome-weather
|
|
Version: 42.0
|
|
Release: 2
|
|
Summary: A weather application in GNOME
|
|
License: GPLv2+ and LGPLv2+ and MIT and CC-BY and CC-BY-SA
|
|
URL: https://wiki.gnome.org/Apps/Weather
|
|
Source0: https://download.gnome.org/sources/%{name}/42/%{name}-%{version}.tar.xz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: meson gettext python3-devel desktop-file-utils
|
|
BuildRequires: pkgconfig(geoclue-2.0)
|
|
BuildRequires: pkgconfig(gjs-1.0) >= %{gjs_version}
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
|
|
BuildRequires: pkgconfig(gtk4) >= %{gtk4_version}
|
|
BuildRequires: pkgconfig(gweather4)
|
|
BuildRequires: pkgconfig(libadwaita-1)
|
|
|
|
Requires: gdk-pixbuf2 geoclue2-libs glib2 gsettings-desktop-schemas libadwaita
|
|
Requires: libgweather >= %{libgweather_version}
|
|
Requires: gjs >= %{gjs_version}
|
|
Requires: gobject-introspection >= %{gobject_introspection_version}
|
|
Requires: gtk4 >= %{gtk4_version}
|
|
Obsoletes: gnome-weather-tests < %{version}
|
|
|
|
%description
|
|
Monitor the current weather conditions for your city, or anywhere in the world.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
pathfix.py -i %{__python3} .
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%find_lang org.gnome.Weather
|
|
|
|
%check
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Weather.desktop
|
|
|
|
%files -f org.gnome.Weather.lang
|
|
%license COPYING.md
|
|
%doc NEWS data/CREDITS
|
|
%{_bindir}/gnome-weather
|
|
%{_datadir}/applications/org.gnome.Weather.desktop
|
|
%{_datadir}/dbus-1/services/org.gnome.Weather.service
|
|
%{_datadir}/dbus-1/services/org.gnome.Weather.BackgroundService.service
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.Weather.gschema.xml
|
|
%dir %{_datadir}/gnome-shell/
|
|
%dir %{_datadir}/gnome-shell/search-providers/
|
|
%{_datadir}/gnome-shell/search-providers/org.gnome.Weather.search-provider.ini
|
|
%{_datadir}/icons/hicolor/*/apps/org.gnome.Weather*
|
|
%{_datadir}/icons/hicolor/scalable/status/*.svg
|
|
%{_datadir}/metainfo/org.gnome.Weather.appdata.xml
|
|
%{_datadir}/org.gnome.Weather/
|
|
|
|
%changelog
|
|
* Mon Jun 20 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 42.0-2
|
|
- add gnome-weather.yaml
|
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 42.0-1
|
|
- Upgrade to 42.0
|
|
|
|
* Mon Jun 21 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 3.36.1-1
|
|
- Package init with version 3.36.1
|