X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=eog.spec;h=ff3f98178b61750158dafea5fea4ea1b584d47c9;hb=412bdafaa22dbfc73f4a4a43fb7228ff0a59a9f5;hp=568fdb6ca2479113a8723327db2699d7927dffcf;hpb=d9ead78e3c6928f8b8bb5225758b065fc2a4f47b;p=packages%2Feog.git diff --git a/eog.spec b/eog.spec index 568fdb6..ff3f981 100644 --- a/eog.spec +++ b/eog.spec @@ -1,73 +1,111 @@ +# +# Conditional build: +%bcond_without apidocs # disable API documentation +# Summary: The Eye of GNOME image viewer -Summary(pl): Oko GNOME - przegl±darka obrazków -Summary(pt_BR): Visualizador de imagem Eye of GNOME +Summary(pl.UTF-8): Oko GNOME - przeglądarka obrazków +Summary(pt_BR.UTF-8): Visualizador de imagem Eye of GNOME Name: eog -Version: 2.6.0 +Version: 2.28.2 Release: 1 -License: GPL -Group: X11/Applications -Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.6/%{name}-%{version}.tar.bz2 -# Source0-md5: 7570aa11e8bfbf707b3cc6c3774e11af -Patch0: %{name}-libtool.patch -Patch1: %{name}-bonobo.patch -Patch2: %{name}-locale-names.patch -URL: http://www.gnome.org/ -BuildRequires: GConf2-devel >= 2.6.0 -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: eel-devel >= 2.6.0 +License: GPL v2+ +Group: X11/Applications/Graphics +Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/2.28/%{name}-%{version}.tar.bz2 +# Source0-md5: ee5fd7f3cdd37467cb86052a858757c3 +Patch0: %{name}-codegen.patch +URL: http://www.gnome.org/projects/eog/ +BuildRequires: GConf2-devel >= 2.24.0 +BuildRequires: autoconf >= 2.59 +BuildRequires: automake >= 1:1.9 +BuildRequires: dbus-glib-devel >= 0.74 +BuildRequires: docbook-dtd412-xml +BuildRequires: exempi-devel >= 1.99.5 BuildRequires: gettext-devel -BuildRequires: gnome-common >= 2.4.0 -BuildRequires: gnome-vfs2-devel >= 2.6.0 -BuildRequires: intltool -Buildrequires: libart_lgpl-devel >= 2.3.16 -BuildRequires: libbonobo-devel >= 2.6.0 -BuildRequires: libbonoboui-devel >= 2.5.4 -Buildrequires: libexif-devel >= 0.5.12 -Buildrequires: libglade2-devel >= 1:2.3.6 -BuildRequires: libgnomeprint-devel >= 2.6.0 -BuildRequires: libgnomeui-devel >= 2.6.0 -BuildRequires: libgnomeprintui-devel >= 2.6.0 +BuildRequires: gnome-common >= 2.24.0 +BuildRequires: gnome-desktop-devel >= 2.26.0 +BuildRequires: gnome-doc-utils >= 0.14.0 +BuildRequires: gnome-icon-theme >= 2.24.0 +BuildRequires: gtk+2-devel >= 2:2.16.0 +%{?with_apidocs:BuildRequires: gtk-doc >= 1.9} +BuildRequires: intltool >= 0.40.0 +BuildRequires: lcms-devel +BuildRequires: libart_lgpl-devel >= 2.3.19 +BuildRequires: libexif-devel >= 1:0.6.14 BuildRequires: libjpeg-devel -BuildRequires: libpng-devel -BuildRequires: librsvg-devel >= 2.6.0 BuildRequires: libtool -BuildRequires: popt-devel -BuildRequires: xft-devel >= 2.1.2 -Requires(post): GConf2 -Requires(post): scrollkeeper -Requires: libbonobo >= 2.6.0 +BuildRequires: libxml2-devel >= 1:2.7.0 +BuildRequires: pkgconfig >= 0.9.0 +BuildRequires: python-pygobject-devel >= 2.16.0 +BuildRequires: python-pygtk-devel >= 2:2.14.0 +BuildRequires: rpmbuild(find_lang) >= 1.23 +BuildRequires: rpmbuild(macros) >= 1.311 +BuildRequires: scrollkeeper +BuildRequires: sed >= 4.0 +BuildRequires: shared-mime-info >= 0.50 +BuildRequires: zlib-devel +Requires(post,postun): desktop-file-utils +Requires(post,postun): gtk+2 +Requires(post,postun): hicolor-icon-theme +Requires(post,postun): scrollkeeper +Requires(post,preun): GConf2 +# sr@Latn vs. sr@latin +Conflicts: glibc-misc < 6:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Eye of GNOME is a tool for viewing/cataloging images. -%description -l pl -Eye of GNOME (Oko GNOME) jest narzêdziem do ogl±dania/katalogowania -obrazków. +%description -l pl.UTF-8 +Eye of GNOME (Oko GNOME) jest narzędziem do oglądania/katalogowania +obrazków. -%description -l pt_BR +%description -l pt_BR.UTF-8 Aplicativo para visualizar imagens chamado Eye of GNOME. +%package devel +Summary: Header files for eog +Summary(pl.UTF-8): Pliki nagłówkowe eog +Group: X11/Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: GConf2-devel >= 2.24.0 +Requires: gtk+2-devel >= 2:2.16.0 + +%description devel +Header files for eog. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe eog. + +%package apidocs +Summary: Eye of GNOME API documentation +Summary(pl.UTF-8): Dokumentacja API Eye of GNOME +Group: Documentation +Requires: gtk-doc-common + +%description apidocs +Eye of GNOME API documentation. + +%description apidocs -l pl.UTF-8 +Dokumentacja API Eye of GNOME. + %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 - -mv po/{no,nb}.po %build +%{?with_apidocs:%{__gtkdocize}} +%{__gnome_doc_common} %{__libtoolize} -glib-gettextize --copy --force -intltoolize --copy --force -%{__aclocal} -I %{_aclocaldir}/gnome2-macros -%{__autoheader} -gnome-doc-common +%{__intltoolize} +%{__aclocal} %{__automake} +%{__autoheader} %{__autoconf} %configure \ - --disable-schemas-install + --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ + --disable-schemas-install \ + --disable-scrollkeeper \ + --with-html-dir=%{_gtkdocdir} %{__make} %install @@ -77,28 +115,52 @@ rm -rf $RPM_BUILD_ROOT DESTDIR=$RPM_BUILD_ROOT \ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 -%find_lang %{name} --with-gnome +rm -f $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la -%post -%gconf_schema_install -/usr/bin/scrollkeeper-update - -%postun -p /usr/bin/scrollkeeper-update +%find_lang %{name} --with-gnome --with-omf %clean rm -rf $RPM_BUILD_ROOT +%post +%gconf_schema_install eog.schemas +%scrollkeeper_update_post +%update_desktop_database_post +%update_icon_cache hicolor + +%preun +%gconf_schema_uninstall eog.schemas + +%postun +%scrollkeeper_update_postun +%update_desktop_database_postun +%update_icon_cache hicolor + %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS ChangeLog NEWS README -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/eog-image-viewer -%attr(755,root,root) %{_libdir}/eog-collection-view -%{_sysconfdir}/gconf/schemas/* -%{_libdir}/bonobo/servers/* +%doc AUTHORS ChangeLog NEWS README THANKS TODO +%attr(755,root,root) %{_bindir}/eog +%{_sysconfdir}/gconf/schemas/eog.schemas %{_datadir}/%{name} -%{_datadir}/gnome-2.0/ui/* -%{_datadir}/idl/* -%{_omf_dest_dir}/%{name} -%{_desktopdir}/* -%{_pixmapsdir}/* +%{_desktopdir}/eog.desktop +%dir %{_libdir}/eog +%dir %{_libdir}/eog/plugins +# buggy soname generation, uses .so.0.0.0 +%{_libdir}/eog/plugins/fullscreen.eog-plugin +%attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* +%{_libdir}/eog/plugins/reload.eog-plugin +%attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* +%{_libdir}/eog/plugins/statusbar-date.eog-plugin +%attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* +%{_iconsdir}/hicolor/*/*/* + +%files devel +%defattr(644,root,root,755) +%{_includedir}/eog-2.20 +%{_pkgconfigdir}/eog.pc + +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%{_gtkdocdir}/eog +%endif