pcsc-lite-vl.spec 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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: 2%{?_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. * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.5-2
  124. - rebuilt with rpm-4.8.1 for pkg-config
  125. * Sun Feb 21 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.5-1
  126. - new upstream release
  127. * Mon Mar 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.102-1
  128. - initial build for Vine Linux
  129. * Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-3
  130. - bump tag becaue the build system can't deal with mistakes.
  131. * Thu Aug 18 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-2
  132. - mock build changes
  133. * Wed Aug 17 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.102-1
  134. - Pick up 1.4.102
  135. * Wed May 6 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.101-1
  136. - Pick up 1.4.101
  137. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-3
  138. - Autorebuild for GCC 4.3
  139. * Wed Jan 16 2008 Bob Relyea <rrelyea@redhat.com> - 1.4.4-2
  140. - Silence libpcsc-lite even when the daemon isn't running.
  141. - fix typo in init file which prevents the config file from being read.
  142. * Tue Nov 22 2007 Bob Relyea <rrelyea@redhat.com> - 1.4.4-1
  143. - Pick up 1.4.4
  144. * Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.3.3-1
  145. - Pick up 1.3.3
  146. * Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.2-1
  147. - Pick up 1.3.2
  148. * Thu Sep 14 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-7
  149. - Incorporate patch from Ludovic to stop the pcsc daemon from
  150. unnecessarily waking up.
  151. * Mon Jul 31 2006 Ray Strode <rstrode@redhat.com> - 1.3.1-6
  152. - follow packaging guidelines for setting up init service
  153. (bug 200778)
  154. * Sun Jul 24 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-5
  155. - start pcscd when pcsc-lite is installed
  156. * Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.3.1-4
  157. - fix excludearch line
  158. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.3.1-3.1
  159. - rebuild
  160. * Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-3
  161. - remove s390 from the build
  162. * Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.3.1-2
  163. - Move to Fedora Core.
  164. - Remove dependency on graphviz.
  165. - Removed %%{_dist}
  166. * Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-1
  167. - 1.3.1.
  168. * Sun Mar 5 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.0-1
  169. - 1.3.0, init script and reader.conf updater included upstream.
  170. - Split developer docs into a -doc subpackage, include API docs.
  171. - libmusclecard no longer included, split into separate package upstream.
  172. * Mon Feb 13 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-14
  173. - Avoid standard rpaths on multilib archs.
  174. - Fine tune dependencies.
  175. * Fri Nov 11 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-13
  176. - Don't ship static libraries.
  177. - Don't mark the init script as a config file.
  178. - Use rm instead of %%exclude.
  179. - Specfile cleanups.
  180. * Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.2.0-12
  181. - Rebuild.
  182. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.2.0-11
  183. - rebuilt
  184. * Tue Aug 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-10
  185. - Disable dependency tracking to speed up the build.
  186. - Drop reader.conf patch, it's not needed any more.
  187. - Rename update-reader-conf to update-reader.conf for consistency with Debian,
  188. and improve it a bit.
  189. * Sat Jul 31 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.9
  190. - Add update-reader-conf, thanks to Fritz Elfert.
  191. * Thu Jul 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.8
  192. - Own the %%{_libdir}/pcsc hierarchy.
  193. * Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.7
  194. - Make main package require pcsc-ifd-handler (idea from Debian).
  195. * Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.6
  196. - Improve package summary.
  197. - Improvements based on suggestions from Ludovic Rousseau:
  198. - Don't install pcsc_demo but do include its source in -devel.
  199. - Sync reader.conf with current upstream CVS HEAD (better docs, less
  200. intrusive in USB-only setups where it's not needed).
  201. * Fri Apr 16 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.5
  202. - Move PDF API docs to -devel.
  203. - Improve main package and init script descriptions.
  204. * Thu Jan 29 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.4
  205. - Init script fine tuning.
  206. * Fri Jan 9 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.3
  207. - BuildRequires libusb-devel 0.1.6 or newer.
  208. * Thu Oct 30 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.2
  209. - s/pkgconfi/pkgconfig/ in -devel requirements.
  210. * Tue Oct 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1
  211. - Update to 1.2.0.
  212. - Add libpcsc-lite and libmusclecard provides to -libs and -devel.
  213. * Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc3
  214. - Update to 1.2.0-rc3.
  215. - Trivial init script improvements.
  216. - Enable %%{_smp_mflags}.
  217. - Don't bother trying to enable SCF.
  218. * Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.2.rc2
  219. - Specfile cleanups.
  220. * Fri Sep 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc2
  221. - Update to 1.2.0-rc2.
  222. * Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.0.1.rc1
  223. - Update to 1.2.0-rc1.
  224. * Sun Jun 1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta5
  225. - Update to 1.1.2beta5.
  226. * Sat May 24 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.2-0.fdr.0.1.beta4
  227. - First build, based on PLD's 1.1.1-2.