]>
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 | |
3a91e177 JB |
9 | Version: 2.1 |
10 | Release: 1 | |
46be31a6 | 11 | License: GPL v2+ |
e54418d0 | 12 | Group: X11/Applications/Graphics |
c1e75bb9 | 13 | Source0: https://github.com/BestImageViewer/geeqie/releases/download/v%{version}/%{name}-%{version}.tar.xz |
3a91e177 JB |
14 | # Source0-md5: a34e3bcfdc679db713ed304971721db5 |
15 | Patch0: %{name}-lua.patch | |
16 | Patch1: %{name}-exif-fix.patch | |
1a76e220 | 17 | URL: http://www.geeqie.org/ |
3a91e177 JB |
18 | %{?with_champlain:BuildRequires: clutter-devel >= 1.0} |
19 | %{?with_champlain:BuildRequires: clutter-gtk-devel >= 1.0} | |
d32f1792 | 20 | BuildRequires: djvulibre-devel >= 3.5.27 |
3a91e177 JB |
21 | # to enable PDF preview feature |
22 | BuildRequires: evince | |
46be31a6 | 23 | BuildRequires: exiv2-devel >= 0.11 |
d32f1792 | 24 | BuildRequires: ffmpegthumbnailer-devel >= 2.1.0 |
46be31a6 | 25 | BuildRequires: gdk-pixbuf2-devel >= 2 |
c116c319 | 26 | BuildRequires: gettext-tools |
c1e75bb9 | 27 | BuildRequires: glib2-devel >= 1:2.52.0 |
6646a052 | 28 | BuildRequires: gspell-devel >= 1.6 |
3a91e177 | 29 | BuildRequires: gtk+3-devel >= 3.24 |
a46d1e86 | 30 | BuildRequires: lcms2-devel >= 2.0 |
deb2ec29 | 31 | BuildRequires: libarchive-devel >= 3.4.0 |
9f84a673 | 32 | %{?with_champlain:BuildRequires: libchamplain-devel >= 0.12} |
d32f1792 | 33 | BuildRequires: libheif-devel >= 1.3.2 |
46be31a6 | 34 | BuildRequires: libjpeg-devel |
c1e75bb9 | 35 | BuildRequires: libjxl-devel >= 0.3.7 |
e54418d0 | 36 | BuildRequires: libpng-devel |
c1e75bb9 | 37 | BuildRequires: libraw-devel >= 0.20 |
3a91e177 JB |
38 | BuildRequires: libstdc++-devel >= 6:5 |
39 | BuildRequires: libtiff-devel >= 4 | |
deb2ec29 | 40 | BuildRequires: libwebp-devel >= 0.6.1 |
3a91e177 JB |
41 | # 5.3 or 5.4 |
42 | BuildRequires: lua-devel >= 5.3 | |
43 | BuildRequires: meson >= 0.56.2 | |
44 | BuildRequires: ninja >= 1.5 | |
deb2ec29 | 45 | BuildRequires: openjpeg2-devel >= 2.3.0 |
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 |
9f84a673 | 55 | Requires: exiv2-libs >= 0.11 |
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 |
3a91e177 JB |
96 | %patch0 -p1 |
97 | %patch1 -p1 | |
e54418d0 | 98 | |
99 | %build | |
6646a052 | 100 | %{__sed} -i '1s,%{_bindir}/awk,/bin/awk,' \ |
d32f1792 | 101 | plugins/geocode-parameters/geocode-parameters.awk |
6646a052 | 102 | |
3a91e177 JB |
103 | %meson build \ |
104 | -Dgq_bindir=%{_libdir}/%{name} \ | |
105 | %{!?with_champlain:-Dgps-map=disabled} | |
6646a052 KM |
106 | |
107 | %ninja_build -C build | |
108 | ||
109 | cd build/doc/html | |
110 | ln -sf GuideIndex.html index.html | |
e54418d0 | 111 | |
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
46be31a6 | 114 | |
6646a052 | 115 | %ninja_install -C build |
e54418d0 | 116 | |
3fa9e7b0 | 117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/{applications,template.desktop} |
6646a052 KM |
118 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
119 | ||
f8e498c0 | 120 | |
e54418d0 | 121 | %find_lang %{name} |
122 | ||
123 | %post | |
1a76e220 | 124 | %update_desktop_database |
e54418d0 | 125 | |
126 | %postun | |
1a76e220 | 127 | %update_desktop_database |
e54418d0 | 128 | |
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %files -f %{name}.lang | |
133 | %defattr(644,root,root,755) | |
3a91e177 JB |
134 | %doc NEWS README.md TODO build/doc/html |
135 | %attr(755,root,root) %{_bindir}/geeqie | |
136 | %{_mandir}/man1/geeqie.1* | |
137 | %{_desktopdir}/geeqie.desktop | |
138 | %{_iconsdir}/hicolor/scalable/apps/geeqie.svg | |
139 | %{_pixmapsdir}/geeqie.png | |
1a76e220 | 140 | %dir %{_libdir}/%{name} |
d32f1792 KM |
141 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import |
142 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-camera-import-hook-script | |
143 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-export-jpeg | |
144 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-image-crop | |
145 | %attr(755,root,root) %{_libdir}/%{name}/geeqie-random-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 | |
d32f1792 | 152 | %{_datadir}/metainfo/org.geeqie.Geeqie.appdata.xml |