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