]>
Commit | Line | Data |
---|---|---|
88109105 | 1 | # TODO: use gtk4-update-icon-cache |
03a7509e | 2 | Summary: A weather application for GNOME |
98dc4ece | 3 | Summary(pl.UTF-8): Aplikacja pogodowa dla GNOME |
03a7509e | 4 | Name: gnome-weather |
e544cc4e | 5 | Version: 43.0 |
d9f4e877 | 6 | Release: 1 |
03a7509e MB |
7 | License: GPL v2+ |
8 | Group: X11/Applications | |
e544cc4e JB |
9 | Source0: https://download.gnome.org/sources/gnome-weather/43/%{name}-%{version}.tar.xz |
10 | # Source0-md5: 887033ffdcaac33870cc5ad0bfe96e96 | |
98dc4ece JB |
11 | URL: https://wiki.gnome.org/Apps/Weather |
12 | BuildRequires: appstream-glib | |
d9f4e877 | 13 | BuildRequires: geoclue2-devel >= 2.3.1 |
ba154ee4 | 14 | BuildRequires: gettext-tools |
88109105 | 15 | BuildRequires: gjs-devel >= 1.71.0 |
03a7509e MB |
16 | BuildRequires: glib2-devel >= 1:2.36.0 |
17 | BuildRequires: gobject-introspection-devel >= 1.36.0 | |
88109105 | 18 | BuildRequires: gtk4-devel >= 4.5 |
e544cc4e | 19 | BuildRequires: libadwaita-devel >= 1.2 |
88109105 | 20 | BuildRequires: libgweather4-devel >= 4.0 |
664a9276 | 21 | BuildRequires: meson >= 0.50.0 |
98dc4ece | 22 | BuildRequires: ninja >= 1.5 |
d9f4e877 | 23 | BuildRequires: pkgconfig >= 1:0.22 |
98dc4ece | 24 | BuildRequires: rpmbuild(macros) >= 1.736 |
814cbb9a MB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
03a7509e | 27 | Requires(post,postun): glib2 >= 1:2.36.0 |
07f504c5 | 28 | Requires(post,postun): gtk-update-icon-cache |
d9f4e877 | 29 | Requires: geoclue2 >= 2.3.1 |
88109105 | 30 | Requires: gjs >= 1.71.0 |
03a7509e | 31 | Requires: glib2 >= 1:2.36.0 |
664a9276 | 32 | Requires: gobject-introspection >= 1.36.0 |
88109105 | 33 | Requires: gtk4 >= 4.5 |
07f504c5 | 34 | Requires: hicolor-icon-theme |
e544cc4e | 35 | Requires: libadwaita >= 1.2 |
88109105 | 36 | Requires: libgweather4 >= 4.0 |
2efce6c3 | 37 | BuildArch: noarch |
03a7509e MB |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | gnome-weather is a small application that allows you to monitor the | |
42 | current weather conditions for your city, or anywhere in the world, | |
98dc4ece JB |
43 | and to access updated forecasts provided by various Internet services. |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | gnome-weather to mała aplikacja pozwalająca na śledzenie aktualnych | |
47 | warunków pogodowych we własnym mieście lub dowolnym miejscu na świecie | |
48 | oraz na dostęp do uaktualnianych prognoz dostarczanych przez różne | |
49 | serwisy internetowe. | |
03a7509e MB |
50 | |
51 | %prep | |
52 | %setup -q | |
53 | ||
54 | %build | |
98dc4ece JB |
55 | %meson build |
56 | ||
57 | %ninja_build -C build | |
58 | ||
03a7509e MB |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
98dc4ece | 62 | %ninja_install -C build |
03a7509e | 63 | |
210beced | 64 | %find_lang org.gnome.Weather |
03a7509e MB |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post | |
70 | %glib_compile_schemas | |
07f504c5 | 71 | %update_icon_cache hicolor |
03a7509e MB |
72 | |
73 | %postun | |
74 | %glib_compile_schemas | |
07f504c5 | 75 | %update_icon_cache hicolor |
03a7509e | 76 | |
210beced | 77 | %files -f org.gnome.Weather.lang |
03a7509e MB |
78 | %defattr(644,root,root,755) |
79 | %doc NEWS | |
80 | %attr(755,root,root) %{_bindir}/gnome-weather | |
98dc4ece | 81 | %{_datadir}/dbus-1/services/org.gnome.Weather.service |
210beced | 82 | %{_datadir}/dbus-1/services/org.gnome.Weather.BackgroundService.service |
98dc4ece JB |
83 | %{_datadir}/glib-2.0/schemas/org.gnome.Weather.gschema.xml |
84 | %{_datadir}/gnome-shell/search-providers/org.gnome.Weather.search-provider.ini | |
85 | %{_datadir}/metainfo/org.gnome.Weather.appdata.xml | |
29d89a4d | 86 | %dir %{_datadir}/org.gnome.Weather |
98dc4ece | 87 | %attr(755,root,root) %{_datadir}/org.gnome.Weather/org.gnome.Weather |
29d89a4d | 88 | %attr(755,root,root) %{_datadir}/org.gnome.Weather/org.gnome.Weather.BackgroundService |
98dc4ece JB |
89 | %{_datadir}/org.gnome.Weather/org.gnome.Weather.*.gresource |
90 | %{_desktopdir}/org.gnome.Weather.desktop | |
91 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.Weather.svg | |
2efce6c3 JB |
92 | %{_iconsdir}/hicolor/scalable/status/temperature-symbolic.svg |
93 | %{_iconsdir}/hicolor/scalable/status/weather-*.svg | |
d9f4e877 | 94 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Weather-symbolic.svg |