]>
Commit | Line | Data |
---|---|---|
1f3efa9e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without libsoup2 # libsoup 2.x instead of libsoup3 | |
4 | ||
76e9564d JB |
5 | Summary: Frogr - Flickr Remote Organizer for GNOME |
6 | Summary(pl.UTF-8): Frogr - zdalny organizator Flickra dla GNOME | |
7 | Name: frogr | |
1f3efa9e | 8 | Version: 1.8.1 |
76e9564d JB |
9 | Release: 1 |
10 | License: GPL v3 | |
11 | Group: X11/Applications/Graphics | |
1f3efa9e JB |
12 | Source0: https://download.gnome.org/sources/frogr/1.8/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 907498b2d9d6c4f5e593fd00416695f4 | |
76e9564d | 14 | URL: https://wiki.gnome.org/Apps/Frogr |
e6d8807c | 15 | BuildRequires: gettext-tools >= 0.19.7 |
1f3efa9e | 16 | BuildRequires: glib2-devel >= 1:2.56 |
76e9564d | 17 | BuildRequires: gstreamer-devel >= 1.0 |
e5e179b3 JB |
18 | BuildRequires: gtk+3-devel >= 3.16 |
19 | BuildRequires: json-glib-devel >= 1.2 | |
76e9564d | 20 | BuildRequires: libexif-devel >= 1:0.6.14 |
a498d2bc | 21 | BuildRequires: libgcrypt-devel >= 1.5.0 |
1f3efa9e JB |
22 | %{?with_libsoup2:BuildRequires: libsoup-devel >= 2.42} |
23 | %{!?with_libsoup2:BuildRequires: libsoup3-devel >= 3.0} | |
76e9564d | 24 | BuildRequires: libxml2-devel >= 1:2.6.8 |
e5e179b3 JB |
25 | BuildRequires: meson |
26 | BuildRequires: ninja >= 1.5 | |
76e9564d | 27 | BuildRequires: pkgconfig |
e5e179b3 JB |
28 | BuildRequires: rpmbuild(macros) >= 1.736 |
29 | BuildRequires: sed >= 4.0 | |
76e9564d JB |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
32 | BuildRequires: yelp-tools | |
33 | Requires(post,postun): gtk-update-icon-cache | |
34 | Requires(post,postun): hicolor-icon-theme | |
1f3efa9e | 35 | Requires: glib2 >= 1:2.56 |
e5e179b3 | 36 | Requires: gtk+3 >= 3.16 |
76e9564d | 37 | Requires: hicolor-icon-theme |
e5e179b3 | 38 | Requires: json-glib >= 1.2 |
76e9564d | 39 | Requires: libexif >= 1:0.6.14 |
a498d2bc | 40 | Requires: libgcrypt >= 1.5.0 |
1f3efa9e JB |
41 | %{?with_libsoup2:Requires: libsoup >= 2.42} |
42 | %{!?with_libsoup2:Requires: libsoup3 >= 3.0} | |
76e9564d JB |
43 | Requires: libxml2 >= 1:2.6.8 |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
45 | ||
46 | %description | |
47 | Frogr is a small application for the GNOME desktop that allows users | |
48 | to manage their accounts in the Flickr image hosting website. | |
49 | ||
50 | %description -l pl.UTF-8 | |
51 | Frogr to mały program dla środowiska GNOME, umożliwiający użytkownikom | |
52 | zarządzanie swoimi kontami w serwisie zdjęciowym Flickr. | |
53 | ||
54 | %prep | |
55 | %setup -q | |
56 | ||
e5e179b3 | 57 | # build fails on deprecated glib functions, disable -Werror |
1f3efa9e | 58 | #%{__sed} -i -e "/'werror=true'/d" meson.build |
e5e179b3 | 59 | |
76e9564d | 60 | %build |
1f3efa9e JB |
61 | %meson build \ |
62 | %{?with_libsoup2:-Dwith-libsoup2=true} | |
76e9564d | 63 | |
e5e179b3 | 64 | %ninja_build -C build |
76e9564d JB |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
e5e179b3 | 69 | %ninja_install -C build |
76e9564d JB |
70 | |
71 | %find_lang %{name} --with-gnome | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post | |
76e9564d JB |
77 | %update_icon_cache hicolor |
78 | ||
79 | %postun | |
76e9564d JB |
80 | %update_icon_cache hicolor |
81 | ||
82 | %files -f %{name}.lang | |
83 | %defattr(644,root,root,755) | |
e5e179b3 | 84 | %doc AUTHORS MAINTAINERS NEWS README THANKS TRANSLATORS |
76e9564d JB |
85 | %attr(755,root,root) %{_bindir}/frogr |
86 | %{_datadir}/frogr | |
e5e179b3 | 87 | %{_datadir}/metainfo/org.gnome.frogr.appdata.xml |
c1b67e48 JB |
88 | %{_desktopdir}/org.gnome.frogr.desktop |
89 | %{_iconsdir}/hicolor/*x*/apps/org.gnome.frogr.png | |
90 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.frogr.svg | |
91 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.frogr-symbolic.svg | |
76e9564d | 92 | %{_mandir}/man1/frogr.1* |