pcsc-lite-vl.spec 9.2 KB

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