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