ee67d4
%global dropdir %(pkg-config libpcsclite --variable usbdropdir 2>/dev/null)
ee67d4
%global pcsc_lite_ver 1.8.3
ee67d4
%global upstream_build 3897
ee67d4
ee67d4
Name:           pcsc-lite-ccid
ee67d4
Version:        1.4.10
ed72d4
Release:        14%{?dist}
ee67d4
Summary:        Generic USB CCID smart card reader driver
ee67d4
ee67d4
Group:          System Environment/Libraries
ee67d4
License:        LGPLv2+
ee67d4
URL:            http://pcsclite.alioth.debian.org/ccid.html
ee67d4
Source0:        http://alioth.debian.org/download.php/%{upstream_build}/ccid-%{version}.tar.bz2
ee67d4
Patch1:         ccid-1.4.10-voltage.patch
ee67d4
Patch2:		ccid-1.4.10-omnikey-3121.patch
ee67d4
Patch3:		ccid-1.4.10-maxreaders.patch
ee67d4
Patch4:		ccid-1.4.10-yubikey.patch
ee67d4
Patch5:		ccid-readers-3.4.20.patch
ee67d4
Patch6:		ccid-1.4.10-max-cpu-bug.patch
ee67d4
Patch7:		ccid-1.4.10-broadcom.patch
ed72d4
Patch8:		ccid-1.4.10-add-1.4.29-readers.patch
ed72d4
Patch9:		ccid-1.4.10-coverity.patch
ee67d4
ee67d4
BuildRequires:  libusb1-devel
ee67d4
BuildRequires:  pcsc-lite-devel >= %{pcsc_lite_ver}
ee67d4
Requires(post): systemd
ee67d4
Requires(postun): systemd
ee67d4
Requires:       pcsc-lite >= %{pcsc_lite_ver}
ee67d4
Provides:       pcsc-ifd-handler
ee67d4
# Provide upgrade path from 'ccid' package
ee67d4
Obsoletes:      ccid < 1.4.0-3
ee67d4
Provides:       ccid = %{version}-%{release}
ee67d4
ee67d4
%description
ee67d4
Generic USB CCID (Chip/Smart Card Interface Devices) driver for use with the
ee67d4
PC/SC Lite daemon.
ee67d4
ee67d4
ee67d4
%prep
ee67d4
%setup -q -n ccid-%{version}
ee67d4
%patch1 -b .voltage 
ee67d4
%patch2 -b .omnikey
ee67d4
%patch3 -b .maxreaders
ee67d4
%patch4 -b .yubikey
ee67d4
%patch5 -b .yubikey_2
ee67d4
%patch6 -b .max_cpu_bug
ee67d4
%patch7 -b .broadcom
ed72d4
%patch8 -b .add_1_4_29_readers
ed72d4
%patch9 -b .coverity
ee67d4
ee67d4
ee67d4
%build
ee67d4
%configure --enable-twinserial
ee67d4
make %{?_smp_mflags}
ee67d4
ee67d4
ee67d4
%install
ee67d4
make install DESTDIR=$RPM_BUILD_ROOT
ee67d4
cp -p src/openct/LICENSE LICENSE.openct
ee67d4
rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/reader.conf.d
ee67d4
ee67d4
ee67d4
%post
ee67d4
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
ee67d4
ee67d4
%postun
ee67d4
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
ee67d4
ee67d4
ee67d4
%files
ee67d4
%doc AUTHORS ChangeLog COPYING LICENSE.openct README
ee67d4
%{dropdir}/ifd-ccid.bundle/
ee67d4
%{dropdir}/serial/
ee67d4
ee67d4
ee67d4
%changelog
ed72d4
* Wed May 23 2018 Robert Relyea 
ed72d4
- fix coverity issues. Fixes are already upstream
ed72d4
ed72d4
* Mon May 21 2018 Robert Relyea 
ed72d4
- Add support for 1.4.29 readers
ed72d4
ee67d4
* Tue Sep 5 2017 Robert Relyea 
ee67d4
- Add support for missing readers (broadcom, cherry).
ee67d4
- mark deprecated readers as unsupported and needing an update
ee67d4
ee67d4
* Thu Jun 23 2016 Robert Relyea 
ee67d4
- Fix cpu busy waiting if the last USB device has been removed.
ee67d4
ee67d4
* Thu Jun 23 2016 Robert Relyea 
ee67d4
- Add support for missing readers (mostly yubikey 4)
ee67d4
ee67d4
* Mon Jul 6 2015 Robert Relyea 
ee67d4
- fix corrupted patch
ee67d4
ee67d4
* Mon Jul 6 2015 Robert Relyea 
ee67d4
- Add support for YubiKey
ee67d4
ee67d4
* Mon Jul 6 2015 Robert Relyea 
ee67d4
- Allow more access to more readers.
ee67d4
ee67d4
* Thu Sep 25 2014 Robert Relyea 
ee67d4
- Allow longer apdu messages on omnikey.
ee67d4
ee67d4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4.10-5
ee67d4
- Mass rebuild 2014-01-24
ee67d4
ee67d4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.10-4
ee67d4
- Mass rebuild 2013-12-27
ee67d4
ee67d4
* Tue Nov 26 2013 Robert Relyea <rrelyea@redat.com> - 1.4.10-3
ee67d4
- bring in voltage patch
ee67d4
ee67d4
* Thu Oct 24 2013 Robert Relyea <rrelyea@redat.com> - 1.4.10-2
ee67d4
- rpmdiff cleanups
ee67d4
ee67d4
* Wed Apr 17 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.10-1
ee67d4
- Update to 1.4.10
ee67d4
ee67d4
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.9-1
ee67d4
- Update to 1.4.9
ee67d4
ee67d4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ee67d4
ee67d4
* Sun Oct 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.8-1
ee67d4
- Update to 1.4.8
ee67d4
ee67d4
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ee67d4
ee67d4
* Tue Jun 26 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.7-1
ee67d4
- Update to 1.4.7
ee67d4
ee67d4
* Sat Apr 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.6-1
ee67d4
- Update to 1.4.6
ee67d4
ee67d4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ee67d4
ee67d4
* Fri Oct 14 2011 Kalev Lember <kalevlember@gmail.com> - 1.4.5-1
ee67d4
- Update to 1.4.5
ee67d4
- Switch to systemctl for restarting pcscd after upgrade now that it is using
ee67d4
  native systemd unit files.
