[eog] fix up spec

Matthias Clasen mclasen at fedoraproject.org
Wed Oct 6 22:53:19 UTC 2010


commit ec26e03bac100ae8ecec39e647c506e5bf340a68
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Oct 6 18:18:00 2010 -0400

    fix up spec

 eog.spec |   29 ++++++-----------------------
 1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/eog.spec b/eog.spec
index 4f8d9ef..d64a3f2 100644
--- a/eog.spec
+++ b/eog.spec
@@ -95,55 +95,38 @@ rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
 
 rm -rf $RPM_BUILD_ROOT%{_libdir}/eog/plugins/*.la
 
-# save space by linking identical images in translated docs
-helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
-for f in $helpdir/C/figures/*.png; do
-  b="$(basename $f)"
-  for d in $helpdir/*; do
-    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
-      g="$d/figures/$b"
-      if [ -f "$g" ]; then
-        if cmp -s $f $g; then
-          rm "$g"; ln -s "../../C/figures/$b" "$g"
-        fi
-      fi
-    fi
-  done
-done
-
 
 %post
 update-desktop-database -q
-%gconf_schema_upgrade eog
 touch %{_datadir}/icons/hicolor >&/dev/null || :
 
 
 %pre
-%gconf_schema_prepare eog
-
-%preun
-%gconf_schema_remove eog
+%gconf_schema_obsolete eog
 
 %postun
 update-desktop-database -q
 if [ $1 -eq 0 ]; then
   touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
   gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+  glib-compile-schemas %{_datadir}/glib-2.0/schemas
 fi
 
 %posttrans
 gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+glib-compile-schemas %{_datadir}/glib-2.0/schemas
 
 %files -f %{name}.lang
 %defattr(-,root,root)
 %doc AUTHORS COPYING NEWS README
 %{_datadir}/eog
 %{_datadir}/applications/*
-%{_datadir}/omf/*
 %{_datadir}/icons/hicolor/*/apps/*
 %{_bindir}/*
-%{_sysconfdir}/gconf/schemas/*.schemas
 %{_libdir}/eog
+%{_datadir}/GConf/gsettings/eog.convert
+%{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml
+%{_datadir}/glib-2.0/schemas.org.gnome.eog.gschema.xml
 
 %files devel
 %defattr(-,root,root)


More information about the scm-commits mailing list