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