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