[packages/mate-applets: 197/311] - fixed %%preun and %%postun - run scrollkeeper-update in quiet mode - added O: gnome-applet-cpufreq

glen glen at pld-linux.org
Thu Dec 27 20:39:41 CET 2012


commit 23a406a7717e19a516bcb3a713f5d9d734de548f
Author: paladine <paladine at pld-linux.org>
Date:   Mon Apr 4 16:50:32 2005 +0000

    - fixed %%preun and %%postun
    - run scrollkeeper-update in quiet mode
    - added O: gnome-applet-cpufreq to cpufreq subpackage
    - rel 7
    
    Changed files:
        gnome-applets.spec -> 1.148

 gnome-applets.spec | 195 ++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 125 insertions(+), 70 deletions(-)
---
diff --git a/gnome-applets.spec b/gnome-applets.spec
index c894aab..eb7ec03 100644
--- a/gnome-applets.spec
+++ b/gnome-applets.spec
@@ -4,7 +4,7 @@ Summary(ru):	
 Summary(uk):	������˦ ��������, �� ������������ � ������ GNOME
 Name:		gnome-applets
 Version:	2.10.0
-Release:	6
+Release:	7
 Epoch:		1
 License:	GPL v2, FDL
 Group:		X11/Applications
@@ -80,7 +80,7 @@ Pliki nag
 Summary:	Keyboard Accessibility Status applet
 Summary(pl):	Aplet stanu dostepno�ci klawiatury
 Group:		X11/Applications
-Requires(post):	scrollkeeper
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -94,8 +94,8 @@ Aplet stanu dostepno
 Summary:	Battery Charge Monitor applet
 Summary(pl):	Aplet monitora stanu na�adowania akumulatora
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -109,8 +109,8 @@ Aplet monitora stanu na
 Summary:	Character Palette applet
 Summary(pl):	Aplet palety znak�w
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -124,10 +124,11 @@ Aplet palety znak
 Summary:	CPU Frequency Scaling Monitor applet
 Summary(pl):	Aplet monitora cz�stotliwo�ci procesora
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
+Obsoletes:	gnome-applet-cpufreq
 
 %description cpufreq
 CPU Frequency Scaling Monitor applet.
@@ -139,8 +140,8 @@ Aplet monitora cz
 Summary:	Disk Mounter applet
 Summary(pl):	Aplet do montowania dysk�w
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -154,8 +155,8 @@ Aplet do monotwania dysk
 Summary:	Geyes applet
 Summary(pl):	Aplet geyes
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -169,8 +170,8 @@ Aplet geyes.
 Summary:	Stock Ticker applet
 Summary(pl):	Aplet wska�nika gie�dowego
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -184,8 +185,8 @@ Aplet wska
 Summary:	Weather Report applet
 Summary(pl):	Aplet raportu pogodowego
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -199,8 +200,8 @@ Aplet raportu pogodowego.
 Summary:	Keyboard Indicator applet
 Summary(pl):	Aplet wska�nika klawiatury
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -214,8 +215,8 @@ Aplet wska
 Summary:	Command Line applet
 Summary(pl):	Aplet wiersza polece�
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -229,8 +230,8 @@ Aplet wiersza polece
 Summary:	Volume Control applet
 Summary(pl):	Aplet regulacji g�o�no�ci
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Requires:	gstreamer-audiosink
 Conflicts:	gnome-applets <= 0:2.10.0-5
@@ -259,8 +260,8 @@ Aplet kontrolek modemu.
 Summary:	System Monitor applet
 Summary(pl):	Aplet monitora systemu
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -274,8 +275,8 @@ Aplet monitora systemu.
 Summary:	Sticky Notes applet
 Summary(pl):	Aplet notatek
 Group:		X11/Applications
-Requires(post):	GConf2
-Requires(post):	scrollkeeper
+Requires(post,preun):	GConf2
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 Obsoletes:	gnotes_applet
@@ -290,7 +291,7 @@ Aplet notatek.
 Summary:	Trash applet
 Summary(pl):	Aplet �mietnika
 Group:		X11/Applications
-Requires(post):	scrollkeeper
+Requires(post,postun):	scrollkeeper
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Conflicts:	gnome-applets <= 0:2.10.0-5
 
