ccid-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. %define dropdir %(pkg-config libpcsclite --variable usbdropdir 2>/dev/null)
  2. %define libusb1_ver 1.0.9
  3. %define pcsc_lite_ver 1.8.25
  4. Name: ccid
  5. Version: 1.4.31
  6. Release: 1%{?_dist_release}
  7. Summary: Generic USB CCID smart card reader driver
  8. Summary(ja): Generic USB CCID smart card reader driver
  9. Group: System Environment/Libraries
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. License: LGPLv2+
  13. URL: https://ccid.apdu.fr/
  14. Source0: https://ccid.apdu.fr/files/%{name}-%{version}.tar.bz2
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. BuildRequires: libusb1-devel >= %{libusb1_ver}
  17. BuildRequires: pcsc-lite-devel >= %{pcsc_lite_ver}
  18. Requires(post): initscripts
  19. Requires(postun): initscripts
  20. Requires: libusb1
  21. Requires: pcsc-lite
  22. Provides: pcsc-ifd-handler
  23. Conflicts: ccid145
  24. # 390 does not have libusb or smartCards
  25. ExcludeArch: s390 s390x
  26. %description
  27. Generic USB CCID (Chip/Smart Card Interface Devices) driver.
  28. %prep
  29. %setup -q
  30. %build
  31. %configure --disable-dependency-tracking --disable-static --enable-twinserial
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT
  36. %{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
  37. %{__install} -m 644 src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/92-pcscd_ccid.rules
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %post
  41. [ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
  42. exit 0
  43. %postun
  44. [ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
  45. exit 0
  46. %files
  47. %defattr(-,root,root,-)
  48. %license COPYING
  49. %doc README.md SCARDGETATTRIB.txt
  50. %{dropdir}/ifd-ccid.bundle/
  51. %{dropdir}/serial/
  52. %config(noreplace) %{_sysconfdir}/reader.conf.d/libccidtwin
  53. %config %{_sysconfdir}/udev/rules.d/92-pcscd_ccid.rules
  54. %changelog
  55. * Sat Oct 26 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.31-1
  56. - new upstream release.
  57. * Mon May 04 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.18-1
  58. - new upstream release
  59. * Tue Jun 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.7-2
  60. - add Conflicts: ccid145
  61. * Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.7-1
  62. - new upstream release
  63. - change BuildRequires: libusb1-devel instead of libusb-devel
  64. * Mon Mar 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.8-1
  65. - initial build for Vine Linux
  66. * Tue Aug 26 2008 Bob Relyea <rrelyea@redhat.com> - 1.3.8-1
  67. - update to ccid 1.3.8
  68. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-4
  69. - Autorebuild for GCC 4.3
  70. * Mon Aug 20 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-3
  71. - Update License description to the new Fedora standard
  72. * Mon Apr 30 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-2
  73. - Fix the missed use of the version macro
  74. * Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-1
  75. - Pick up ccid 1.2.1
  76. - use pcscd 'hotplug' feature instead of restarting the daemon
  77. - add enable_udev
  78. * Mon Nov 06 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-2
  79. - Fix version macro to remove '-'
  80. * Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-1
  81. - Pickup ccid 1.1.0
  82. * Thu Jul 20 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-5
  83. - require initscripts for post/postun
  84. * Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-4
  85. - fix excludearch line
  86. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-3.1
  87. - rebuild
  88. * Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-3
  89. - remove s390 from the build
  90. * Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-2
  91. - Move to Fedora Core, removed %%{_dist}.
  92. * Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-1
  93. - 1.0.1.
  94. * Mon Mar 6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.0-1
  95. - 1.0.0, license changed to LGPL.
  96. * Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-7
  97. - Rebuild.
  98. * Thu Nov 3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-6
  99. - Clean up build dependencies.
  100. - Convert docs to UTF-8.
  101. * Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.4.1-5
  102. - rebuilt
  103. * Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-4
  104. - Drop Epoch: 0.
  105. - Improve summary.
  106. - Build with dependency tracking disabled.
  107. * Thu Jul 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.3
  108. - Restart pcscd in post(un)install phase if it's available and running.
  109. * Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.2
  110. - Provide pcsc-ifd-handler (idea from Debian).
  111. * Sat Feb 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.1
  112. - Update to 0.4.1.
  113. * Fri Feb 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.0-0.fdr.1
  114. - Update to 0.4.0.
  115. * Wed Nov 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.2-0.fdr.1
  116. - Update to 0.3.2.
  117. - Update URL.
  118. * Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.1-0.fdr.1
  119. - Update to 0.3.1.
  120. * Wed Sep 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.0-0.fdr.1
  121. - Update to 0.3.0.
  122. * Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.2.0-0.fdr.1
  123. - Update to 0.2.0.
  124. * Tue Aug 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.1.0-0.fdr.1
  125. - First build.