From b3baf4f2faefd353124dca4ccc6fa9c739efbf4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Fri, 17 Jul 2015 20:34:39 +0200 Subject: [PATCH] Add pcsc-lite-ccid SPEC and PATCH to add support for Broadcom id 5804 --- rpm/SOURCES/ccid-broadcom-5804.patch | 10 ++ rpm/SPECS/pcsc-lite-ccid.spec | 253 +++++++++++++++++++++++++++ 2 files changed, 263 insertions(+) create mode 100644 rpm/SOURCES/ccid-broadcom-5804.patch create mode 100644 rpm/SPECS/pcsc-lite-ccid.spec diff --git a/rpm/SOURCES/ccid-broadcom-5804.patch b/rpm/SOURCES/ccid-broadcom-5804.patch new file mode 100644 index 0000000..635bba8 --- /dev/null +++ b/rpm/SOURCES/ccid-broadcom-5804.patch @@ -0,0 +1,10 @@ +--- a/readers/supported_readers.txt ++++ b/readers/supported_readers.txt +@@ -179,6 +179,7 @@ + # Broadcom Corp + 0x0A5C:0x5800:Broadcom Corp 5880 + 0x0A5C:0x5802:Broadcom Corp 5880 ++0x0A5C:0x5804:Broadcom Corp 5880 + + # C3PO + 0x0783:0x0007:C3PO TLTC2USB diff --git a/rpm/SPECS/pcsc-lite-ccid.spec b/rpm/SPECS/pcsc-lite-ccid.spec new file mode 100644 index 0000000..abf4652 --- /dev/null +++ b/rpm/SPECS/pcsc-lite-ccid.spec @@ -0,0 +1,253 @@ +%global dropdir %(pkg-config libpcsclite --variable usbdropdir 2>/dev/null) +%global pcsc_lite_ver 1.8.9 +%global upstream_build 3959 + +Name: pcsc-lite-ccid +Version: 1.4.18 +Release: 1.dv%{dist} +Summary: Generic USB CCID smart card reader driver + +Group: System Environment/Libraries +License: LGPLv2+ +URL: http://pcsclite.alioth.debian.org/ccid.html +Source0: https://alioth.debian.org/frs/download.php/file/%{upstream_build}/ccid-%{version}.tar.bz2 + +BuildRequires: libusb1-devel +BuildRequires: pcsc-lite-devel >= %{pcsc_lite_ver} +Requires(post): systemd +Requires(postun): systemd +Requires: pcsc-lite%{?_isa} >= %{pcsc_lite_ver} +Provides: pcsc-ifd-handler +# Provide upgrade path from 'ccid' package +Obsoletes: ccid < 1.4.0-3 +Provides: ccid = %{version}-%{release} + +Patch0: ccid-broadcom-5804.patch + +%description +Generic USB CCID (Chip/Smart Card Interface Devices) driver for use with the +PC/SC Lite daemon. + + +%prep +%setup -q -n ccid-%{version} +%patch0 -p1 + +%build +%configure --enable-twinserial +make %{?_smp_mflags} + + +%install +make install DESTDIR=$RPM_BUILD_ROOT +cp -p src/openct/LICENSE LICENSE.openct + + +%post +/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || : + +%postun +/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || : + + +%files +%doc AUTHORS ChangeLog COPYING LICENSE.openct README +%{dropdir}/ifd-ccid.bundle/ +%{dropdir}/serial/ +%config(noreplace) %{_sysconfdir}/reader.conf.d/libccidtwin + + +%changelog +* Thu Sep 18 2014 Nikos Mavrogiannopoulos - 1.4.18-1 +- Update to 1.4.18 + +* Sun Aug 17 2014 Fedora Release Engineering - 1.4.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jun 12 2014 Nikos Mavrogiannopoulos - 1.4.17-1 +- Update to 1.4.17 + +* Fri Jun 06 2014 Fedora Release Engineering - 1.4.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Oct 20 2013 Kalev Lember - 1.4.13-1 +- Update to 1.4.13 +- Tighten pcsc-lite deps with %%{?_isa} + +* Sat Aug 03 2013 Fedora Release Engineering - 1.4.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jun 12 2013 Kalev Lember - 1.4.11-1 +- Update to 1.4.11 + +* Wed Apr 17 2013 Kalev Lember - 1.4.10-1 +- Update to 1.4.10 + +* Thu Feb 28 2013 Kalev Lember - 1.4.9-1 +- Update to 1.4.9 + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Oct 07 2012 Kalev Lember - 1.4.8-1 +- Update to 1.4.8 + +* Fri Jul 20 2012 Fedora Release Engineering - 1.4.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 26 2012 Kalev Lember - 1.4.7-1 +- Update to 1.4.7 + +* Sat Apr 07 2012 Kalev Lember - 1.4.6-1 +- Update to 1.4.6 + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Oct 14 2011 Kalev Lember - 1.4.5-1 +- Update to 1.4.5 +- Switch to systemctl for restarting pcscd after upgrade now that it is using + native systemd unit files. + +* Fri May 27 2011 Kalev Lember - 1.4.4-1 +- Update to 1.4.4 +- Clean up the spec file for modern rpmbuild + +* Sat Apr 02 2011 Kalev Lember - 1.4.3-1 +- Update to 1.4.3 +- GPLv2+ licensed RSA_SecurID no longer gets installed, which changes + the license of the binary RPM from 'LGPLv2+ and GPLv2+' to 'LGPLv2+'. + +* Tue Mar 29 2011 Kalev Lember - 1.4.2-2 +- Don't install the udev rules + +* Fri Feb 25 2011 Kalev Lember - 1.4.2-1 +- Update to 1.4.2 + +* Tue Feb 08 2011 Fedora Release Engineering - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 13 2010 Kalev Lember - 1.4.1-1 +- Update to 1.4.1 + +* Thu Dec 09 2010 Kalev Lember - 1.4.0-4 +- Install src/openct/LICENSE file as LICENSE.openct in docs (#660600) +- Added 'and GPLv2+' to license tag to cover RSA_SecurID (#660600) + +* Tue Dec 07 2010 Kalev Lember - 1.4.0-3 +- Renamed ccid package to pcsc-lite-ccid (#654377) +- Mark files under reader.conf.d as config(noreplace) +- Don't mark udev rules as config + +* Tue Dec 07 2010 Kalev Lember - 1.4.0-2 +- Removed ExcludeArch: s390 s390x as these arches now have libusb1 +- Updated description + +* Wed Aug 04 2010 Kalev Lember - 1.4.0-1 +- Update to 1.4.0 +- Build against libusb1 instead of libusb 0.1 +- Install libccidtwin configuration file +- Spec file clean up + +* Sun Jul 04 2010 Kalev Lember - 1.3.13-1 +- Update to 1.3.13 + +* Wed Nov 19 2009 Kalev Lember - 1.3.11-1 +- Updated to ccid 1.3.11 +- Removed iso-8859-1 to utf-8 conversion as the files are in utf-8 now + +* Fri Jul 24 2009 Fedora Release Engineering - 1.3.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Bob Relyea - 1.3.9-1 +- update to ccid 1.3.9 + +* Mon Feb 23 2009 Fedora Release Engineering - 1.3.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Aug 26 2008 Bob Relyea - 1.3.8-1 +- update to ccid 1.3.8 + +* Tue Feb 19 2008 Fedora Release Engineering - 1.2.1-4 +- Autorebuild for GCC 4.3 + +* Fri Aug 20 2007 Bob Relyea - 1.2.1-3 +- Update License description to the new Fedora standard + +* Mon Apr 30 2007 Bob Relyea - 1.2.1-2 +- Fix the missed use of the version macro + +* Tue Feb 06 2007 Bob Relyea - 1.2.1-1 +- Pick up ccid 1.2.1 +- use pcscd 'hotplug' feature instead of restarting the daemon +- add enable_udev + +* Mon Nov 06 2006 Bob Relyea - 1.1.0-2 +- Fix version macro to remove '-' + +* Thu Nov 02 2006 Bob Relyea - 1.1.0-1 +- Pickup ccid 1.1.0 + +* Sun Jul 20 2006 Florian La Roche - 1.0.1-5 +- require initscripts for post/postun + +* Sun Jul 16 2006 Florian La Roche - 1.0.1-4 +- fix excludearch line + +* Wed Jul 12 2006 Jesse Keating - 1.0.1-3.1 +- rebuild + +* Mon Jul 10 2006 Bob Relyea - 1.0.1-3 +- remove s390 from the build + +* Mon Jun 5 2006 Bob Relyea - 1.0.1-2 +- Move to Fedora Core, removed %%{_dist}. + +* Sat Apr 22 2006 Ville Skyttä - 1.0.1-1 +- 1.0.1. + +* Mon Mar 6 2006 Ville Skyttä - 1.0.0-1 +- 1.0.0, license changed to LGPL. + +* Wed Feb 15 2006 Ville Skyttä - 0.4.1-7 +- Rebuild. + +* Thu Nov 3 2005 Ville Skyttä - 0.4.1-6 +- Clean up build dependencies. +- Convert docs to UTF-8. + +* Fri Apr 7 2005 Michael Schwendt - 0.4.1-5 +- rebuilt + +* Fri Feb 25 2005 Ville Skyttä - 0.4.1-4 +- Drop Epoch: 0. +- Improve summary. +- Build with dependency tracking disabled. + +* Thu Jul 1 2004 Ville Skyttä - 0:0.4.1-0.fdr.3 +- Restart pcscd in post(un)install phase if it's available and running. + +* Thu May 13 2004 Ville Skyttä - 0:0.4.1-0.fdr.2 +- Provide pcsc-ifd-handler (idea from Debian). + +* Sat Feb 14 2004 Ville Skyttä - 0:0.4.1-0.fdr.1 +- Update to 0.4.1. + +* Fri Feb 13 2004 Ville Skyttä - 0:0.4.0-0.fdr.1 +- Update to 0.4.0. + +* Wed Nov 5 2003 Ville Skyttä - 0:0.3.2-0.fdr.1 +- Update to 0.3.2. +- Update URL. + +* Thu Oct 16 2003 Ville Skyttä - 0:0.3.1-0.fdr.1 +- Update to 0.3.1. + +* Wed Sep 10 2003 Ville Skyttä - 0:0.3.0-0.fdr.1 +- Update to 0.3.0. + +* Wed Aug 27 2003 Ville Skyttä - 0:0.2.0-0.fdr.1 +- Update to 0.2.0. + +* Tue Aug 19 2003 Ville Skyttä - 0:0.1.0-0.fdr.1 +- First build.