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