2007-01-15 23:29:27 +00:00
#
2008-04-06 05:32:17 +00:00
# spec file for package pcsc-lite (Version 1.4.100)
2007-01-15 23:29:27 +00:00
#
2008-04-06 05:32:17 +00:00
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-01-15 23:29:27 +00:00
#
2008-08-22 23:50:21 +00:00
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2007-01-15 23:29:27 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2008-04-06 05:32:17 +00:00
2007-01-15 23:29:27 +00:00
Name : pcsc-lite
2007-02-15 17:27:23 +00:00
# FIXME: Maybe we should use /usr/lib/pcsc/drivers as others do:
%define ifddir %{_libdir}/readers
2008-08-22 23:50:21 +00:00
BuildRequires : hal-devel pkg-config readline-devel
2007-11-06 22:07:32 +00:00
# For directory ownership:
BuildRequires : udev
2008-04-06 05:32:17 +00:00
Version : 1.4.100
2008-08-22 23:50:21 +00:00
Release : 49
2007-01-15 23:29:27 +00:00
PreReq : %{insserv_prereq} %{fillup_prereq}
2007-02-15 17:27:23 +00:00
# For upgrade from <= SLES9:
PreReq : coreutils
2008-04-06 05:32:17 +00:00
Group : Productivity/Security
2007-07-27 00:04:14 +00:00
License : BSD 3-Clause
2007-11-06 22:07:32 +00:00
Url : http://pcsclite.alioth.debian.org/
2007-02-15 17:27:23 +00:00
Summary : PCS Smart Cards Library
2008-04-06 05:32:17 +00:00
Source : %{name} -%{version} .tar.bz2
2007-01-15 23:29:27 +00:00
Source1 : pcscd.init
Source2 : README.SUSE
Source3 : pre_checkin.sh
2008-04-06 05:32:17 +00:00
Patch : pcsc-lite-musclecard.patch
2007-01-15 23:29:27 +00:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%description
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in
2007-11-06 22:07:32 +00:00
a very small form factor for communication with smart cards and
2007-02-15 17:27:23 +00:00
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).
2007-01-15 23:29:27 +00:00
2007-02-15 17:27:23 +00:00
PCSC Lite uses the same winscard API as used in Windows(R).
2007-01-15 23:29:27 +00:00
Security aware people should read the SECURITY file for possible
2007-11-06 22:07:32 +00:00
vulnerabilities of pcsclite and how to fix them. For information on how
to install drivers please read the DRIVERS file.
2007-01-15 23:29:27 +00:00
2007-11-06 22:07:32 +00:00
Memory cards will be supported through the MCT specification, which is
2007-01-15 23:29:27 +00:00
an APDU like manner sent normally through the SCardTransmit() function.
2007-11-06 22:07:32 +00:00
This functionality is exercised in the driver.
2007-01-15 23:29:27 +00:00
Authors:
--------
David Corcoran <corcoran@linuxnet.com>
2007-02-15 17:27:23 +00:00
Ludovic Rousseau <ludovic.rousseau@free.fr>
Damien Sauveron <sauveron@labri.fr>
Carlos Prados <cprados@yahoo.com>
Antti Tapaninen <aet@cc.hut.fi>
2007-01-15 23:29:27 +00:00
2007-02-15 17:27:23 +00:00
%package devel
2008-04-06 05:32:17 +00:00
License : BSD 3-Clause
Group : Development/Libraries/C and C++
2007-02-15 17:27:23 +00:00
Summary : Development package for the MUSCLE project SmartCards library
Requires : %{name} = %{version} pcsc-lite glibc-devel
2007-01-15 23:29:27 +00:00
%description devel
This package contains the development files for pcsc-lite. It allows to
compile plugins for the pcsc-lite package.
Authors:
--------
David Corcoran <corcoran@linuxnet.com>
%prep
2007-02-15 17:27:23 +00:00
%setup -q
2007-07-27 00:04:14 +00:00
cp -a %{S:2} .
2008-04-06 05:32:17 +00:00
%patch
2007-01-15 23:29:27 +00:00
%build
2007-02-15 17:27:23 +00:00
ACLOCAL=" a c l o c a l - I m 4 " autoreconf -f -i
%configure \
2007-07-27 00:04:14 +00:00
--docdir=%{_docdir} /%{name} \
2007-02-15 17:27:23 +00:00
--enable-usbdropdir=%{ifddir}
make %{?jobs:-j%jobs}
2007-01-15 23:29:27 +00:00
%install
2007-02-15 17:27:23 +00:00
%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
2007-07-27 00:04:14 +00:00
#rm -r $RPM_BUILD_ROOT/usr/doc
2007-02-15 17:27:23 +00:00
# formaticc is no more provided
2007-07-27 00:04:14 +00:00
#rm $RPM_BUILD_ROOT%{_mandir}/man1/formaticc.1*
2007-02-15 17:27:23 +00:00
# For upgrade from <= SLES9:
touch $RPM_BUILD_ROOT %{_sysconfdir} /reader.conf.d/old-reader.conf
2007-11-06 22:07:32 +00:00
mkdir -p $RPM_BUILD_ROOT /etc/udev/rules.d
sed -n '/udev rules for pcscd and CCID readers/,/^\\end{verbatim}/{/{verbatim}/d;p;}' <doc/ifdhandler-3.tex >$RPM_BUILD_ROOT /etc/udev/rules.d/99-pcsc_lite.rules
2007-07-27 00:04:14 +00:00
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}
2007-01-15 23:29:27 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%pre
2007-02-15 17:27:23 +00:00
# save old reader.conf in case of upgrade from <= SLES9
2007-01-15 23:29:27 +00:00
if [ " $ 1 " = " 2 " ]; then
2007-02-15 17:27:23 +00:00
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
2007-01-15 23:29:27 +00:00
fi
2007-07-27 00:04:14 +00:00
%preun
%{stop_on_removal pcscd}
2007-01-15 23:29:27 +00:00
%post
2007-07-27 00:04:14 +00:00
/sbin/ldconfig
2007-01-15 23:29:27 +00:00
%{fillup_and_insserv pcscd}
%postun
2007-07-27 00:04:14 +00:00
/sbin/ldconfig
%{restart_on_update pcscd}
2007-01-15 23:29:27 +00:00
%{insserv_cleanup}
%files
2007-02-15 17:27:23 +00:00
%defattr (-,root,root)
2007-07-27 00:04:14 +00:00
%doc %{_docdir} /%{name}
2007-02-15 17:27:23 +00:00
%{_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
2007-11-06 22:07:32 +00:00
/etc/udev/rules.d/99-pcsc_lite.rules
2007-01-15 23:29:27 +00:00
%files devel
2007-02-15 17:27:23 +00:00
%defattr (-,root,root)
2007-01-15 23:29:27 +00:00
%{_includedir} /*
2007-02-15 17:27:23 +00:00
%{_libdir} /*.*a
%{_libdir} /pkgconfig/*.pc
2008-04-06 05:32:17 +00:00
2007-03-06 18:02:17 +00:00
%changelog
2008-08-22 23:50:21 +00:00
* Fri Aug 22 2008 lnussel@suse.de
- remove resmgr from BuildRequires
2008-04-10 13:26:53 +00:00
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
2008-04-06 05:32:17 +00:00
* Thu Apr 03 2008 sbrabec@suse.cz
- Updated to version 1.4.100:
* add libhal support to avoid polling the USB bus.
* improve performances.
* SCardListReaders(): returns SCARD_E_NO_READERS_AVAILABLE when
no reader are available.
* add support of TAG_IFD_POLLING_THREAD to use an asynchronous
card movements detection instead of an active polling.
* CardCheckDaemonAvailability(): lower the priority of the log
message in case of " P C S C N o t R u n n i n g " or " P C S C r e s t a r t e d " so
that nothing is logged by default.
* default log level is PCSC_LOG_CRITICAL+1 so that NO log is sent
to stderr by default.
* Document more details about deviceName argument of
IFDHCreateChannelByName()
* add support of mix 32/64 bits platforms.
* increase MAX_READERNAME from 52 to 100
* default ipcdir is /var/run/pcscd instead of /var/run so the
directory can be shared locally between 32/64 bits systems on
chroots
* display time delta between two lines of logs when printed to
stderr
* return EXIT_SUCCESS (instead of EXIT_SUCCESS) if parsing
/etc/reader.conf fails.
* performance improvement when powering a card after insertion
* some other minor improvements and bug corrections
* do not call a Log function in a signal handler and do hotplug
synchronously.
* some other minor improvements and bug corrections
* Tue Nov 06 2007 sbrabec@suse.cz
2007-11-06 22:07:32 +00:00
- Added necessary udev rule (#337666).
2008-04-06 05:32:17 +00:00
* Wed Aug 01 2007 sbrabec@suse.cz
2007-08-03 20:28:04 +00:00
- Applied Jacob Berkman's patch for 32-64-bit interoperability.
2008-04-06 05:32:17 +00:00
* Thu Jul 26 2007 sbrabec@suse.cz
2007-07-27 00:04:14 +00:00
- Updated to version 1.4.3:
* see ChangeLog for complete list of changes
2008-04-06 05:32:17 +00:00
* Wed May 16 2007 olh@suse.de
2007-05-17 09:50:47 +00:00
- Buildrequires libusb -> libusb-devel
2008-04-06 05:32:17 +00:00
* Mon Mar 05 2007 pgajdos@suse.cz
2007-03-06 18:02:17 +00:00
- fixed 'warning: array subscript is above array bounds' (#239174)
2008-04-06 05:32:17 +00:00
* Tue Feb 13 2007 sbrabec@suse.cz
2007-02-15 17:27:23 +00:00
- 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.
2008-04-06 05:32:17 +00:00
* Wed Jan 17 2007 sbrabec@suse.cz
2007-01-18 00:44:12 +00:00
- pcsclite.so moved to the main package (#235773).
2008-04-06 05:32:17 +00:00
* Tue Sep 19 2006 anosek@suse.cz
2007-01-15 23:29:27 +00:00
- update to version 1.3.2
* add support of extended APDU in the standard configuration
and in a backward compatible way: pcscd 1.3.2 can be used
with libpcsclite <= 1.3.2
* define MAX_BUFFER_SIZE_EXTENDED as the maximal size allowed
for a extended APDU (64KB)
* LPCTSTR and LPTSTR types are deprecated.
Use LPCSTR and LPSTR instead
* Dual licence src/error.c so it can be used bu OpenSC. It is now
BSD-like, see the COPYING file and GNU Lesser General
Licence 2.1 or (at your option) any later version
* document that the 4 bytes field value in PCSC_TLV_STRUCTURE is
always in big endian as documented in PCSC v2 part 10 ch 2.2
page 2. You can use ntohl() to convert the value.
* some other minor improvements and bug corrections
- fixed compiler warning: subscript out of range [#204770]
(overflow.patch)
2008-04-06 05:32:17 +00:00
* Sat Aug 12 2006 stark@suse.de
2007-01-15 23:29:27 +00:00
- update to version 1.3.1
* use fprintf(stderr,) instead of syslog(3) to log messages from
libpcsclite
* use PCSCLITE_DEBUG to activate the debug messages in libpcsclite
* add the reader serial number in the reader name only if
ADD_SERIAL_NUMBER is defined
2008-04-06 05:32:17 +00:00
* Thu Apr 06 2006 mjancar@suse.cz
2007-01-15 23:29:27 +00:00
- remove powermgt_macosx.c from the package (#161324)
2008-04-06 05:32:17 +00:00
* Mon Mar 13 2006 mjancar@suse.cz
2007-01-15 23:29:27 +00:00
- mount /proc/bus/usb in initscript anyway (#146979)
2008-04-06 05:32:17 +00:00
* Tue Feb 07 2006 mjancar@suse.cz
2007-01-15 23:29:27 +00:00
- start after kbd instead of mounting usbfs ourselfs (#146979)
2008-04-06 05:32:17 +00:00
* Mon Feb 06 2006 mjancar@suse.cz
2007-01-15 23:29:27 +00:00
- mount /proc/bus/usb in initscript (#146979)
2008-04-06 05:32:17 +00:00
* Wed Jan 25 2006 mls@suse.de
2007-01-15 23:29:27 +00:00
- converted neededforbuild to BuildRequires
2008-04-06 05:32:17 +00:00
* Tue Jan 03 2006 mjancar@suse.cz
2007-01-15 23:29:27 +00:00
- move drivers to separate source packages
- branch devel subpackage
2008-04-06 05:32:17 +00:00
* Mon Jan 02 2006 stark@suse.de
2007-01-15 23:29:27 +00:00
- removed obsolete hotplug stuff for cyberjack
- Updated pcsc-lite to version 1.2.9-beta9
- Updated CCID driver to 0.9.4
- Updated GemPC driver to 1.0.0
- package pkgconfig files to be able to build drivers outside
the package
2008-04-06 05:32:17 +00:00
* Tue Dec 20 2005 ro@suse.de
2007-01-15 23:29:27 +00:00
- removed unpackaged man-page symlinks
2008-04-06 05:32:17 +00:00
* Tue Nov 29 2005 ro@suse.de
2007-01-15 23:29:27 +00:00
- remove keeper from nfb (unused)
2008-04-06 05:32:17 +00:00
* Mon Oct 10 2005 stark@suse.de
2007-01-15 23:29:27 +00:00
- Updated towitoko driver to 2.0.7 and install USB bundle
2008-04-06 05:32:17 +00:00
* Thu Sep 22 2005 stark@suse.de
2007-01-15 23:29:27 +00:00
- Repackaged CCID as bundle for USB usage (#116497)
2008-04-06 05:32:17 +00:00
* Tue Sep 20 2005 stark@suse.de
2007-01-15 23:29:27 +00:00
- handle old reader.conf in upgrade case
- compile with -fno-strict-aliasing
- fixed missing return in ctapi-cyberjack
2008-04-06 05:32:17 +00:00
* Sat Sep 17 2005 stark@suse.de
2007-01-15 23:29:27 +00:00
- Updated pcsc-lite to version 1.2.9beta8 (#116497)
* use /etc/reader.conf.d/
* adapted init script to create /etc/reader.conf
- Updated cyberjack driver to version 2.0.9
* use rpath for cyberjack tools
- Updated ccid driver to version 0.9.3 (#116497)
- Use RPM_OPT_FLAGS everywhere
- Fixed serious compiler warnings
2008-04-06 05:32:17 +00:00
* Mon Sep 05 2005 skh@suse.de
2007-01-15 23:29:27 +00:00
- fix off-by-one error in hotplug_libusb.c [#112964]
2008-04-06 05:32:17 +00:00
* Mon Aug 29 2005 skh@suse.de
2007-01-15 23:29:27 +00:00
- Remove unnecessary files from pcsc-acr38 again [#112927]
2008-04-06 05:32:17 +00:00
* Mon Aug 29 2005 skh@suse.de
2007-01-15 23:29:27 +00:00
- package ACR38 driver in correct bundle format [#112927]
- remove orphaned /var/run/pcscd.pub when necessary [#112928]
- update ACR38u driver to version 100705 to fix crash when reader
is plugged in [#112964]
2008-04-06 05:32:17 +00:00
* Tue Aug 16 2005 skh@suse.de
2007-01-15 23:29:27 +00:00
- Updated ACR38u driver to version 100703
2008-04-06 05:32:17 +00:00
* Tue Jul 26 2005 okir@suse.de
2007-01-15 23:29:27 +00:00
- Added ACR38u driver
2008-04-06 05:32:17 +00:00
* Tue Jul 26 2005 okir@suse.de
2007-01-15 23:29:27 +00:00
- Updated description in init script (#79287)
2008-04-06 05:32:17 +00:00
* Thu Jun 16 2005 meissner@suse.de
2007-01-15 23:29:27 +00:00
- use RPM_OPT_FLAGS in 1 more driver
- added includes to avoid implict declaration of memcpy and similar.
2008-04-06 05:32:17 +00:00
* Mon Apr 18 2005 ro@suse.de
2007-01-15 23:29:27 +00:00
- make it build with gcc-4
2008-04-06 05:32:17 +00:00
* Thu Mar 17 2005 okir@suse.de
2007-01-15 23:29:27 +00:00
- Disable support for extended-apdus, it eats 32MB of memory (#73629)
2008-04-06 05:32:17 +00:00
* Thu Mar 10 2005 okir@suse.de
2007-01-15 23:29:27 +00:00
- Fix default search location for USB bundles
2008-04-06 05:32:17 +00:00
* Fri Jan 21 2005 okir@suse.de
2007-01-15 23:29:27 +00:00
- Updated to latest upstream version
- Updated several drivers
- Added CCID driver
- Provide a more informative readers.conf file (#42620)
2008-04-06 05:32:17 +00:00
* Thu Jan 20 2005 ro@suse.de
2007-01-15 23:29:27 +00:00
- drop subpackage gpr400
2008-04-06 05:32:17 +00:00
* Wed Apr 28 2004 ro@suse.de
2007-01-15 23:29:27 +00:00
- compile formaticc with no-strict-aliasing
- fix unused return type in musclecard.c
2008-04-06 05:32:17 +00:00
* Wed Mar 31 2004 okir@suse.de
2007-01-15 23:29:27 +00:00
- Properly install testpcsc, formaticc (#37625)
- Build towitoko driver with --enable-win32-com
2008-04-06 05:32:17 +00:00
* Thu Mar 18 2004 okir@suse.de
2007-01-15 23:29:27 +00:00
- cyberjack apps installed in /bin should be executable (#36409)
2008-04-06 05:32:17 +00:00
* Sat Jan 10 2004 adrian@suse.de
2007-01-15 23:29:27 +00:00
- add %%run_ldconfig
2008-04-06 05:32:17 +00:00
* Tue Aug 05 2003 mge@suse.de
2007-01-15 23:29:27 +00:00
- merge ctapi-cyberjack into pcsc-lite: two additional
packages are created: ctapi-cyberjack and pcsc-cyberjack
2008-04-06 05:32:17 +00:00
* Thu Jun 26 2003 ro@suse.de
2007-01-15 23:29:27 +00:00
- remove unpackaged files from buildroot
- added directories to filelist
2008-04-06 05:32:17 +00:00
* Fri Nov 29 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- added -fPIC when building eToken driver
2008-04-06 05:32:17 +00:00
* Fri Nov 29 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- Updated to latest upstream version
- Included driver for Aladdin eToken PRO
- More GNU auto#*@! headaches
- Various minor fixes
2008-04-06 05:32:17 +00:00
* Wed Aug 28 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- Moved shared objects to /usr/lib64 on ppc64/s390x (#18421)
2008-04-06 05:32:17 +00:00
* Mon Aug 05 2002 olh@suse.de
2007-01-15 23:29:27 +00:00
- fix initscript, Should-start: setserial hotplug
2008-04-06 05:32:17 +00:00
* Fri Aug 02 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- added PreReq for insserv_and_fillup
2008-04-06 05:32:17 +00:00
* Wed Jul 31 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- fixed build problem on s390x (force aclocal.m4 regen)
2008-04-06 05:32:17 +00:00
* Wed Jun 26 2002 ro@suse.de
2007-01-15 23:29:27 +00:00
- use -fPIC when building a shared lib
2008-04-06 05:32:17 +00:00
* Wed Jun 12 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- fix for bug #15051 (hey, it's a palindrome bug:):
missing %%doc DRIVERS file; misc silly binaries moved
out of /usr/bin
2008-04-06 05:32:17 +00:00
* Tue Apr 30 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- Fixed build problem introduced by previous patch
2008-04-06 05:32:17 +00:00
* Tue Apr 30 2002 okir@suse.de
2007-01-15 23:29:27 +00:00
- updated to latest upstream version
- added drivers for these readers: Towitoko, Schlumberger Reflex 6x,
Gemplus GPR 400, GemPlus GemPC 410/430
2008-04-06 05:32:17 +00:00
* Tue Apr 09 2002 ro@suse.de
2007-01-15 23:29:27 +00:00
- fixed for latest automake/autoconf
2008-04-06 05:32:17 +00:00
* Wed Feb 13 2002 stark@suse.de
2007-01-15 23:29:27 +00:00
- spec-file cleanup
- LSB compliant init-script
2008-04-06 05:32:17 +00:00
* Mon Jan 14 2002 ro@suse.de
2007-01-15 23:29:27 +00:00
- removed START_PCSCD
2008-04-06 05:32:17 +00:00
* Wed Nov 14 2001 ro@suse.de
2007-01-15 23:29:27 +00:00
- call aclocal
2008-04-06 05:32:17 +00:00
* Sun Aug 26 2001 mge@suse.de
2007-01-15 23:29:27 +00:00
- updated to 1.0.0Beta
- fixed /etc/init.d/pcscd status-handling (bug #9069)
2008-04-06 05:32:17 +00:00
* Thu Jun 07 2001 ro@suse.de
2007-01-15 23:29:27 +00:00
- fix broken Makefile.am
2008-04-06 05:32:17 +00:00
* Mon Apr 23 2001 mge@suse.de
2007-01-15 23:29:27 +00:00
- update to 0.9.1
2008-04-06 05:32:17 +00:00
* Thu Apr 19 2001 mge@suse.de
2007-01-15 23:29:27 +00:00
- created package