start pcscd when pcsc-lite is installed.

This commit is contained in:
Robert Relyea 2006-07-24 22:04:27 +00:00
parent eba0750c52
commit 7e84d9becb
1 changed files with 15 additions and 3 deletions

View File

@ -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 <rrelyea@redhat.com> - 1.3.1-5
- start pcscd when pcsc-lite is installed
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
- fix excludearch line