ee67d4
ee67d4
* Fri May 27 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.4-1
ee67d4
- Update to 1.4.4
ee67d4
- Clean up the spec file for modern rpmbuild
ee67d4
ee67d4
* Sat Apr 02 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.3-1
ee67d4
- Update to 1.4.3
ee67d4
- GPLv2+ licensed RSA_SecurID no longer gets installed, which changes
ee67d4
  the license of the binary RPM from 'LGPLv2+ and GPLv2+' to 'LGPLv2+'.
ee67d4
ee67d4
* Tue Mar 29 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.2-2
ee67d4
- Don't install the udev rules
ee67d4
ee67d4
* Fri Feb 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.2-1
ee67d4
- Update to 1.4.2
ee67d4
ee67d4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ee67d4
ee67d4
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.1-1
ee67d4
- Update to 1.4.1
ee67d4
ee67d4
* Thu Dec 09 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-4
ee67d4
- Install src/openct/LICENSE file as LICENSE.openct in docs (#660600)
ee67d4
- Added 'and GPLv2+' to license tag to cover RSA_SecurID (#660600)
ee67d4
ee67d4
* Tue Dec 07 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-3
ee67d4
- Renamed ccid package to pcsc-lite-ccid (#654377)
ee67d4
- Mark files under reader.conf.d as config(noreplace)
ee67d4
- Don't mark udev rules as config
ee67d4
ee67d4
* Tue Dec 07 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-2
ee67d4
- Removed ExcludeArch: s390 s390x as these arches now have libusb1
ee67d4
- Updated description
ee67d4
ee67d4
* Wed Aug 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-1
ee67d4
- Update to 1.4.0
ee67d4
- Build against libusb1 instead of libusb 0.1
ee67d4
- Install libccidtwin configuration file
ee67d4
- Spec file clean up
ee67d4
ee67d4
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.3.13-1
ee67d4
- Update to 1.3.13
ee67d4
ee67d4
* Thu Nov 19 2009 Kalev Lember <kalev@smartlink.ee> - 1.3.11-1
ee67d4
- Updated to ccid 1.3.11
ee67d4
- Removed iso-8859-1 to utf-8 conversion as the files are in utf-8 now
ee67d4
ee67d4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ee67d4
ee67d4
* Tue Feb 24 2009 Bob Relyea <rrelyea@redhat.com> - 1.3.9-1
ee67d4
- update to ccid 1.3.9
ee67d4
ee67d4
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
ee67d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ee67d4
ee67d4
* Tue Aug 26 2008 Bob Relyea <rrelyea@redhat.com> - 1.3.8-1
ee67d4
- update to ccid 1.3.8
ee67d4
ee67d4
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-4
ee67d4
- Autorebuild for GCC 4.3
ee67d4
ee67d4
* Tue Aug 21 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-3
ee67d4
- Update License description to the new Fedora standard
ee67d4
ee67d4
* Mon Apr 30 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-2
ee67d4
- Fix the missed use of the version macro
ee67d4
ee67d4
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-1
ee67d4
- Pick up ccid 1.2.1
ee67d4
- use pcscd 'hotplug' feature instead of restarting the daemon
ee67d4
- add enable_udev
ee67d4
ee67d4
* Mon Nov 06 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-2
ee67d4
- Fix version macro to remove '-'
ee67d4
ee67d4
* Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-1
ee67d4
- Pickup ccid 1.1.0
ee67d4
ee67d4
* Wed Jul 19 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-5
ee67d4
- require initscripts for post/postun
ee67d4
ee67d4
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-4
ee67d4
- fix excludearch line
ee67d4
ee67d4
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-3.1
ee67d4
- rebuild
ee67d4
ee67d4
* Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-3
ee67d4
- remove s390 from the build
ee67d4
ee67d4
* Mon Jun  5 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-2
ee67d4
- Move to Fedora Core, removed %%{_dist}.
ee67d4
ee67d4
* Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-1
ee67d4
- 1.0.1.
ee67d4
ee67d4
* Mon Mar  6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.0-1
ee67d4
- 1.0.0, license changed to LGPL.
ee67d4
ee67d4
* Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-7
ee67d4
- Rebuild.
ee67d4
ee67d4
* Thu Nov  3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-6
ee67d4
- Clean up build dependencies.
ee67d4
- Convert docs to UTF-8.
ee67d4
ee67d4
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.4.1-5
ee67d4
- rebuilt
ee67d4
ee67d4
* Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-4
ee67d4
- Drop Epoch: 0.
ee67d4
- Improve summary.
ee67d4
- Build with dependency tracking disabled.
ee67d4
ee67d4
* Thu Jul  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.3
ee67d4
- Restart pcscd in post(un)install phase if it's available and running.
ee67d4
ee67d4
* Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.2
ee67d4
- Provide pcsc-ifd-handler (idea from Debian).
ee67d4
ee67d4
* Sat Feb 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.1
ee67d4
- Update to 0.4.1.
ee67d4
ee67d4
* Fri Feb 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.0-0.fdr.1
ee67d4
- Update to 0.4.0.
ee67d4
ee67d4
* Wed Nov  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.2-0.fdr.1
ee67d4
- Update to 0.3.2.
ee67d4
- Update URL.
ee67d4
ee67d4
* Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.1-0.fdr.1
ee67d4
- Update to 0.3.1.
ee67d4
ee67d4
* Wed Sep 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.0-0.fdr.1
ee67d4
- Update to 0.3.0.
ee67d4
ee67d4
* Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.2.0-0.fdr.1
ee67d4
- Update to 0.2.0.
ee67d4
ee67d4
* Tue Aug 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.1.0-0.fdr.1
ee67d4
- First build.