pcsc-lite-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. Summary: PC/SC Lite smart card framework and applications
  2. Summary(ja): PC/SC Lite スマートカードフレームワークおよびアプリケーション
  3. Name: pcsc-lite
  4. Version: 1.8.13
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Daemons
  7. License: BSD
  8. URL: http://pcsclite.alioth.debian.org/
  9. Source0: https://alioth.debian.org/frs/download.php/file/4126/%{name}-%{version}.tar.bz2
  10. Source1: org.debian.pcsc-lite.policy
  11. Patch0: pcsc-lite-1.8.13-docinst.patch
  12. Patch1: pcsc-lite-1.8.13-etc.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: eudev-libudev-devel
  15. BuildRequires: polkit-devel
  16. BuildRequires: doxygen
  17. BuildRequires: flex
  18. Requires(post): initscripts
  19. Requires(post): /sbin/chkconfig
  20. Requires(preun): /sbin/chkconfig
  21. Requires(preun): initscripts
  22. Requires(postun): initscripts
  23. Requires: pcsc-ifd-handler
  24. # 390 does not have libusb or smartCards
  25. ExcludeArch: s390 s390x
  26. %description
  27. The purpose of PC/SC Lite is to provide a Windows(R) SCard interface
  28. in a very small form factor for communicating to smartcards and
  29. readers. PC/SC Lite uses the same winscard API as used under
  30. Windows(R). This package includes the PC/SC Lite daemon, a resource
  31. manager that coordinates communications with smart card readers and
  32. smart cards that are connected to the system, as well as other command
  33. line tools.
  34. %package libs
  35. Summary: PC/SC Lite libraries
  36. Summary(ja): PC/SC Lite libraries
  37. Group: System Environment/Libraries
  38. Provides: libpcsc-lite = %{version}-%{release}
  39. %description libs
  40. PC/SC Lite libraries.
  41. %package devel
  42. Summary: PC/SC Lite development files
  43. Summary(ja): PC/SC Lite development files
  44. Group: Development/Libraries
  45. Requires: %{name}-libs = %{version}-%{release}
  46. Requires: pkgconfig
  47. Provides: libpcsc-lite-devel = %{version}-%{release}
  48. %description devel
  49. PC/SC Lite development files.
  50. %package spy
  51. Summary: PC/SC API spy
  52. Summary(ja): PC/SC API spy
  53. Group: Development/Tools
  54. Requires: %{name}-libs = %{version}-%{release}
  55. %description spy
  56. The purpose of pcsc-spy is to spy all the calls between the PC/SC client
  57. and the PC/SC library.
  58. %package doc
  59. Summary: PC/SC Lite developer documentation
  60. Summary(ja): PC/SC Lite developer documentation
  61. Group: Documentation
  62. %description doc
  63. %{summary}.
  64. %prep
  65. %setup -q
  66. %patch0 -p1 -b .docinst
  67. %patch1 -p1 -b .etc
  68. %build
  69. autoreconf -if
  70. %configure \
  71. --disable-dependency-tracking \
  72. --disable-static \
  73. --enable-polkit \
  74. --enable-runpid=%{_localstatedir}/run/pcscd.pid \
  75. --enable-ipcdir=%{_localstatedir}/run \
  76. --enable-usbdropdir=%{_libdir}/pcsc/drivers
  77. make %{?_smp_mflags}
  78. doxygen doc/doxygen.conf ; rm -f doc/api/*.{map,md5}
  79. %install
  80. rm -rf $RPM_BUILD_ROOT
  81. make install DESTDIR=$RPM_BUILD_ROOT
  82. rm -f $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/org.debian.pcsc-lite.policy
  83. mkdir -p $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
  84. install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/polkit-1/actions/
  85. install -dm 755 $RPM_BUILD_ROOT%{_libdir}/pcsc/drivers
  86. install -Dpm 755 etc/pcscd.init $RPM_BUILD_ROOT%{_initrddir}/pcscd
  87. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
  88. rm -f $RPM_BUILD_ROOT{%{_sysconfdir}/reader.conf.d/reader.conf,%{_libdir}/lib*.la}
  89. rm -f $RPM_BUILD_ROOT%{_docdir}/%{name}/README.DAEMON
  90. # formaticc doesn't exist any more, don't include the man page
  91. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/formaticc.1*
  92. %clean
  93. rm -rf $RPM_BUILD_ROOT
  94. %post
  95. /sbin/chkconfig --add pcscd
  96. %preun
  97. if [ $1 = 0 ] ; then
  98. /sbin/service pcscd stop >/dev/null 2>&1 || :
  99. /sbin/chkconfig --del pcscd
  100. fi
  101. %postun
  102. if [ "$1" -ge "1" ]; then
  103. /sbin/service pcscd condrestart >/dev/null 2>&1 || :
  104. fi
  105. %post libs -p /sbin/ldconfig
  106. %postun libs -p /sbin/ldconfig
  107. %files
  108. %defattr(-,root,root,-)
  109. %doc AUTHORS ChangeLog* COPYING DRIVERS HELP README SECURITY TODO READ
  110. %dir %{_sysconfdir}/reader.conf.d/
  111. %{_initrddir}/pcscd
  112. %{_sbindir}/pcscd
  113. %{_libdir}/pcsc/
  114. %{_datadir}/polkit-1/actions/org.debian.%{name}.policy
  115. %{_mandir}/man5/reader.conf.5*
  116. %{_mandir}/man8/pcscd.8*
  117. %files libs
  118. %defattr(-,root,root,-)
  119. %{_libdir}/libpcsclite.so.*
  120. %{_libdir}/libpcscspy.so.*
  121. %files devel
  122. %defattr(-,root,root,-)
  123. %{_includedir}/PCSC/
  124. %{_libdir}/libpcsclite.so
  125. %{_libdir}/libpcscspy.so
  126. %{_libdir}/pkgconfig/libpcsclite.pc
  127. %files spy
  128. %defattr(-,root,root,-)
  129. %{_bindir}/pcsc-spy
  130. %{_mandir}/man1/pcsc-spy.1.gz
  131. %files doc
  132. %defattr(-,root,root,-)
  133. %doc doc/api/ doc/example/pcsc_demo.c
  134. %{_docdir}/pcsc-lite/README.polkit
  135. %changelog
  136. * Mon May 04 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.13-1
  137. - new upstream release
  138. - updata Patch0 (pcsc-lite-1.8.13-docinst.patch)
  139. - updata Patch1 (pcsc-lite-1.8.13-etc.patch)
  140. - add Source1 from fedora
  141. - add BuildRequires: polkit-devel
  142. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.3-2
  143. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  144. * Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.3-1
  145. - new upstream release
  146. - add Patch1 (pcsc-lite-1.8.3-etc.patch)
  147. - create -spy sub package
  148. * Sat Jan 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-2
  149. - fix Patch1
  150. * Sat Jan 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.1-1
  151. - new upstream release
  152. - remove BuildRequires: hal-devel, libusb-devel
  153. - add BuildRequires: libudev-devel, flex
  154. - add Patch1 (pcsc-lite-1.8.1-etc.patch)
  155. * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2
  156. - rebuilt with rpm-4.8.1 for pkg-config
  157. * Sun Feb 21 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.5-1
  158. - new upstream release
  159. * Mon Mar 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.102-1
  160. - initial build for Vine Linux
  161. * Mon Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
  162. - bump tag becaue the build system can't deal with mistakes.
  163. * Mon Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
  164. - mock build changes
  165. * Sun Aug 17 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
  166. - Pick up 1.4.102
  167. * Tue May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
  168. - Pick up 1.4.101
  169. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
  170. - Autorebuild for GCC 4.3
  171. * Wed Jan 16 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.4-2
  172. - Silence libpcsc-lite even when the daemon isn't running.
  173. - fix typo in init file which prevents the config file from being read.
  174. * Thu Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
  175. - Pick up 1.4.4
  176. * Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
  177. - Pick up 1.3.3
  178. * Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.2-1
  179. - Pick up 1.3.2
  180. * Thu Sep 14 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-7
  181. - Incorporate patch from Ludovic to stop the pcsc daemon from
  182. unnecessarily waking up.
  183. * Mon Jul 31 2006 Ray Strode <rstrode@redhat.com> - 1.3.1-6
  184. - follow packaging guidelines for setting up init service
  185. (bug 200778)
  186. * Mon Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
  187. - start pcscd when pcsc-lite is installed
  188. * Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
  189. - fix excludearch line
  190. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-3.1
  191. - rebuild
  192. * Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-3
  193. - remove s390 from the build
  194. * Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-2
  195. - Move to Fedora Core.
  196. - Remove dependency on graphviz.
  197. - Removed %%{_dist}
  198. * Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-1
  199. - 1.3.1.
  200. * Sun Mar 5 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.0-1
  201. - 1.3.0, init script and reader.conf updater included upstream.
  202. - Split developer docs into a -doc subpackage, include API docs.
  203. - libmusclecard no longer included, split into separate package upstream.
  204. * Mon Feb 13 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-14
  205. - Avoid standard rpaths on multilib archs.
  206. - Fine tune dependencies.
  207. * Fri Nov 11 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-13
  208. - Don't ship static libraries.
  209. - Don't mark the init script as a config file.
  210. - Use rm instead of %%exclude.
  211. - Specfile cleanups.
  212. * Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
  213. - Rebuild.
  214. * Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
  215. - rebuilt
  216. * Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10
  217. - Disable dependency tracking to speed up the build.
  218. - Drop reader.conf patch, it's not needed any more.
  219. - Rename update-reader-conf to update-reader.conf for consistency with Debian,
  220. and improve it a bit.
  221. * Sat Jul 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.9
  222. - Add update-reader-conf, thanks to Fritz Elfert.
  223. * Thu Jul 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.8
  224. - Own the %%{_libdir}/pcsc hierarchy.
  225. * Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.7
  226. - Make main package require pcsc-ifd-handler (idea from Debian).
  227. * Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.6
  228. - Improve package summary.
  229. - Improvements based on suggestions from Ludovic Rousseau:
  230. - Don't install pcsc_demo but do include its source in -devel.
  231. - Sync reader.conf with current upstream CVS HEAD (better docs, less
  232. intrusive in USB-only setups where it's not needed).
  233. * Fri Apr 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.5
  234. - Move PDF API docs to -devel.
  235. - Improve main package and init script descriptions.
  236. * Thu Jan 29 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.4
  237. - Init script fine tuning.
  238. * Fri Jan 9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.3
  239. - BuildRequires libusb-devel 0.1.6 or newer.
  240. * Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.2
  241. - s/pkgconfi/pkgconfig/ in -devel requirements.
  242. * Tue Oct 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1
  243. - Update to 1.2.0.
  244. - Add libpcsc-lite and libmusclecard provides to -libs and -devel.
  245. * Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc3
  246. - Update to 1.2.0-rc3.
  247. - Trivial init script improvements.
  248. - Enable %%{_smp_mflags}.
  249. - Don't bother trying to enable SCF.
  250. * Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc2
  251. - Specfile cleanups.
  252. * Fri Sep 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc2
  253. - Update to 1.2.0-rc2.
  254. * Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc1
  255. - Update to 1.2.0-rc1.
  256. * Sun Jun 1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta5
  257. - Update to 1.1.2beta5.
  258. * Sat May 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta4
  259. - First build, based on PLD's 1.1.1-2.