]>
Commit | Line | Data |
---|---|---|
46be31a6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk2 # use GTK+ 2.x instead of 3.x | |
4 | %bcond_without champlain # maps support via libchamplain [gtk+3 only] | |
5 | %bcond_without clutter # GPU accelleration via clutter [gtk+3 only] | |
6 | # | |
7 | %if %{with gtk2} | |
8 | %undefine with_champlain | |
9 | %undefine with_clutter | |
10 | %endif | |
e54418d0 | 11 | Summary: Graphics file browser utility |
95309308 | 12 | Summary(hu.UTF-8): Képfájl-böngésző eszköz |
e54418d0 | 13 | Summary(pl.UTF-8): Narzędzie do przeglądania plików graficznych |
14 | Name: geeqie | |
d32f1792 KM |
15 | Version: 1.6 |
16 | Release: 1 | |
46be31a6 | 17 | License: GPL v2+ |
e54418d0 | 18 | Group: X11/Applications/Graphics |
285a04e2 | 19 | Source0: http://www.geeqie.org/%{name}-%{version}.tar.xz |
d32f1792 | 20 | # Source0-md5: e7401c0e117c423456d5fab468c3149c |
885258e5 | 21 | Patch0: libdir-fix.patch |
8bd363b5 JR |
22 | Patch1: exiv2-0.27.patch |
23 | Patch2: no-changelog.patch | |
78f116f5 | 24 | Patch3: x32.patch |
d32f1792 | 25 | Patch4: 0001-Fix-829-segfault-with-clutter-gtk.patch |
1a76e220 | 26 | URL: http://www.geeqie.org/ |
46be31a6 | 27 | BuildRequires: autoconf >= 2.57 |
e54418d0 | 28 | BuildRequires: automake |
9f84a673 JB |
29 | %{?with_clutter:BuildRequires: clutter-devel >= 1.0} |
30 | %{?with_clutter:BuildRequires: clutter-gtk-devel >= 1.0} | |
d32f1792 | 31 | BuildRequires: djvulibre-devel >= 3.5.27 |
46be31a6 | 32 | BuildRequires: exiv2-devel >= 0.11 |
d32f1792 | 33 | BuildRequires: ffmpegthumbnailer-devel >= 2.1.0 |
46be31a6 | 34 | BuildRequires: gdk-pixbuf2-devel >= 2 |
c116c319 | 35 | BuildRequires: gettext-tools |
46be31a6 JB |
36 | BuildRequires: glib2-devel >= 1:2.24.0 |
37 | BuildRequires: gnome-doc-utils | |
d32f1792 | 38 | BuildRequires: graphviz |
46be31a6 JB |
39 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.20.0} |
40 | %{!?with_gtk2:BuildRequires: gtk+3-devel >= 3.0.0} | |
d32f1792 | 41 | |
c9680d93 | 42 | BuildRequires: intltool >= 0.40.0 |
46be31a6 | 43 | BuildRequires: lcms2-devel >= 2.0 |
9f84a673 | 44 | %{?with_champlain:BuildRequires: libchamplain-devel >= 0.12} |
d32f1792 | 45 | BuildRequires: libheif-devel >= 1.3.2 |
46be31a6 | 46 | BuildRequires: libjpeg-devel |
e54418d0 | 47 | BuildRequires: libpng-devel |
46be31a6 JB |
48 | BuildRequires: libstdc++-devel |
49 | BuildRequires: libtiff-devel | |
50 | BuildRequires: lirc-devel | |
d32f1792 | 51 | BuildRequires: lua53-devel >= 5.3 |
e54418d0 | 52 | BuildRequires: pkgconfig |
53 | BuildRequires: rpmbuild(macros) >= 1.197 | |
1a76e220 ER |
54 | BuildRequires: tar >= 1:1.22 |
55 | BuildRequires: xz | |
d32f1792 | 56 | BuildRequires: yelp-tools |
1a76e220 | 57 | Requires: desktop-file-utils |
9f84a673 | 58 | Requires: exiv2-libs >= 0.11 |
46be31a6 JB |
59 | Requires: glib2 >= 1:2.24.0 |
60 | %{?with_gtk2:Requires: gtk+2 >= 2:2.20.0} | |
61 | %{!?with_gtk2:Requires: gtk+3 >= 3.0.0} | |
9f84a673 | 62 | %{?with_champlain:Requires: libchamplain >= 0.12} |
e54418d0 | 63 | Requires: libjpeg-progs |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
95309308 | 66 | %define specflags_ia32 -fomit-frame-pointer |
e54418d0 | 67 | |
68 | %description | |
69 | Geeqie is a browser for graphics files. Offering single click viewing | |
70 | of your graphics files. Includes thumbnail view, zoom and filtering | |
71 | features. And external editor support. | |
72 | ||
73 | %description -l fr.UTF-8 | |
74 | Geeqie est un explorateur de fichiers graphiques. Il permet d'un | |
75 | simple clic l'affichage de vos fichiers graphiques. Les capacités | |
76 | suivantes sont incluses: vue d'imagettes, zoom, filtres et support | |
77 | d'éditeurs externes. | |
78 | ||
95309308 ZU |
79 | %description -l hu.UTF-8 |
80 | Geeqie egy böngésző, amellyel a grafikus fájlokat tudod kezelni. | |
81 | Egyszeri kattintásra megnézheted a képfájljaidat. Kicsinyített nézet, | |
82 | zoom és szűrő eszközök is található, és külső szerkesztő támogatása. | |
83 | ||
e54418d0 | 84 | %description -l pl.UTF-8 |
85 | Geeqie jest przeglądarką plików graficznych. Możesz przeglądać swoje | |
86 | pliki graficzne jednym kliknięciem myszy. Zawiera widok miniatur, zoom | |
87 | i opcje filtrowania, jak również wsparcie dla zewnętrznego edytora. | |
88 | ||
89 | %prep | |
ac6afee1 | 90 | %setup -q |
885258e5 | 91 | %patch0 -p1 |
d32f1792 | 92 | %patch4 -p1 |
e54418d0 | 93 | |
94 | %build | |
d32f1792 KM |
95 | %{__sed} -i '1s,/usr/bin/awk,/bin/awk,' \ |
96 | plugins/geocode-parameters/geocode-parameters.awk | |
46be31a6 | 97 | install -d auxdir |
c9680d93 | 98 | %{__intltoolize} |
e54418d0 | 99 | %{__aclocal} |
100 | %{__autoconf} | |
101 | %{__autoheader} | |
102 | %{__automake} | |
46be31a6 JB |
103 | %configure \ |
104 | %{!?with_clutter:--disable-gpu-accel} \ | |
105 | --enable-gtk3%{?with_gtk2:=no} \ | |
d32f1792 | 106 | %{?with_champlain:--enable-map} |
46be31a6 | 107 | |
e54418d0 | 108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
46be31a6 | 112 | |
e54418d0 | 113 | %{__make} install \ |
56a3e326 | 114 | GNOME_DOC_TOOL=/disable-install-hook \ |
e54418d0 | 115 | DESTDIR=$RPM_BUILD_ROOT |
116 | ||
3fa9e7b0 | 117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/{applications,template.desktop} |
f8e498c0 JR |
118 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
119 | ||
e54418d0 | 120 | %find_lang %{name} |
121 | ||
122 | %post | |
1a76e220 | 123 | %update_desktop_database |
e54418d0 | 124 | |
125 | %postun | |
1a76e220 | 126 | %update_desktop_database |
e54418d0 | 127 | |
128 | %clean | |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %files -f %{name}.lang | |
132 | %defattr(644,root,root,755) | |
8bd363b5 | 133 | %doc AUTHORS README.md TODO doc/html |
e54418d0 | 134 | %attr(755,root,root) %{_bindir}/%{name} |
1a76e220 ER |
135 | %{_mandir}/man1/%{name}.1* |
136 | %{_desktopdir}/%{name}.desktop | |
e54418d0 | 137 | %{_pixmapsdir}/%{name}.png |
1a76e220 | 138 | %dir %{_libdir}/%{name} |
d32f1792 KM |
139 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import |
140 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import-hook-script | |
141 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-export-jpeg | |
142 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-image-crop | |
143 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-random-image | |
1a76e220 ER |
144 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-rotate |
145 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-symlink | |
d32f1792 KM |
146 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography |
147 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography-hook-script | |
1a76e220 | 148 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-ufraw |
d32f1792 KM |
149 | %attr(755,root,root) %{_libdir}/%{name}/geocode-parameters.awk |
150 | %attr(755,root,root) %{_libdir}/%{name}/lensID | |
8bd363b5 | 151 | %{_libdir}/%{name}/geocode-parameters.awk |
d32f1792 | 152 | %{_datadir}/metainfo/org.geeqie.Geeqie.appdata.xml |