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