]>
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 |
85b65f0b MB |
9 | Version: 2.24.0 |
10 | Release: 1 | |
aa25ce61 | 11 | License: GPL v2+ |
ece649ea | 12 | Group: X11/Applications/Graphics |
85b65f0b MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/2.24/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 9a8cb17555df81980ac0492715a195e3 | |
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 MB |
23 | BuildRequires: gnome-common >= 2.24.0 |
24 | BuildRequires: gnome-desktop-devel >= 2.24.0 | |
25 | BuildRequires: gnome-doc-utils >= 0.14.0 | |
26 | BuildRequires: gnome-icon-theme >= 2.24.0 | |
27 | BuildRequires: gnome-vfs2-devel >= 2.24.0 | |
28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} | |
29 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
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 |
1b874169 | 34 | BuildRequires: libglade2-devel >= 1:2.6.2 |
85b65f0b | 35 | BuildRequires: libgnomeui-devel >= 2.24.0 |
32807e4c | 36 | BuildRequires: libjpeg-devel |
32807e4c | 37 | BuildRequires: libtool |
e4c96d5e | 38 | BuildRequires: pkgconfig >= 0.9.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 |
7b788a76 | 44 | Requires(post,postun): desktop-file-utils |
f83a2ab4 MB |
45 | Requires(post,postun): gtk+2 |
46 | Requires(post,postun): hicolor-icon-theme | |
6458e674 | 47 | Requires(post,postun): scrollkeeper |
a617f262 | 48 | Requires(post,preun): GConf2 |
85b65f0b | 49 | Requires: libgnomeui >= 2.24.0 |
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 MB |
69 | Requires: GConf2-devel >= 2.24.0 |
70 | Requires: gnome-vfs2-devel >= 2.24.0 | |
71 | Requires: gtk+2-devel >= 2:2.14.0 | |
a617f262 | 72 | Requires: libglade2-devel >= 1:2.6.2 |
85b65f0b | 73 | Requires: libgnomeui-devel >= 2.24.0 |
1b874169 PZ |
74 | |
75 | %description devel | |
76 | Header files for eog. | |
77 | ||
78 | %description devel -l pl.UTF-8 | |
79 | Pliki nagłówkowe eog. | |
80 | ||
85b65f0b MB |
81 | %package apidocs |
82 | Summary: Eye of GNOME API documentation | |
83 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
84 | Group: Documentation | |
85 | Requires: gtk-doc-common | |
86 | ||
87 | %description apidocs | |
88 | Eye of GNOME API documentation. | |
89 | ||
90 | %description apidocs -l pl.UTF-8 | |
91 | Dokumentacja API Eye of GNOME. | |
92 | ||
cd132c4c | 93 | %prep |
94 | %setup -q | |
32807e4c | 95 | %patch0 -p1 |
4e0ba68a | 96 | |
cd132c4c | 97 | %build |
85b65f0b | 98 | %{?with_apidocs:%{__gtkdocize}} |
aa25ce61 | 99 | %{__gnome_doc_common} |
6bff1701 | 100 | %{__libtoolize} |
268041a5 | 101 | %{__intltoolize} |
cd20d65c | 102 | %{__aclocal} |
470a23a6 | 103 | %{__automake} |
aa25ce61 | 104 | %{__autoheader} |
e3413657 | 105 | %{__autoconf} |
32807e4c | 106 | %configure \ |
85b65f0b | 107 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
23c85c82 | 108 | --disable-schemas-install \ |
85b65f0b MB |
109 | --disable-scrollkeeper \ |
110 | --with-html-dir=%{_gtkdocdir} | |
b9d7d08a | 111 | %{__make} |
b13f147c | 112 | |
cd132c4c | 113 | %install |
114 | rm -rf $RPM_BUILD_ROOT | |
32807e4c | 115 | |
cd132c4c | 116 | %{__make} install \ |
d9ead78e | 117 | DESTDIR=$RPM_BUILD_ROOT \ |
118 | GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 | |
cd132c4c | 119 | |
85b65f0b MB |
120 | rm -f $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la |
121 | ||
4e0ba68a | 122 | %find_lang %{name} --with-gnome --with-omf |
cd132c4c | 123 | |
13b71f75 JB |
124 | %clean |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
4d69a7c1 | 127 | %post |
268041a5 | 128 | %gconf_schema_install eog.schemas |
129 | %scrollkeeper_update_post | |
130 | %update_desktop_database_post | |
f83a2ab4 | 131 | %update_icon_cache hicolor |
7b788a76 | 132 | |
133 | %preun | |
268041a5 | 134 | %gconf_schema_uninstall eog.schemas |
4d69a7c1 | 135 | |
6458e674 | 136 | %postun |
268041a5 | 137 | %scrollkeeper_update_postun |
138 | %update_desktop_database_postun | |
f83a2ab4 | 139 | %update_icon_cache hicolor |
4d69a7c1 | 140 | |
cd132c4c | 141 | %files -f %{name}.lang |
142 | %defattr(644,root,root,755) | |
a617f262 MB |
143 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
144 | %attr(755,root,root) %{_bindir}/eog | |
9c46f8cd | 145 | %{_sysconfdir}/gconf/schemas/eog.schemas |
32807e4c | 146 | %{_datadir}/%{name} |
a617f262 | 147 | %{_desktopdir}/eog.desktop |
85b65f0b MB |
148 | %dir %{_libdir}/eog |
149 | %dir %{_libdir}/eog/plugins | |
150 | # buggy soname generation, uses .so.0.0.0 | |
151 | %{_libdir}/eog/plugins/fullscreen.eog-plugin | |
152 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* | |
153 | %{_libdir}/eog/plugins/reload.eog-plugin | |
154 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* | |
155 | %{_libdir}/eog/plugins/statusbar-date.eog-plugin | |
156 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* | |
f83a2ab4 | 157 | %{_iconsdir}/hicolor/*/*/* |
1b874169 PZ |
158 | |
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
161 | %{_includedir}/eog-2.20 | |
aa25ce61 | 162 | %{_pkgconfigdir}/eog.pc |
85b65f0b MB |
163 | |
164 | %if %{with apidocs} | |
165 | %files apidocs | |
166 | %defattr(644,root,root,755) | |
167 | %{_gtkdocdir}/eog | |
168 | %endif |