]>
Commit | Line | Data |
---|---|---|
46be31a6 JB |
1 | # |
2 | # Conditional build: | |
46be31a6 | 3 | %bcond_without champlain # maps support via libchamplain [gtk+3 only] |
46be31a6 | 4 | # |
e54418d0 | 5 | Summary: Graphics file browser utility |
95309308 | 6 | Summary(hu.UTF-8): Képfájl-böngésző eszköz |
e54418d0 | 7 | Summary(pl.UTF-8): Narzędzie do przeglądania plików graficznych |
8 | Name: geeqie | |
f7dcc3d8 | 9 | Version: 2.4 |
e6ae5978 | 10 | Release: 2 |
46be31a6 | 11 | License: GPL v2+ |
e54418d0 | 12 | Group: X11/Applications/Graphics |
371e1e1a | 13 | #Source0Download: https://github.com/BestImageViewer/geeqie/releases |
c1e75bb9 | 14 | Source0: https://github.com/BestImageViewer/geeqie/releases/download/v%{version}/%{name}-%{version}.tar.xz |
f7dcc3d8 | 15 | # Source0-md5: ea6b1e2e414a75661e8e6d282e7675ff |
1a76e220 | 16 | URL: http://www.geeqie.org/ |
3a91e177 JB |
17 | %{?with_champlain:BuildRequires: clutter-devel >= 1.0} |
18 | %{?with_champlain:BuildRequires: clutter-gtk-devel >= 1.0} | |
d32f1792 | 19 | BuildRequires: djvulibre-devel >= 3.5.27 |
3a91e177 JB |
20 | # to enable PDF preview feature |
21 | BuildRequires: evince | |
371e1e1a | 22 | BuildRequires: exiv2-devel >= 0.18 |
d32f1792 | 23 | BuildRequires: ffmpegthumbnailer-devel >= 2.1.0 |
46be31a6 | 24 | BuildRequires: gdk-pixbuf2-devel >= 2 |
c116c319 | 25 | BuildRequires: gettext-tools |
c1e75bb9 | 26 | BuildRequires: glib2-devel >= 1:2.52.0 |
6646a052 | 27 | BuildRequires: gspell-devel >= 1.6 |
3a91e177 | 28 | BuildRequires: gtk+3-devel >= 3.24 |
a46d1e86 | 29 | BuildRequires: lcms2-devel >= 2.0 |
deb2ec29 | 30 | BuildRequires: libarchive-devel >= 3.4.0 |
9f84a673 | 31 | %{?with_champlain:BuildRequires: libchamplain-devel >= 0.12} |
d32f1792 | 32 | BuildRequires: libheif-devel >= 1.3.2 |
46be31a6 | 33 | BuildRequires: libjpeg-devel |
c1e75bb9 | 34 | BuildRequires: libjxl-devel >= 0.3.7 |
e54418d0 | 35 | BuildRequires: libpng-devel |
c1e75bb9 | 36 | BuildRequires: libraw-devel >= 0.20 |
3a91e177 JB |
37 | BuildRequires: libstdc++-devel >= 6:5 |
38 | BuildRequires: libtiff-devel >= 4 | |
deb2ec29 | 39 | BuildRequires: libwebp-devel >= 0.6.1 |
3a91e177 JB |
40 | # 5.3 or 5.4 |
41 | BuildRequires: lua-devel >= 5.3 | |
371e1e1a | 42 | BuildRequires: meson >= 1.0.0 |
3a91e177 | 43 | BuildRequires: ninja >= 1.5 |
deb2ec29 | 44 | BuildRequires: openjpeg2-devel >= 2.3.0 |
7fdd775d | 45 | BuildRequires: pandoc |
e54418d0 | 46 | BuildRequires: pkgconfig |
deb2ec29 | 47 | BuildRequires: poppler-glib-devel >= 0.62 |
e54418d0 | 48 | BuildRequires: rpmbuild(macros) >= 1.197 |
1a76e220 | 49 | BuildRequires: tar >= 1:1.22 |
6646a052 | 50 | BuildRequires: xxd |
1a76e220 | 51 | BuildRequires: xz |
d32f1792 | 52 | BuildRequires: yelp-tools |
1a76e220 | 53 | Requires: desktop-file-utils |
deb2ec29 | 54 | Requires: djvulibre >= 3.5.27 |
371e1e1a | 55 | Requires: exiv2-libs >= 0.18 |
deb2ec29 | 56 | Requires: ffmpegthumbnailer >= 2.1.0 |
46be31a6 | 57 | Requires: glib2 >= 1:2.24.0 |
3a91e177 | 58 | Requires: gtk+3 >= 3.24 |
a46d1e86 | 59 | Requires: lcms2 >= 2.0 |
deb2ec29 | 60 | Requires: libarchive >= 3.4.0 |
9f84a673 | 61 | %{?with_champlain:Requires: libchamplain >= 0.12} |
deb2ec29 | 62 | Requires: libheif >= 1.3.2 |
e54418d0 | 63 | Requires: libjpeg-progs |
deb2ec29 JB |
64 | Requires: libjxl >= 0.3.7 |
65 | Requires: libraw >= 0.20 | |
66 | Requires: libwebp >= 0.6.1 | |
67 | Requires: openjpeg2 >= 2.3.0 | |
68 | Requires: poppler-glib >= 0.62 | |
e54418d0 | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
95309308 | 71 | %define specflags_ia32 -fomit-frame-pointer |
e54418d0 | 72 | |
73 | %description | |
74 | Geeqie is a browser for graphics files. Offering single click viewing | |
75 | of your graphics files. Includes thumbnail view, zoom and filtering | |
76 | features. And external editor support. | |
77 | ||
78 | %description -l fr.UTF-8 | |
79 | Geeqie est un explorateur de fichiers graphiques. Il permet d'un | |
80 | simple clic l'affichage de vos fichiers graphiques. Les capacités | |
81 | suivantes sont incluses: vue d'imagettes, zoom, filtres et support | |
82 | d'éditeurs externes. | |
83 | ||
95309308 ZU |
84 | %description -l hu.UTF-8 |
85 | Geeqie egy böngésző, amellyel a grafikus fájlokat tudod kezelni. | |
86 | Egyszeri kattintásra megnézheted a képfájljaidat. Kicsinyített nézet, | |
87 | zoom és szűrő eszközök is található, és külső szerkesztő támogatása. | |
88 | ||
e54418d0 | 89 | %description -l pl.UTF-8 |
90 | Geeqie jest przeglądarką plików graficznych. Możesz przeglądać swoje | |
91 | pliki graficzne jednym kliknięciem myszy. Zawiera widok miniatur, zoom | |
92 | i opcje filtrowania, jak również wsparcie dla zewnętrznego edytora. | |
93 | ||
94 | %prep | |
ac6afee1 | 95 | %setup -q |
e54418d0 | 96 | |
97 | %build | |
6646a052 | 98 | %{__sed} -i '1s,%{_bindir}/awk,/bin/awk,' \ |
d32f1792 | 99 | plugins/geocode-parameters/geocode-parameters.awk |
6646a052 | 100 | |
3a91e177 JB |
101 | %meson build \ |
102 | -Dgq_bindir=%{_libdir}/%{name} \ | |
103 | %{!?with_champlain:-Dgps-map=disabled} | |
6646a052 KM |
104 | |
105 | %ninja_build -C build | |
106 | ||
107 | cd build/doc/html | |
108 | ln -sf GuideIndex.html index.html | |
e54418d0 | 109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
46be31a6 | 112 | |
6646a052 | 113 | %ninja_install -C build |
e54418d0 | 114 | |
7fdd775d | 115 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/{applications,org.geeqie.template.desktop} |
6646a052 KM |
116 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
117 | ||
f8e498c0 | 118 | |
e54418d0 | 119 | %find_lang %{name} |
120 | ||
121 | %post | |
1a76e220 | 122 | %update_desktop_database |
e54418d0 | 123 | |
124 | %postun | |
1a76e220 | 125 | %update_desktop_database |
e54418d0 | 126 | |
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %files -f %{name}.lang | |
131 | %defattr(644,root,root,755) | |
3a91e177 JB |
132 | %doc NEWS README.md TODO build/doc/html |
133 | %attr(755,root,root) %{_bindir}/geeqie | |
134 | %{_mandir}/man1/geeqie.1* | |
7fdd775d | 135 | %{_desktopdir}/org.geeqie.Geeqie.desktop |
3a91e177 JB |
136 | %{_iconsdir}/hicolor/scalable/apps/geeqie.svg |
137 | %{_pixmapsdir}/geeqie.png | |
1a76e220 | 138 | %dir %{_libdir}/%{name} |
7fdd775d | 139 | %attr(755,root,root) %{_libdir}/%{name}/downsize |
d32f1792 KM |
140 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import |
141 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import-hook-script | |
142 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-export-jpeg | |
143 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-image-crop | |
144 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-random-image | |
7fdd775d | 145 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-resize-image |
1a76e220 ER |
146 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-rotate |
147 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-symlink | |
d32f1792 KM |
148 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography |
149 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-tethered-photography-hook-script | |
d32f1792 KM |
150 | %attr(755,root,root) %{_libdir}/%{name}/geocode-parameters.awk |
151 | %attr(755,root,root) %{_libdir}/%{name}/lensID | |
7fdd775d | 152 | %attr(755,root,root) %{_libdir}/%{name}/resize-help.sh |
d32f1792 | 153 | %{_datadir}/metainfo/org.geeqie.Geeqie.appdata.xml |