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