Summary(pl): Oko GNOME - przegl±darka obrazków
Summary(pt_BR): Visualizador de imagem Eye of GNOME
Name: eog
-Version: 1.1.0
+Version: 2.12.1
Release: 1
-License: GPL
+License: GPL v2
Group: X11/Applications
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/1.1/%{name}-%{version}.tar.bz2
-Source1: %{name}.gif
-Patch0: %{name}-am.patch
-Patch1: %{name}-makefile.patch
+Source0: http://ftp.gnome.org/pub/gnome/sources/eog/2.12/%{name}-%{version}.tar.bz2
+# Source0-md5: d5dc20850777bb85ec90ff92817106dd
+Patch0: %{name}-libtool.patch
+Patch1: %{name}-desktop.patch
URL: http://www.gnome.org/
+BuildRequires: GConf2-devel >= 2.10.0
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: bonobo-activation-devel >= 1.0.3
-BuildRequires: GConf2-devel >= 1.2.1
BuildRequires: gettext-devel
-BuildRequires: gnome-vfs2-devel >= 2.0.3
+BuildRequires: gnome-common >= 2.8.0
+BuildRequires: gnome-vfs2-devel >= 2.10.0-2
BuildRequires: intltool
-BuildRequires: libbonoboui >= 2.0.2
-BuildRequires: libgnomeprint-devel >= 1.116.0
-BuildRequires: libgnomeui >= 2.0.4
+BuildRequires: lcms-devel
+BuildRequires: libart_lgpl-devel >= 2.3.17
+BuildRequires: libexif-devel >= 1:0.6.12
+BuildRequires: libglade2-devel >= 1:2.5.1
+BuildRequires: libgnomeprintui-devel
+BuildRequires: libgnomeui-devel >= 2.11.2-2
BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel
-BuildRequires: librsvg-devel >= 2.0.1
BuildRequires: libtool
+BuildRequires: pkgconfig >= 0.9.0
BuildRequires: popt-devel
-Requires(post): GConf2
-Requires(post): scrollkeeper
+BuildRequires: rpmbuild(macros) >= 1.197
+BuildRequires: scrollkeeper
+BuildRequires: xft-devel >= 2.1.2
+Requires(post,preun): GConf2
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): scrollkeeper
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
-%define _sysconfdir /etc/X11/GNOME2
-%define _omf_dest_dir %(scrollkeeper-config --omfdir)
-
%description
Eye of GNOME is a tool for viewing/cataloging images.
%patch1 -p1
%build
-rm -f missing
-sed -e 's/-ourdir/ourdir/' xmldocs.make >xmldocs.make.tmp
-mv xmldocs.make.tmp xmldocs.make
-glib-gettextize --copy --force
-libtoolize --copy --force
-intltoolize --copy --force
-aclocal -I %{_aclocaldir}/gnome2-macros
-%{__autoconf}
+%{__libtoolize}
+%{__glib_gettextize}
+%{__intltoolize}
+%{__aclocal}
+%{__autoheader}
+%{__gnome_doc_common}
%{__automake}
+%{__autoconf}
%configure \
- --enable-platform-gnome-2
-%{__make}
+ --disable-schemas-install
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- omf_dest_dir=%{_omf_dest_dir}/%{name}
+ GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
%find_lang %{name} --with-gnome
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%post
-/usr/bin/scrollkeeper-update
-GCONF_CONFIG_SOURCE="`%{_bindir}/gconftool-2 --get-default-source`" gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas > /dev/null
+%gconf_schema_install eog.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
-%postun -p /usr/bin/scrollkeeper-update
+%preun
+%gconf_schema_uninstall eog.schemas
-%clean
-rm -rf $RPM_BUILD_ROOT
+%postun
+%scrollkeeper_update_postun
+%update_desktop_database_postun
%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
-%{_sysconfdir}/gconf/schemas/*
-%{_libdir}/bonobo/servers/*
+%{_sysconfdir}/gconf/schemas/eog.schemas
%{_datadir}/%{name}
-%{_datadir}/applications/*
-%{_datadir}/gnome-2.0/ui/*
-%{_datadir}/idl/*
%{_omf_dest_dir}/%{name}
+%{_desktopdir}/*
%{_pixmapsdir}/*