@@ -344,154 +345,208 @@ awk '{src=$0; dst=$0;sub("^./","",dst);gsub("/","-",dst);
 rm -rf $RPM_BUILD_ROOT
 
 %post accessx-status
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %banner %{name} -e << EOF
 For full functionality, you need to install control-center.
 EOF
 
 %postun accessx-status
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post battstat
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/battstat.schemas
 
 %preun battstat
-%gconf_schema_uninstall /etc/gconf/schemas/battstat.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/battstat.schemas
+fi
 
 %postun battstat
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post charpicker
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/charpick.schemas
 
 %preun charpicker
-%gconf_schema_uninstall /etc/gconf/schemas/charpick.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/charpick.schemas
+fi
 
 %postun charpicker
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post cpufreq
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/cpufreq-applet.schemas
 
 %preun cpufreq
-%gconf_schema_uninstall /etc/gconf/schemas/cpufreq-applet.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/cpufreq-applet.schemas
+fi
 
 %postun cpufreq
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post drivemount
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/drivemount.schemas
 
 %preun drivemount
-%gconf_schema_uninstall /etc/gconf/schemas/drivemount.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/drivemount.schemas
+fi
 
 %postun drivemount 
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post geyes
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/geyes.schemas
 
 %preun geyes
-%gconf_schema_uninstall /etc/gconf/schemas/geyes.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/geyes.schemas
+fi
 
 %postun geyes 
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post gtik
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/gtik.schemas
 
 %preun gtik
-%gconf_schema_uninstall /etc/gconf/schemas/gtik.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/gtik.schemas
+fi
 
 %postun gtik
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post gweather
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/gweather.schemas
 
 %preun gweather
-%gconf_schema_uninstall /etc/gconf/schemas/gweather.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/gweather.schemas
+fi
 
 %postun gweather
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post keyboard
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/gswitchit.schemas
 
 %preun keyboard
-%gconf_schema_uninstall /etc/gconf/schemas/gswitchit.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/gswitchit.schemas
+fi
 
 %postun keyboard
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post minicommander
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/mini-commander-global.schemas
 %gconf_schema_install /etc/gconf/schemas/mini-commander.schemas
 GCONF_CONFIG_SOURCE="`%{_bindir}/gconftool-2 --get-default-source`" %{_libdir}/%{name}/mc-install-default-macros
 
 %preun minicommander
-%gconf_schema_uninstall /etc/gconf/schemas/mini-commander-global.schemas
-%gconf_schema_uninstall /etc/gconf/schemas/mini-commander.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/mini-commander-global.schemas
+	%gconf_schema_uninstall /etc/gconf/schemas/mini-commander.schemas
+fi
 
 %postun minicommander
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post mixer
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/mixer.schemas
 %banner %{name} -e << EOF
 For full functionality, you need to install gnome-media-volume-control.
 EOF
 
 %preun mixer
-%gconf_schema_uninstall /etc/gconf/schemas/mixer.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/mixer.schemas
+fi
 
 %postun mixer
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post modemlights
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 
 %postun modemlights
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post multiload
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/multiload.schemas
 %banner %{name} -e << EOF
 For full functionality, you need to install gnome-system-monitor.
 EOF
 
 %preun multiload
-%gconf_schema_uninstall /etc/gconf/schemas/multiload.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/multiload.schemas
+fi
 
 %postun multiload
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post stickynotes
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 %gconf_schema_install /etc/gconf/schemas/stickynotes.schemas
 
 %preun stickynotes
-%gconf_schema_uninstall /etc/gconf/schemas/stickynotes.schemas
+if [ $1 = 0 ]; then
+	%gconf_schema_uninstall /etc/gconf/schemas/stickynotes.schemas
+fi
 
 %postun stickynotes
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %post trash
-/usr/bin/scrollkeeper-update
+/usr/bin/scrollkeeper-update -q
 
 %postun trash
-/usr/bin/scrollkeeper-update
+if [ $1 = 0 ]; then
+	/usr/bin/scrollkeeper-update -q
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mate-applets.git/commitdiff/65c1b73f8721e2c1dd8f5b7d875df06b87ad8453



More information about the pld-cvs-commit mailing list