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