rpms/pilot-link/F-8 pilot-link.spec,1.71,1.72

Alex Lancaster (alexlan) fedora-extras-commits at redhat.com
Fri Jan 4 10:27:49 UTC 2008


Author: alexlan

Update of /cvs/extras/rpms/pilot-link/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15041

Modified Files:
	pilot-link.spec 
Log Message:
* Fri Jan  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2:0.12.2-14
- Restart hal daemon if running and remove visor module if currently
  loaded (#280251)



Index: pilot-link.spec
===================================================================
RCS file: /cvs/extras/rpms/pilot-link/F-8/pilot-link.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- pilot-link.spec	4 Jan 2008 09:55:21 -0000	1.71
+++ pilot-link.spec	4 Jan 2008 10:27:11 -0000	1.72
@@ -3,7 +3,7 @@
 
 Name: pilot-link
 Version: 0.12.2
-Release: 13%{?dist}
+Release: 14%{?dist}
 Epoch: 2
 License: GPLv2 and GPLv2+ and LGPLv2+ and TCL
 Group: Applications/Communications
@@ -28,7 +28,8 @@
 Patch7: pilot-link-0.12.2-NR70V.patch
 Patch8: pilot-link-0.12.2-md5.patch
 
-Requires: /sbin/ldconfig
+Requires(post): /sbin/ldconfig, /sbin/service, /sbin/modprobe
+Requires(postun): /sbin/ldconfig
 
 %if %{support_perl}
 Requires:      perl(:MODULE_COMPAT_%{perl_version})
@@ -157,9 +158,16 @@
 install -p -m644 %{SOURCE5} %{buildroot}%{_datadir}/pilot-link/udev
 install -p -m644 %{SOURCE6} %{buildroot}%{_datadir}/pilot-link/udev
 
-%post -p /sbin/ldconfig
+%post 
+/sbin/ldconfig
+/sbin/service haldaemon condrestart >/dev/null 2>&1
+if [ $1 = 2 ]; then
+# only attempt to remove visor module on upgrade, not needed for fresh install
+   /sbin/modprobe -s -r visor > /dev/null 2>&1
+fi
 
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
 
 %clean
 rm -rf %{buildroot}
@@ -188,6 +196,10 @@
 %{_datadir}/aclocal/*.m4
 
 %changelog
+* Fri Jan  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2:0.12.2-14
+- Restart hal daemon if running and remove visor module if currently
+  loaded (#280251)
+
 * Fri Jan  4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2:0.12.2-13
 - Add README.fedora and visor configs as fallbacks (#280251: thanks Kevin Page)
 




More information about the fedora-extras-commits mailing list