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