BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: popt-devel
+BuildRequires: rpmbuild(macros) >= 1.197
BuildRequires: xft-devel >= 2.1.2
Requires(post,preun): GConf2
Requires(post,postun): desktop-file-utils
%build
%{__libtoolize}
-glib-gettextize --copy --force
-intltoolize --copy --force
+%{__glib_gettextize}
+%{__intltoolize}
%{__aclocal}
%{__autoheader}
gnome-doc-common
rm -rf $RPM_BUILD_ROOT
%post
-umask 022
-%gconf_schema_install /etc/gconf/schemas/eog.schemas
-/usr/bin/scrollkeeper-update -q
-/usr/bin/update-desktop-database
+%gconf_schema_install eog.schemas
+%scrollkeeper_update_post
+%update_desktop_database_post
%preun
-if [ $1 = 0 ]; then
- %gconf_schema_uninstall /etc/gconf/schemas/eog.schemas
-fi
+%gconf_schema_uninstall eog.schemas
%postun
-if [ $1 = 0 ]; then
- umask 022
- /usr/bin/scrollkeeper-update -q
- /usr/bin/update-desktop-database
-fi
+%scrollkeeper_update_postun
+%update_desktop_database_postun
%files -f %{name}.lang
%defattr(644,root,root,755)