This commit is contained in:
committed by
Git OBS Bridge
parent
79abc0ca99
commit
c1fbc40c66
@@ -1,11 +0,0 @@
|
||||
--- src/error.c
|
||||
+++ src/error.c
|
||||
@@ -165,7 +165,7 @@
|
||||
};
|
||||
|
||||
/* add a null byte */
|
||||
- strError[sizeof(strError)] = '\0';
|
||||
+ strError[sizeof(strError) - 1] = '\0';
|
||||
|
||||
return strError;
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:66d220787369320f0e7d88272871042790c66d416831babf0cb882089f037b99
|
||||
size 691387
|
3
pcsc-lite-1.3.3.tar.bz2
Normal file
3
pcsc-lite-1.3.3.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1a22aa122ec32cb9e617b10ff775c36bcca03a1a5d3a166ccdb09f472284fdb6
|
||||
size 697581
|
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 13 14:08:53 CET 2007 - sbrabec@suse.cz
|
||||
|
||||
- Updated to version 1.3.3:
|
||||
* Added -H --hotplug argument.
|
||||
* Added support for IFD_GENERATE_HOTPLUG bit in driver Info.plist
|
||||
ifdCapabilities.
|
||||
* SCardConnect() & SCardDisconnect(): Wait until any transaction
|
||||
finishes before going on.
|
||||
* Removed tools installifd and formaticc.
|
||||
* SCardControl(): do not limit cbSendLength to MAX_BUFFER_SIZE.
|
||||
* implement SCardIsValidContext() PC/SC call.
|
||||
* Other API changes and improvements.
|
||||
- Spec file cleanup.
|
||||
- Moved testpcsc to /usr/sbin.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 17 14:44:29 CET 2007 - sbrabec@suse.cz
|
||||
|
||||
|
172
pcsc-lite.spec
172
pcsc-lite.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package pcsc-lite (Version 1.3.2)
|
||||
# spec file for package pcsc-lite (Version 1.3.3)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
@@ -11,38 +11,33 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: pcsc-lite
|
||||
BuildRequires: libusb pkgconfig readline-devel resmgr
|
||||
%define ifddir %{_prefix}/%{_lib}/readers
|
||||
%define auxbindir %{_prefix}/%{_lib}/pcsc-lite
|
||||
%define pcsc_version 1.3.2
|
||||
Version: 1.3.2
|
||||
Release: 23
|
||||
# FIXME: Maybe we should use /usr/lib/pcsc/drivers as others do:
|
||||
%define ifddir %{_libdir}/readers
|
||||
BuildRequires: libusb pkg-config readline-devel resmgr
|
||||
Version: 1.3.3
|
||||
Release: 1
|
||||
PreReq: %{insserv_prereq} %{fillup_prereq}
|
||||
# For upgrade from <= SLES9:
|
||||
PreReq: coreutils
|
||||
AutoReqProv: on
|
||||
Group: System/Libraries
|
||||
License: BSD License and BSD-like
|
||||
URL: http://www.linuxnet.com/
|
||||
Summary: The MUSCLE project SmartCards library
|
||||
Source0: %{name}-%{pcsc_version}.tar.bz2
|
||||
URL: http://pcsclite.alioth.debian.org/
|
||||
Summary: PCS Smart Cards Library
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: pcscd.init
|
||||
Source2: README.SUSE
|
||||
Source3: pre_checkin.sh
|
||||
Patch: %{name}-%{version}-overflow.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%package devel
|
||||
Group: System/Libraries
|
||||
Summary: Development package for the MUSCLE project SmartCards library
|
||||
Requires: pcsc-lite glibc-devel
|
||||
Suggests: pkgconfig
|
||||
|
||||
%description
|
||||
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in
|
||||
a very small form factor for communicating with smartcards 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).
|
||||
a very small form factor for communicating 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).
|
||||
PCSC Lite uses the same winscard API as used in Windows(R).
|
||||
|
||||
Security aware people should read the SECURITY file for possible
|
||||
vulnerabilities to pcsclite, how you can fix them, and how some will be
|
||||
@@ -59,7 +54,15 @@ an APDU like manner sent normally through the SCardTransmit() function.
|
||||
Authors:
|
||||
--------
|
||||
David Corcoran <corcoran@linuxnet.com>
|
||||
Ludovic Rousseau <ludovic.rousseau@free.fr>
|
||||
Damien Sauveron <sauveron@labri.fr>
|
||||
Carlos Prados <cprados@yahoo.com>
|
||||
Antti Tapaninen <aet@cc.hut.fi>
|
||||
|
||||
%package devel
|
||||
Group: System/Libraries
|
||||
Summary: Development package for the MUSCLE project SmartCards library
|
||||
Requires: %{name} = %{version} pcsc-lite glibc-devel
|
||||
|
||||
%description devel
|
||||
This package contains the development files for pcsc-lite. It allows to
|
||||
@@ -72,103 +75,84 @@ Authors:
|
||||
David Corcoran <corcoran@linuxnet.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{pcsc_version}
|
||||
%patch
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%{suse_update_config -f}
|
||||
aclocal --force -I m4
|
||||
libtoolize --force
|
||||
autoconf --force
|
||||
autoheader --force
|
||||
automake -afc
|
||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -Wall" \
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--sbindir=%{_sbindir} \
|
||||
--libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--includedir=%{_includedir} \
|
||||
--enable-usb \
|
||||
--enable-utils \
|
||||
--enable-syslog \
|
||||
--enable-daemon \
|
||||
--enable-usbdropdir=%{ifddir} \
|
||||
--sysconfdir=%{_sysconfdir}
|
||||
make
|
||||
make -C src testpcsc
|
||||
make -C src/utils
|
||||
ACLOCAL="aclocal -I m4" autoreconf -f -i
|
||||
%configure\
|
||||
--enable-usbdropdir=%{ifddir}
|
||||
make %{?jobs:-j%jobs}
|
||||
|
||||
%install
|
||||
export DESTDIR=$RPM_BUILD_ROOT
|
||||
export PKG_CONFIG_PATH=$PWD/src
|
||||
install -d $DESTDIR/etc/init.d \
|
||||
$DESTDIR%ifddir \
|
||||
$DESTDIR%auxbindir \
|
||||
$DESTDIR%{_prefix}/bin/ \
|
||||
$DESTDIR%{_libdir} \
|
||||
$DESTDIR%{_libdir}/readers/
|
||||
make install DESTDIR=$DESTDIR
|
||||
touch $DESTDIR%{_sysconfdir}/reader.conf
|
||||
install -m 755 src/.libs/testpcsc $DESTDIR/%auxbindir
|
||||
install -m 755 %{S:1} $DESTDIR/etc/init.d/pcscd
|
||||
ln -sf ../../etc/init.d/pcscd $DESTDIR%_prefix/sbin/rcpcscd
|
||||
# set libraries as executable - prevent ldd from complaining
|
||||
chmod +x $DESTDIR%{_libdir}/*.so*
|
||||
# cleanup : remove unpackaged files
|
||||
# first two are in auxbindir
|
||||
rm -f $RPM_BUILD_ROOT/usr/doc/*
|
||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/*
|
||||
%makeinstall
|
||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
|
||||
mkdir $RPM_BUILD_ROOT%{ifddir}
|
||||
# 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
|
||||
ln -sf ../../etc/init.d/pcscd $RPM_BUILD_ROOT%{_sbindir}/rcpcscd
|
||||
rm -r $RPM_BUILD_ROOT/usr/doc
|
||||
# formaticc is no more provided
|
||||
rm $RPM_BUILD_ROOT%{_mandir}/man1/formaticc.1*
|
||||
# For upgrade from <= SLES9:
|
||||
touch $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/old-reader.conf
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%pre
|
||||
# save old reader.conf in update case
|
||||
# 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
|
||||
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
|
||||
|
||||
%post
|
||||
%{run_ldconfig}
|
||||
%run_ldconfig
|
||||
%{fillup_and_insserv pcscd}
|
||||
|
||||
%postun
|
||||
%{run_ldconfig}
|
||||
%run_ldconfig
|
||||
%{insserv_cleanup}
|
||||
|
||||
%files
|
||||
%defattr(444,root,root,755)
|
||||
%doc ChangeLog AUTHORS NEWS README SECURITY doc/README.DAEMON
|
||||
%doc doc/*.pdf DRIVERS
|
||||
%attr(555,root,root) /etc/init.d/pcscd
|
||||
%attr(555,root,root) %{_prefix}/sbin/rcpcscd
|
||||
%ghost %verify (not md5 mtime size) %{_sysconfdir}/reader.conf
|
||||
%attr(755,root,root) %dir %{_sysconfdir}/reader.conf.d
|
||||
%attr(644,root,root) %config %{_sysconfdir}/reader.conf.d/reader.conf
|
||||
%attr(555,root,root) %{_libdir}/lib*.so.*
|
||||
# .so must be in the main package
|
||||
%{_libdir}/lib*.so
|
||||
%attr(555,root,root) %{_prefix}/sbin/pcscd
|
||||
%attr(444,root,root) %{_mandir}/man?/*
|
||||
%attr(755,root,root) %dir %auxbindir
|
||||
%attr(555,root,root) %auxbindir/testpcsc
|
||||
%attr(555,root,root) %{_sbindir}/installifd
|
||||
%attr(555,root,root) %{_sbindir}/update-reader.conf
|
||||
%attr(555,root,root) %{_bindir}/formaticc
|
||||
%attr(755,root,root) %dir %ifddir
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS ChangeLog ChangeLog.svn COPYING DRIVERS HELP NEWS README SECURITY TODO doc/README.DAEMON doc/*.pdf doc/*.tex doc/*.bib
|
||||
%{_libdir}/*.so.*
|
||||
# .so must be in the main package (#235773):
|
||||
%{_libdir}/*.so
|
||||
%doc %{_mandir}/man?/*.*
|
||||
%{_sbindir}/*
|
||||
%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
|
||||
|
||||
%files devel
|
||||
%defattr(644,root,root,755)
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/*
|
||||
%{_libdir}/lib*.*a
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/*.*a
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%changelog -n pcsc-lite
|
||||
* Tue Feb 13 2007 - sbrabec@suse.cz
|
||||
- Updated to version 1.3.3:
|
||||
* Added -H --hotplug argument.
|
||||
* Added support for IFD_GENERATE_HOTPLUG bit in driver Info.plist
|
||||
ifdCapabilities.
|
||||
* SCardConnect() & SCardDisconnect(): Wait until any transaction
|
||||
finishes before going on.
|
||||
* Removed tools installifd and formaticc.
|
||||
* SCardControl(): do not limit cbSendLength to MAX_BUFFER_SIZE.
|
||||
* implement SCardIsValidContext() PC/SC call.
|
||||
* Other API changes and improvements.
|
||||
- Spec file cleanup.
|
||||
- Moved testpcsc to /usr/sbin.
|
||||
* Wed Jan 17 2007 - sbrabec@suse.cz
|
||||
- pcsclite.so moved to the main package (#235773).
|
||||
* Tue Sep 19 2006 - anosek@suse.cz
|
||||
|
@@ -56,7 +56,7 @@ case "$1" in
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for PC/SC smart card daemon "
|
||||
echo -n "Checking for PC/SC smart card daemon "
|
||||
checkproc $pcscd_BIN
|
||||
rc_status -v
|
||||
;;
|
||||
|
Reference in New Issue
Block a user