10b547
%global dropdir %(pkg-config libpcsclite --variable usbdropdir 2>/dev/null)
10b547
%global pcsc_lite_ver 1.8.9
10b547
10b547
Name:           pcsc-lite-ccid
10b547
Version:        1.4.36
10b547
Release:        1%{?dist}
10b547
Summary:        Generic USB CCID smart card reader driver
10b547
10b547
License:        LGPLv2+
10b547
URL:            https://ccid.apdu.fr/files
10b547
Source0:        https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2
10b547
Source1:        https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2.asc
10b547
Source2:        gpgkey-F5E11B9FFE911146F41D953D78A1B4DFE8F9C57E.gpg
10b547
Patch0:         ccid-1.4.26-omnikey-3121.patch
10b547
Patch1:         ccid-1.4.34-maxreaders.patch
10b547
Patch2:         ccid-1.4.36-etoken.patch
10b547
10b547
BuildRequires: make
10b547
BuildRequires:  perl-interpreter
10b547
BuildRequires:  perl-Getopt-Long
10b547
BuildRequires:  libusb1-devel
10b547
BuildRequires:  pcsc-lite-devel >= %{pcsc_lite_ver}
10b547
BuildRequires:  gnupg2 gcc
10b547
Requires(post): systemd
10b547
Requires(postun): systemd
10b547
Requires:       pcsc-lite%{?_isa} >= %{pcsc_lite_ver}
10b547
Provides:       pcsc-ifd-handler
10b547
# Provide upgrade path from 'ccid' package
10b547
Obsoletes:      ccid < 1.4.0-3
10b547
Provides:       ccid = %{version}-%{release}
10b547
# This is bundled from pcsc-lite upstream
10b547
Provides:       bundled(simclist) = 1.6
10b547
10b547
%description
10b547
Generic USB CCID (Chip/Smart Card Interface Devices) driver for use with the
10b547
PC/SC Lite daemon.
10b547
10b547
10b547
%prep
10b547
gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0}
10b547
%setup -q -n ccid-%{version}
10b547
%patch0 -p1 -b .omnikey
10b547
%patch1 -p0 -b .maxreaders
10b547
%patch2 -p1 -b .etoken
10b547
10b547
%build
10b547
%configure --enable-twinserial
10b547
%make_build
10b547
10b547
10b547
%install
10b547
%make_install
10b547
cp -p src/openct/LICENSE LICENSE.openct
10b547
10b547
10b547
%post
10b547
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
10b547
10b547
%postun
10b547
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
10b547
10b547
10b547
%files
10b547
%doc AUTHORS ChangeLog README.md
10b547
%license COPYING LICENSE.openct
10b547
%{dropdir}/ifd-ccid.bundle/
10b547
%{dropdir}/serial/
10b547
%config(noreplace) %{_sysconfdir}/reader.conf.d/libccidtwin
10b547
10b547
10b547
%changelog
10b547
* Thu Nov 18 2021 Jakub Jelen <jjelen@redhat.com> - 1.4.36-1
10b547
- Rebase to current version from Fedora (#2017830)
10b547
10b547
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.34-5
10b547
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
10b547
  Related: rhbz#1991688
10b547
10b547
* Fri Jun 25 2021 Jakub Jelen <jjelen@redhat.com> - 1.4.34-4
10b547
- Increase the maximum readers count (#1975424)
10b547
10b547
* Fri Apr 21 2021 Bob Relyea <rrelyea@redhat.com> - 1.4.34-3
10b547
- fix %{?dist} tag in Release: line (was missing the ?)
10b547
10b547
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.34-2
10b547
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
10b547
10b547
* Fri Feb 05 2021 Jakub Jelen <jjelen@redhat.com> - 1.4.34-1
10b547
- New upstream release
10b547
10b547
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.33-3
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
10b547
10b547
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.33-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
10b547
10b547
* Thu Jun 25 2020 Jakub Jelen <jjelen@redhat.com> - 1.4.33-1
10b547
- New upstream release (#1851217)
10b547
10b547
* Wed Apr 22 2020 Jakub Jelen <jjelen@redhat.com> - 1.4.32-1
10b547
- New upstream release (#1826675)
10b547
10b547
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.31-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
10b547
10b547
* Mon Aug 19 2019 Jakub Jelen <jjelen@redhat.com> - 1.4.31-1
10b547
- New upstream release (#1742657)
10b547
10b547
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.30-3
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
10b547
10b547
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.30-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
10b547
10b547
* Tue Nov 20 2018 Jakub Jelen <jjelen@redhat.com> - 1.4.30-1
10b547
- New upstream release (#1651350)
10b547
10b547
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.29-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
10b547
10b547
* Wed Feb 21 2018 Jakub Jelen <jjelen@redhat.com> - 1.4.29-1
10b547
- New upstream release (#1547482)
10b547
10b547
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.28-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
10b547
10b547
* Fri Oct 20 2017 Jakub Jelen <jjelen@redhat.com> - 1.4.28-1
10b547
- New upstream release (#1504404)
10b547
10b547
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.27-3
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
10b547
10b547
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.27-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
10b547
10b547
* Mon May 22 2017 Jakub Jelen <jjelen@redhat.com> - 1.4.27-1
10b547
- New upstream release (#1453026)
10b547
10b547
* Thu Mar 02 2017 Jakub Jelen <jjelen@redhat.com> - 1.4.26-3
10b547
- Return support for OMNIKEY CardMan 3121 long writes (#1420024)
10b547
10b547
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.26-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
10b547
10b547
* Mon Jan  9 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.26-1
10b547
- Updated to 1.4.26
10b547
10b547
* Mon Nov 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.25-1
10b547
- Updated to 1.4.25
10b547
10b547
* Tue Jun 21 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.24-1
10b547
- Updated to 1.4.24
10b547
10b547
* Mon Apr 25 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.23-1
10b547
- Updated to 1.4.23 (#1328849, #1330087)
10b547
- Added gpg verification of package as part of build process
10b547
10b547
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.22-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
10b547
10b547
* Mon Jan 11 2016 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.22-1
10b547
- Updated to 1.4.22
10b547
10b547
* Thu Nov 12 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.21-1
10b547
- Updated to 1.4.21
10b547
10b547
* Wed Aug  5 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.20-1
10b547
- Updated to 1.4.20
10b547
10b547
* Fri Jul 10 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.19-1
10b547
- Updated to 1.4.19 (#1241842)
10b547
10b547
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.18-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
10b547
10b547
* Thu Sep 18 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.18-1
10b547
- Update to 1.4.18
10b547
10b547
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
10b547
10b547
* Thu Jun 12 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> - 1.4.17-1
10b547
- Update to 1.4.17
10b547
10b547
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.13-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
10b547
10b547
* Sun Oct 20 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.13-1
10b547
- Update to 1.4.13
10b547
- Tighten pcsc-lite deps with %%{?_isa}
10b547
10b547
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.11-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
10b547
10b547
* Wed Jun 12 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.11-1
10b547
- Update to 1.4.11
10b547
10b547
* Wed Apr 17 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.10-1
10b547
- Update to 1.4.10
10b547
10b547
* Thu Feb 28 2013 Kalev Lember <kalevlember@gmail.com> - 1.4.9-1
10b547
- Update to 1.4.9
10b547
10b547
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
10b547
10b547
* Sun Oct 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.8-1
10b547
- Update to 1.4.8
10b547
10b547
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
10b547
10b547
* Tue Jun 26 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.7-1
10b547
- Update to 1.4.7
10b547
10b547
* Sat Apr 07 2012 Kalev Lember <kalevlember@gmail.com> - 1.4.6-1
10b547
- Update to 1.4.6
10b547
10b547
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
10b547
10b547
* Fri Oct 14 2011 Kalev Lember <kalevlember@gmail.com> - 1.4.5-1
10b547
- Update to 1.4.5
10b547
- Switch to systemctl for restarting pcscd after upgrade now that it is using
10b547
  native systemd unit files.
10b547
10b547
* Fri May 27 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.4-1
10b547
- Update to 1.4.4
10b547
- Clean up the spec file for modern rpmbuild
10b547
10b547
* Sat Apr 02 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.3-1
10b547
- Update to 1.4.3
10b547
- GPLv2+ licensed RSA_SecurID no longer gets installed, which changes
10b547
  the license of the binary RPM from 'LGPLv2+ and GPLv2+' to 'LGPLv2+'.
10b547
10b547
* Tue Mar 29 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.2-2
10b547
- Don't install the udev rules
10b547
10b547
* Fri Feb 25 2011 Kalev Lember <kalev@smartlink.ee> - 1.4.2-1
10b547
- Update to 1.4.2
10b547
10b547
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
10b547
10b547
* Mon Dec 13 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.1-1
10b547
- Update to 1.4.1
10b547
10b547
* Thu Dec 09 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-4
10b547
- Install src/openct/LICENSE file as LICENSE.openct in docs (#660600)
10b547
- Added 'and GPLv2+' to license tag to cover RSA_SecurID (#660600)
10b547
10b547
* Tue Dec 07 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-3
10b547
- Renamed ccid package to pcsc-lite-ccid (#654377)
10b547
- Mark files under reader.conf.d as config(noreplace)
10b547
- Don't mark udev rules as config
10b547
10b547
* Tue Dec 07 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-2
10b547
- Removed ExcludeArch: s390 s390x as these arches now have libusb1
10b547
- Updated description
10b547
10b547
* Wed Aug 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.4.0-1
10b547
- Update to 1.4.0
10b547
- Build against libusb1 instead of libusb 0.1
10b547
- Install libccidtwin configuration file
10b547
- Spec file clean up
10b547
10b547
* Sun Jul 04 2010 Kalev Lember <kalev@smartlink.ee> - 1.3.13-1
10b547
- Update to 1.3.13
10b547
10b547
* Thu Nov 19 2009 Kalev Lember <kalev@smartlink.ee> - 1.3.11-1
10b547
- Updated to ccid 1.3.11
10b547
- Removed iso-8859-1 to utf-8 conversion as the files are in utf-8 now
10b547
10b547
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.9-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
10b547
10b547
* Tue Feb 24 2009 Bob Relyea <rrelyea@redhat.com> - 1.3.9-1
10b547
- update to ccid 1.3.9
10b547
10b547
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.8-2
10b547
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
10b547
10b547
* Tue Aug 26 2008 Bob Relyea <rrelyea@redhat.com> - 1.3.8-1
10b547
- update to ccid 1.3.8
10b547
10b547
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-4
10b547
- Autorebuild for GCC 4.3
10b547
10b547
* Mon Aug 20 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-3
10b547
- Update License description to the new Fedora standard
10b547
10b547
* Mon Apr 30 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-2
10b547
- Fix the missed use of the version macro
10b547
10b547
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-1
10b547
- Pick up ccid 1.2.1
10b547
- use pcscd 'hotplug' feature instead of restarting the daemon
10b547
- add enable_udev
10b547
10b547
* Mon Nov 06 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-2
10b547
- Fix version macro to remove '-'
10b547
10b547
* Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-1
10b547
- Pickup ccid 1.1.0
10b547
10b547
* Thu Jul 20 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-5
10b547
- require initscripts for post/postun
10b547
10b547
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-4
10b547
- fix excludearch line
10b547
10b547
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-3.1
10b547
- rebuild
10b547
10b547
* Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-3
10b547
- remove s390 from the build
10b547
10b547
* Mon Jun  5 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-2
10b547
- Move to Fedora Core, removed %%{_dist}.
10b547
10b547
* Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-1
10b547
- 1.0.1.
10b547
10b547
* Mon Mar  6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.0-1
10b547
- 1.0.0, license changed to LGPL.
10b547
10b547
* Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-7
10b547
- Rebuild.
10b547
10b547
* Thu Nov  3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-6
10b547
- Clean up build dependencies.
10b547
- Convert docs to UTF-8.
10b547
10b547
* Thu Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.4.1-5
10b547
- rebuilt
10b547
10b547
* Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-4
10b547
- Drop Epoch: 0.
10b547
- Improve summary.
10b547
- Build with dependency tracking disabled.
10b547
10b547
* Thu Jul  1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.3
10b547
- Restart pcscd in post(un)install phase if it's available and running.
10b547
10b547
* Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.2
10b547
- Provide pcsc-ifd-handler (idea from Debian).
10b547
10b547
* Sat Feb 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.1
10b547
- Update to 0.4.1.
10b547
10b547
* Fri Feb 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.0-0.fdr.1
10b547
- Update to 0.4.0.
10b547
10b547
* Wed Nov  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.2-0.fdr.1
10b547
- Update to 0.3.2.
10b547
- Update URL.
10b547
10b547
* Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.1-0.fdr.1
10b547
- Update to 0.3.1.
10b547
10b547
* Wed Sep 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.0-0.fdr.1
10b547
- Update to 0.3.0.
10b547
10b547
* Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.2.0-0.fdr.1
10b547
- Update to 0.2.0.
10b547
10b547
* Tue Aug 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.1.0-0.fdr.1
10b547
- First build.