Hello community,
here is the log from the commit of package pcsc-lite for openSUSE:Factory
checked in at Wed Feb 4 00:22:33 CET 2009.
--------
--- pcsc-lite/pcsc-lite.changes 2009-01-06 19:22:51.000000000 +0100
+++ pcsc-lite/pcsc-lite.changes 2009-02-03 13:45:39.000000000 +0100
@@ -1,0 +2,21 @@
+Tue Feb 3 13:41:22 CET 2009 - sbrabec@suse.cz
+
+- Updated to version 1.5.1:
+ * Fixed extended APDU of more than 2048 bytes
+ * some other minor improvements and bug corrections
+ * correctly handle up to PCSCLITE_MAX_READERS_CONTEXTS
+ * SCardGetStatusChange() behavior change
+ * SCardStatus(): support of SCARD_AUTOALLOCATE
+ * SCardGetStatusChange() now uses asynchronous events
+ * more and/or better documentation
+ * SCardTransmit(): correctly pass the pioRecvPci parameter
+ * SCardConnect() and SCardReconnect(): correct a race condition
+ * pcscd logs the command name sent by the application
+ * some other minor improvements and bug corrections
+- Split according to shared library packaging rules
+ (bnc#466430#c5).
+- Removed obsolete udev rules.
+- Install init script based on upstream one (bnc#467255).
+- Removed upgrade protection for <= SLE9.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
pcscd.init
pcsc-lite-1.4.102.tar.bz2
New:
----
pcsc-lite-1.5.1.tar.bz2
pcsc-lite-init.patch
pcsc-lite.sysconfig
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ pcsc-lite.spec ++++++
--- /var/tmp/diff_new_pack.W21021/_old 2009-02-04 00:19:49.000000000 +0100
+++ /var/tmp/diff_new_pack.W21021/_new 2009-02-04 00:19:49.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package pcsc-lite (Version 1.4.102)
+# spec file for package pcsc-lite (Version 1.5.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -22,22 +22,20 @@
# FIXME: Maybe we should use /usr/lib/pcsc/drivers as others do:
%define ifddir %{_libdir}/readers
BuildRequires: hal-devel pkg-config readline-devel
-# For directory ownership:
-BuildRequires: udev
-Version: 1.4.102
-Release: 4
+Version: 1.5.1
+Release: 1
PreReq: %{insserv_prereq} %{fillup_prereq}
-# For upgrade from <= SLES9:
-PreReq: coreutils
Group: Productivity/Security
License: BSD 3-Clause
Url: http://pcsclite.alioth.debian.org/
Summary: PCS Smart Cards Library
Source: %{name}-%{version}.tar.bz2
-Source1: pcscd.init
+Source1: %{name}.sysconfig
Source2: README.SUSE
Source3: pre_checkin.sh
Patch: pcsc-lite-musclecard.patch
+Patch1: pcsc-lite-init.patch
+Requires: libpcsclite1 >= %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -67,6 +65,38 @@
Carlos Prados
Antti Tapaninen
+%package -n libpcsclite1
+License: BSD 3-Clause
+Group: System/Libraries
+Summary: PCS Smart Cards Library
+
+%description -n libpcsclite1
+The purpose of PCSC Lite is to provide a Windows(R) SCard interface in
+a very small form factor for communication with smart cards and
+readers. PCSC Lite can be compiled directly for a desired reader driver
+or can be used to dynamically allocate/deallocate reader drivers at
+runtime (the default behavior).
+
+PCSC Lite uses the same winscard API as used in Windows(R).
+
+Security aware people should read the SECURITY file for possible
+vulnerabilities of pcsclite and how to fix them. For information on how
+to install drivers please read the DRIVERS file.
+
+Memory cards will be supported through the MCT specification, which is
+an APDU like manner sent normally through the SCardTransmit() function.
+This functionality is exercised in the driver.
+
+
+
+Authors:
+--------
+ David Corcoran
+ Ludovic Rousseau
+ Damien Sauveron
+ Carlos Prados
+ Antti Tapaninen
+
%package devel
License: BSD 3-Clause
Group: Development/Libraries/C and C++
@@ -82,11 +112,16 @@
Authors:
--------
David Corcoran
+ Ludovic Rousseau
+ Damien Sauveron
+ Carlos Prados
+ Antti Tapaninen
%prep
%setup -q
-cp -a %{S:2} .
+cp -a %{S:1} %{S:2} .
%patch
+%patch1
%build
%if %suse_version > 1010
@@ -105,43 +140,33 @@
# this program is noinst in the package
install src/.libs/testpcsc $RPM_BUILD_ROOT%{_sbindir}/
mkdir $RPM_BUILD_ROOT/etc/init.d
-install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/pcscd
+install -m 755 etc/pcscd.init $RPM_BUILD_ROOT/etc/init.d/pcscd
ln -sf ../../etc/init.d/pcscd $RPM_BUILD_ROOT%{_sbindir}/rcpcscd
-# For upgrade from <= SLES9:
-touch $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/old-reader.conf
-mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
-sed -n '/udev rules for pcscd and CCID readers/,/^\\end{verbatim}/{/{verbatim}/d;p;}' $RPM_BUILD_ROOT/etc/udev/rules.d/99-pcsc_lite.rules
+mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
+cp %{name}.sysconfig $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.pcscd
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp -a AUTHORS ChangeLog ChangeLog.svn COPYING DRIVERS HELP NEWS README README.SUSE SECURITY TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%pre
-# save old reader.conf in case of upgrade from <= SLES9
-if [ "$1" = "2" ]; then
- if [ ! -d etc/reader.conf.d ]; then # update from old version
- mkdir -p etc/reader.conf.d
- cp etc/reader.conf etc/reader.conf.d/old-reader.conf
- fi
-fi
-
%preun
%{stop_on_removal pcscd}
%post
-/sbin/ldconfig
-%{fillup_and_insserv pcscd}
+%{fillup_and_insserv -n pcscd pcscd}
%postun
-/sbin/ldconfig
%{restart_on_update pcscd}
%{insserv_cleanup}
+%post -n libpcsclite1 -p /sbin/ldconfig
+
+%postun -n libpcsclite1 -p /sbin/ldconfig
+
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
-%{_libdir}/*.so.*
# .so must be in the main package (#235773):
%{_libdir}/*.so
%doc %{_mandir}/man?/*.*
@@ -149,10 +174,13 @@
%ghost %{_sysconfdir}/reader.conf
%dir %{_sysconfdir}/reader.conf.d
%config %{_sysconfdir}/reader.conf.d/reader.conf
-%ghost %config %{_sysconfdir}/reader.conf.d/old-reader.conf
%{ifddir}
/etc/init.d/pcscd
-/etc/udev/rules.d/99-pcsc_lite.rules
+/var/adm/fillup-templates/sysconfig.pcscd
+
+%files -n libpcsclite1
+%defattr(-,root,root)
+%{_libdir}/libpcsclite.so.*
%files devel
%defattr(-,root,root)
@@ -161,6 +189,24 @@
%{_libdir}/pkgconfig/*.pc
%changelog
+* Tue Feb 03 2009 sbrabec@suse.cz
+- Updated to version 1.5.1:
+ * Fixed extended APDU of more than 2048 bytes
+ * some other minor improvements and bug corrections
+ * correctly handle up to PCSCLITE_MAX_READERS_CONTEXTS
+ * SCardGetStatusChange() behavior change
+ * SCardStatus(): support of SCARD_AUTOALLOCATE
+ * SCardGetStatusChange() now uses asynchronous events
+ * more and/or better documentation
+ * SCardTransmit(): correctly pass the pioRecvPci parameter
+ * SCardConnect() and SCardReconnect(): correct a race condition
+ * pcscd logs the command name sent by the application
+ * some other minor improvements and bug corrections
+- Split according to shared library packaging rules
+ (bnc#466430#c5).
+- Removed obsolete udev rules.
+- Install init script based on upstream one (bnc#467255).
+- Removed upgrade protection for <= SLE9.
* Tue Jan 06 2009 sbrabec@suse.cz
- Do not call autoreconf for SLE10.
* Wed Sep 10 2008 sbrabec@suse.cz
++++++ pcsc-lite-1.4.102.tar.bz2 -> pcsc-lite-1.5.1.tar.bz2 ++++++
++++ 11713 lines of diff (skipped)
++++++ pcsc-lite-init.patch ++++++
--- etc/pcscd.init.in
+++ etc/pcscd.init.in
@@ -29,7 +29,8 @@
# Note! pcscd should be started after pcmcia, and shut down before it
# for smooth experience with PCMCIA readers.
-. @sysconfdir_exp@/init.d/functions
+. @sysconfdir_exp@/rc.status
+rc_reset
umask 077
@@ -45,19 +46,21 @@
start() {
echo -n $"Starting PC/SC smart card daemon ($prog): "
- @sbindir_exp@/update-reader.conf && daemon $prog $PCSCD_OPTIONS
+ @sbindir_exp@/update-reader.conf && startproc $exec $PCSCD_OPTIONS
retval=$?
+ rc_status
echo
[ $retval -eq 0 ] && touch $lockfile
- return $retval
+ rc_status -v
}
stop() {
echo -n $"Stopping PC/SC smart card daemon ($prog): "
- killproc $prog
+ killproc $exec
retval=$?
+ rc_status
echo
[ $retval -eq 0 ] && rm -f $lockfile
- return $retval
+ rc_status -v
}
restart() {
stop
@@ -73,12 +76,19 @@
restart
;;
status)
- status $prog
+ checkproc $exec
+ rc_status -v
;;
condrestart|try-restart)
- [ ! -f $lockfile ] || restart
+ if test -f $lockfile ; then
+ restart
+ else
+ rc_reset
+ fi
+ rc_status
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
exit 2
esac
+rc_exit
++++++ pcsc-lite.sysconfig ++++++
## Path: Hardware/SmartCard
## Description: Hard disc health monitoring
## ServiceReload: pcscd
## Type: string
## Default:
#
# Command line options for pcscd(8) init script.
#
PCSCD_OPTIONS=""
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org