diff --git a/pcsc-lite.spec b/pcsc-lite.spec index 05dae38..9a57dbc 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -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 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 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 @@ rm -rf $RPM_BUILD_ROOT %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 @@ if [ $1 -eq 0 ] ; then 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 @@ fi %changelog +* Sun Jul 24 2006 Bob Relyea - 1.3.1-5 +- start pcscd when pcsc-lite is installed + * Sun Jul 16 2006 Florian La Roche - 1.3.1-4 - fix excludearch line