rpms/pcsc-lite/devel pcsc-lite.spec,1.4,1.5

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Jul 24 22:04:31 UTC 2006


Author: rrelyea

Update of /cvs/dist/rpms/pcsc-lite/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv31503

Modified Files:
	pcsc-lite.spec 
Log Message:


start pcscd when pcsc-lite is installed.



Index: pcsc-lite.spec
===================================================================
RCS file: /cvs/dist/rpms/pcsc-lite/devel/pcsc-lite.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pcsc-lite.spec	16 Jul 2006 18:43:32 -0000	1.4
+++ pcsc-lite.spec	24 Jul 2006 22:04:27 -0000	1.5
@@ -1,6 +1,6 @@
 Name:           pcsc-lite
 Version:        1.3.1
-Release:        4
+Release:        5
 Summary:        PC/SC Lite smart card framework and applications
 
 Group:          System Environment/Daemons
@@ -13,8 +13,11 @@
 
 BuildRequires:  libusb-devel >= 0.1.7
 BuildRequires:  doxygen
+Requires(post): initscripts
 Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig
+Requires(preun): initscripts
+Requires(postun): initscripts
 Requires:       pcsc-ifd-handler
 # 390 does not have libusb or smartCards
 ExcludeArch: s390 s390x
@@ -93,7 +96,13 @@
 
 
 %post
-/sbin/chkconfig --add pcscd
+if [ $1 -eq 1 ] ; then
+  /sbin/chkconfig --add pcscd
+  /sbin/chkconfig --level 345 pcscd on
+  %{_initrddir}/pcscd start 
+else
+  %{_initrddir}/pcscd try-restart  || :
+fi
 
 %preun
 if [ $1 -eq 0 ] ; then
@@ -102,7 +111,7 @@
 fi
 
 %postun
-[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart >/dev/null || :
+[ $1 -gt 0 ] && %{_initrddir}/pcscd try-restart  || :
 
 %post libs -p /sbin/ldconfig
 
@@ -141,6 +150,9 @@
 
 
 %changelog
+* Sun Jul 24 2006 Bob Relyea <rrelyea at redhat.com> - 1.3.1-5
+- start pcscd when pcsc-lite is installed
+
 * Sun Jul 16 2006 Florian La Roche <laroche at redhat.com> - 1.3.1-4
 - fix excludearch line
 




More information about the fedora-cvs-commits mailing list