]> git.pld-linux.org Git - packages/eog.git/commitdiff
- use new faster rpm's GConf sutomation
authorpaladine <paladine@pld-linux.org>
Wed, 6 Apr 2005 13:02:53 +0000 (13:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- R(post,postun): desktop-file-utils
- run scrollkeeper-update in quiet mode
- rel. 2

Changed files:
    eog.spec -> 1.71

eog.spec

index e80b7ee9320fdf65a2650c2ca3ac1d68d86f73e9..a517a32d8dc6baaeac9113dadd1bc49801e8066e 100644 (file)
--- a/eog.spec
+++ b/eog.spec
@@ -3,7 +3,7 @@ Summary(pl):    Oko GNOME - przegl
 Summary(pt_BR):        Visualizador de imagem Eye of GNOME
 Name:          eog
 Version:       2.10.0
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         X11/Applications
 Source0:       http://ftp.gnome.org/pub/gnome/sources/eog/2.10/%{name}-%{version}.tar.bz2
@@ -26,7 +26,8 @@ BuildRequires:        libjpeg-devel
 BuildRequires: libtool
 BuildRequires: popt-devel
 BuildRequires: xft-devel >= 2.1.2
-Requires(post):        GConf2
+Requires(post,preun):  GConf2
+Requires(post,postun): desktop-file-utils
 Requires(post,postun): scrollkeeper
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -74,14 +75,21 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 umask 022
-%gconf_schema_install
-/usr/bin/scrollkeeper-update
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
+%gconf_schema_install /etc/gconf/schemas/eog.schemas
+/usr/bin/scrollkeeper-update -q
+/usr/bin/update-desktop-database
+
+%preun
+if [ $1 = 0 ]; then
+       %gconf_schema_uninstall /etc/gconf/schemas/eog.schemas
+fi
 
 %postun
-umask 022
-/usr/bin/scrollkeeper-update
-[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+if [ $1 = 0 ]; then
+       umask 022
+       /usr/bin/scrollkeeper-update -q
+       /usr/bin/update-desktop-database
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
This page took 0.051898 seconds and 4 git commands to generate.