]>
Commit | Line | Data |
---|---|---|
85b65f0b MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable API documentation | |
4 | # | |
cd132c4c | 5 | Summary: The Eye of GNOME image viewer |
5f920e55 ER |
6 | Summary(pl.UTF-8): Oko GNOME - przeglądarka obrazków |
7 | Summary(pt_BR.UTF-8): Visualizador de imagem Eye of GNOME | |
cd132c4c | 8 | Name: eog |
4ac3c395 | 9 | Version: 2.26.2 |
85b65f0b | 10 | Release: 1 |
aa25ce61 | 11 | License: GPL v2+ |
ece649ea | 12 | Group: X11/Applications/Graphics |
c4ac352b | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/2.26/%{name}-%{version}.tar.bz2 |
4ac3c395 | 14 | # Source0-md5: 8a0f8fafe627bb7fcc95ea10d148b7c1 |
1b874169 | 15 | Patch0: %{name}-codegen.patch |
a617f262 | 16 | URL: http://www.gnome.org/projects/eog/ |
85b65f0b | 17 | BuildRequires: GConf2-devel >= 2.24.0 |
a617f262 | 18 | BuildRequires: autoconf >= 2.59 |
32807e4c | 19 | BuildRequires: automake |
aa25ce61 PZ |
20 | BuildRequires: dbus-glib-devel >= 0.74 |
21 | BuildRequires: exempi-devel >= 1.99.5 | |
25c7a818 | 22 | BuildRequires: gettext-devel |
85b65f0b | 23 | BuildRequires: gnome-common >= 2.24.0 |
c4ac352b | 24 | BuildRequires: gnome-desktop-devel >= 2.26.0 |
85b65f0b MB |
25 | BuildRequires: gnome-doc-utils >= 0.14.0 |
26 | BuildRequires: gnome-icon-theme >= 2.24.0 | |
c4ac352b MB |
27 | BuildRequires: gtk+2-devel >= 2:2.16.0 |
28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
85b65f0b | 29 | BuildRequires: intltool >= 0.40.0 |
9c46f8cd | 30 | BuildRequires: lcms-devel |
f83a2ab4 | 31 | BuildRequires: libart_lgpl-devel >= 2.3.19 |
a617f262 | 32 | BuildRequires: libexif-devel >= 1:0.6.14 |
32807e4c | 33 | BuildRequires: libjpeg-devel |
32807e4c | 34 | BuildRequires: libtool |
c4ac352b | 35 | BuildRequires: libxml2-devel >= 1:2.7.0 |
e4c96d5e | 36 | BuildRequires: pkgconfig >= 0.9.0 |
c4ac352b MB |
37 | BuildRequires: python-pygobject-devel >= 2.16.0 |
38 | BuildRequires: python-pygtk-devel >= 2:2.14.0 | |
db8dcdfb | 39 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
f83a2ab4 | 40 | BuildRequires: rpmbuild(macros) >= 1.311 |
9c46f8cd | 41 | BuildRequires: scrollkeeper |
db8dcdfb | 42 | BuildRequires: sed >= 4.0 |
85b65f0b | 43 | BuildRequires: shared-mime-info >= 0.50 |
c4ac352b | 44 | BuildRequires: zlib-devel |
7b788a76 | 45 | Requires(post,postun): desktop-file-utils |
f83a2ab4 MB |
46 | Requires(post,postun): gtk+2 |
47 | Requires(post,postun): hicolor-icon-theme | |
6458e674 | 48 | Requires(post,postun): scrollkeeper |
a617f262 | 49 | Requires(post,preun): GConf2 |
f766ecd3 | 50 | # sr@Latn vs. sr@latin |
51 | Conflicts: glibc-misc < 6:2.7 | |
cd132c4c | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
cd132c4c | 54 | %description |
55 | Eye of GNOME is a tool for viewing/cataloging images. | |
56 | ||
02a464eb JR |
57 | %description -l pl.UTF-8 |
58 | Eye of GNOME (Oko GNOME) jest narzędziem do oglądania/katalogowania | |
59 | obrazków. | |
6b3d5dfe | 60 | |
02a464eb | 61 | %description -l pt_BR.UTF-8 |
f1d811f5 | 62 | Aplicativo para visualizar imagens chamado Eye of GNOME. |
63 | ||
1b874169 PZ |
64 | %package devel |
65 | Summary: Header files for eog | |
66 | Summary(pl.UTF-8): Pliki nagłówkowe eog | |
aa25ce61 | 67 | Group: X11/Development/Libraries |
1b874169 | 68 | Requires: %{name} = %{version}-%{release} |
85b65f0b | 69 | Requires: GConf2-devel >= 2.24.0 |
c4ac352b | 70 | Requires: gtk+2-devel >= 2:2.16.0 |
1b874169 PZ |
71 | |
72 | %description devel | |
73 | Header files for eog. | |
74 | ||
75 | %description devel -l pl.UTF-8 | |
76 | Pliki nagłówkowe eog. | |
77 | ||
85b65f0b MB |
78 | %package apidocs |
79 | Summary: Eye of GNOME API documentation | |
80 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
81 | Group: Documentation | |
82 | Requires: gtk-doc-common | |
83 | ||
84 | %description apidocs | |
85 | Eye of GNOME API documentation. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API Eye of GNOME. | |
89 | ||
cd132c4c | 90 | %prep |
91 | %setup -q | |
32807e4c | 92 | %patch0 -p1 |
4e0ba68a | 93 | |
cd132c4c | 94 | %build |
85b65f0b | 95 | %{?with_apidocs:%{__gtkdocize}} |
aa25ce61 | 96 | %{__gnome_doc_common} |
6bff1701 | 97 | %{__libtoolize} |
268041a5 | 98 | %{__intltoolize} |
cd20d65c | 99 | %{__aclocal} |
470a23a6 | 100 | %{__automake} |
aa25ce61 | 101 | %{__autoheader} |
e3413657 | 102 | %{__autoconf} |
32807e4c | 103 | %configure \ |
85b65f0b | 104 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
23c85c82 | 105 | --disable-schemas-install \ |
85b65f0b MB |
106 | --disable-scrollkeeper \ |
107 | --with-html-dir=%{_gtkdocdir} | |
b9d7d08a | 108 | %{__make} |
b13f147c | 109 | |
cd132c4c | 110 | %install |
111 | rm -rf $RPM_BUILD_ROOT | |
32807e4c | 112 | |
cd132c4c | 113 | %{__make} install \ |
d9ead78e | 114 | DESTDIR=$RPM_BUILD_ROOT \ |
115 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
cd132c4c | 116 | |
85b65f0b MB |
117 | rm -f $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la |
118 | ||
4e0ba68a | 119 | %find_lang %{name} --with-gnome --with-omf |
cd132c4c | 120 | |
13b71f75 JB |
121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
4d69a7c1 | 124 | %post |
268041a5 | 125 | %gconf_schema_install eog.schemas |
126 | %scrollkeeper_update_post | |
127 | %update_desktop_database_post | |
f83a2ab4 | 128 | %update_icon_cache hicolor |
7b788a76 | 129 | |
130 | %preun | |
268041a5 | 131 | %gconf_schema_uninstall eog.schemas |
4d69a7c1 | 132 | |
6458e674 | 133 | %postun |
268041a5 | 134 | %scrollkeeper_update_postun |
135 | %update_desktop_database_postun | |
f83a2ab4 | 136 | %update_icon_cache hicolor |
4d69a7c1 | 137 | |
cd132c4c | 138 | %files -f %{name}.lang |
139 | %defattr(644,root,root,755) | |
a617f262 MB |
140 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
141 | %attr(755,root,root) %{_bindir}/eog | |
9c46f8cd | 142 | %{_sysconfdir}/gconf/schemas/eog.schemas |
32807e4c | 143 | %{_datadir}/%{name} |
a617f262 | 144 | %{_desktopdir}/eog.desktop |
85b65f0b MB |
145 | %dir %{_libdir}/eog |
146 | %dir %{_libdir}/eog/plugins | |
147 | # buggy soname generation, uses .so.0.0.0 | |
148 | %{_libdir}/eog/plugins/fullscreen.eog-plugin | |
149 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* | |
150 | %{_libdir}/eog/plugins/reload.eog-plugin | |
151 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* | |
152 | %{_libdir}/eog/plugins/statusbar-date.eog-plugin | |
153 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* | |
f83a2ab4 | 154 | %{_iconsdir}/hicolor/*/*/* |
1b874169 PZ |
155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
158 | %{_includedir}/eog-2.20 | |
aa25ce61 | 159 | %{_pkgconfigdir}/eog.pc |
85b65f0b MB |
160 | |
161 | %if %{with apidocs} | |
162 | %files apidocs | |
163 | %defattr(644,root,root,755) | |
164 | %{_gtkdocdir}/eog | |
165 | %endif |