Summary(pt_BR): Visualizador de imagem Eye of GNOME
Name: eog
Version: 0.6
-Release: 2
+Release: 3
License: GPL
Group: X11/Applications
Source0: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/eog/%{name}-%{version}.tar.gz
Source1: %{name}.gif
Patch0: %{name}-am_ac.patch
+Patch1: %{name}-am16.patch
+Patch2: %{name}-ac253.patch
+Patch3: %{name}-disable_GConf_test.patch
+Patch4: %{name}-zh_CN.patch
+Patch5: %{name}-sane-window-size.patch
URL: http://www.gnome.org/
BuildRequires: GConf-devel >= 0.12
BuildRequires: autoconf
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: oaf-devel >= 0.6.2
+Requires(post): GConf
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+mv -f ./po/zh_CN.GB2312.po ./po/zh_CN.po && rm -f ./po/zh_CN.GB2312.gm
+%patch5 -p1
%build
rm -f missing
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+GCONF_CONFIG_SOURCE=xml::%{_sysconfdir}/gconf/gconf.xml.defaults
+export GCONF_CONFIG_SOURCE
+gconftool --makefile-install-rule %{_sysconfdir}/gconf/schemas/eog.schemas
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
+%{_sysconfdir}/gconf/schemas/eog.schemas
%{_applnkdir}/Graphics/*
%{_datadir}/idl/*.idl
%{_datadir}/%{name}
%{_datadir}/gnome/ui/*
%{_datadir}/oaf/*.oaf
-%{_pixmapsdir}/%{name}
+%{_pixmapsdir}/*