1 Summary: Muscle PCSC Framework for Linux
2 Summary(pl): ¦rodowisko PCSC dla Linuksa
8 #Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=1225
9 Source0: http://alioth.debian.org/download.php/419/%{name}-%{version}.tar.gz
10 # Source0-md5: 98456d274b2f4bfe74c5ab59070f8d50
11 Source1: %{name}-pcscd.init
12 Source2: %{name}-pcscd.sysconfig
13 Patch0: %{name}-fhs.patch
14 Patch1: %{name}-link.patch
15 Patch2: %{name}-amfix.patch
16 URL: http://www.linuxnet.com/middle.html
17 BuildRequires: autoconf >= 2.52
18 BuildRequires: automake
20 BuildRequires: libtool >= 1.4.2-9
21 BuildRequires: libusb-devel
23 Requires(post,preun): /sbin/chkconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define muscledropdir /usr/lib/pcsc/services
27 %define usbdropdir /usr/lib/pcsc/drivers
30 pcscd is the daemon program for PC/SC Lite. It is a resource manager
31 that coorinates communications with Smart Card readers and Smart Cards
32 that are connected to the system. The purpose of PCSC Lite is to
33 provide a Windows(R) SCard interface in a very small form factor for
34 communicating to smartcards and readers. PCSC Lite uses the same
35 winscard api as used under Windows(R).
38 pcscd jest demonem dla PC/SC Lite. Jest to zarz±dca zasobów,
39 koordynuj±cy komunikacjê z czytnikami kart procesorowych pod³±czonymi
40 do systemu. Celem PCSC Lite jest udostêpnienie interfejsu zgodnego z
41 Windows(R) SCard s³u¿±cego do komunikacji z czytnikami kart chipowych.
42 U¿ywa tego samego API winscard, które jest u¿ywane pod Microsoft(TM)
46 Summary: PC/SC Lite libraries
47 Summary(pl): Biblioteki PC/SC Lite
53 %description libs -l pl
54 Biblioteki PC/SC Lite.
57 Summary: PC/SC Lite development files
58 Summary(pl): Pliki dla programistów u¿ywaj±cych PC/SC Lite
59 Group: Development/Tools
60 Requires: %{name}-libs = %{version}-%{release}
63 PC/SC Lite development files.
65 %description devel -l pl
66 Pliki dla programistów u¿ywaj±cych PC/SC Lite.
69 Summary: Static PC/SC Lite libraries
70 Summary(pl): Biblioteki statyczne PC/SC Lite
71 Group: Development/Tools
72 Requires: %{name}-devel = %{version}-%{release}
75 Static PC/SC Lite libraries.
77 %description static -l pl
78 Statyczne biblioteki PC/SC Lite.
86 %{__aclocal} -I aclocal
91 --enable-muscledropdir=%{muscledropdir} \
92 --enable-runpid=/var/run/pcscd.pid \
93 --enable-usbdropdir=%{usbdropdir}
98 rm -rf $RPM_BUILD_ROOT
99 install -d $RPM_BUILD_ROOT{%{muscledropdir},%{usbdropdir}} \
100 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
101 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
104 DESTDIR=$RPM_BUILD_ROOT
106 # useful for drivers development
107 install src/ifdhandler.h $RPM_BUILD_ROOT%{_includedir}
109 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
110 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
112 install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
115 rm -rf $RPM_BUILD_ROOT
118 /sbin/chkconfig --add pcscd
119 if [ -f /var/lock/subsys/pcscd ]; then
120 /etc/rc.d/init.d/pcscd restart >&2
122 echo "Run \"/etc/rc.d/init.d/pcscd start\" to start pcscd daemon."
126 if [ "$1" = "0" ]; then
127 if [ -f /var/lock/subsys/pcscd ]; then
128 /etc/rc.d/init.d/pcscd stop >&2
130 /sbin/chkconfig --del pcscd
133 %post libs -p /sbin/ldconfig
134 %postun libs -p /sbin/ldconfig
137 %defattr(644,root,root,755)
138 %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY doc/README.DAEMON
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/reader.conf
140 %attr(754,root,root) /etc/rc.d/init.d/pcscd
141 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pcscd
142 %attr(755,root,root) %{_sbindir}/pcscd
143 %attr(755,root,root) %{_bindir}/bundleTool
144 %attr(755,root,root) %{_bindir}/formaticc
145 %attr(755,root,root) %{_bindir}/installifd
147 %{_mandir}/man1/formaticc.1*
148 %{_mandir}/man8/bundleTool.8*
149 %{_mandir}/man8/pcscd.8*
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/lib*.so.*.*
156 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_libdir}/lib*.so
161 %{_pkgconfigdir}/*.pc
162 %{_examplesdir}/%{name}-%{version}
165 %defattr(644,root,root,755)