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=30105
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 URL: http://www.linuxnet.com/middle.html
15 BuildRequires: autoconf >= 2.52
16 BuildRequires: automake
18 BuildRequires: libtool >= 1.4.2-9
19 BuildRequires: libusb-devel
20 Requires(post,preun): /sbin/chkconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define muscledropdir /usr/%{_lib}/pcsc/services
25 %define usbdropdir /usr/%{_lib}/pcsc/drivers
28 pcscd is the daemon program for PC/SC Lite. It is a resource manager
29 that coorinates communications with Smart Card readers and Smart Cards
30 that are connected to the system. The purpose of PCSC Lite is to
31 provide a Windows(R) SCard interface in a very small form factor for
32 communicating to smartcards and readers. PCSC Lite uses the same
33 winscard api as used under Windows(R).
36 pcscd jest demonem dla PC/SC Lite. Jest to zarz±dca zasobów,
37 koordynuj±cy komunikacjê z czytnikami kart procesorowych pod³±czonymi
38 do systemu. Celem PCSC Lite jest udostêpnienie interfejsu zgodnego z
39 Windows(R) SCard s³u¿±cego do komunikacji z czytnikami kart chipowych.
40 U¿ywa tego samego API winscard, które jest u¿ywane pod Microsoft(TM)
44 Summary: PC/SC Lite libraries
45 Summary(pl): Biblioteki PC/SC Lite
51 %description libs -l pl
52 Biblioteki PC/SC Lite.
55 Summary: PC/SC Lite development files
56 Summary(pl): Pliki dla programistów u¿ywaj±cych PC/SC Lite
57 Group: Development/Tools
58 Requires: %{name}-libs = %{version}-%{release}
61 PC/SC Lite development files.
63 %description devel -l pl
64 Pliki dla programistów u¿ywaj±cych PC/SC Lite.
67 Summary: Static PC/SC Lite libraries
68 Summary(pl): Biblioteki statyczne PC/SC Lite
69 Group: Development/Tools
70 Requires: %{name}-devel = %{version}-%{release}
73 Static PC/SC Lite libraries.
75 %description static -l pl
76 Statyczne biblioteki PC/SC Lite.
84 %{__aclocal} -I aclocal
89 --enable-muscledropdir=%{muscledropdir} \
90 --enable-runpid=/var/run/pcscd.pid \
91 --enable-usbdropdir=%{usbdropdir}
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{muscledropdir},%{usbdropdir}} \
98 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
99 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
102 DESTDIR=$RPM_BUILD_ROOT
104 # useful for drivers development
105 install src/ifdhandler.h $RPM_BUILD_ROOT%{_includedir}
107 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
108 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
110 install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113 rm -rf $RPM_BUILD_ROOT
116 /sbin/chkconfig --add pcscd
117 if [ -f /var/lock/subsys/pcscd ]; then
118 /etc/rc.d/init.d/pcscd restart >&2
120 echo "Run \"/etc/rc.d/init.d/pcscd start\" to start pcscd daemon."
124 if [ "$1" = "0" ]; then
125 if [ -f /var/lock/subsys/pcscd ]; then
126 /etc/rc.d/init.d/pcscd stop >&2
128 /sbin/chkconfig --del pcscd
131 %post libs -p /sbin/ldconfig
132 %postun libs -p /sbin/ldconfig
135 %defattr(644,root,root,755)
136 %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY doc/README.DAEMON
137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf
138 %attr(754,root,root) /etc/rc.d/init.d/pcscd
139 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pcscd
140 %attr(755,root,root) %{_sbindir}/pcscd
141 %attr(755,root,root) %{_bindir}/bundleTool
142 %attr(755,root,root) %{_bindir}/formaticc
143 %attr(755,root,root) %{_bindir}/installifd
145 %{_mandir}/man1/formaticc.1*
146 %{_mandir}/man8/bundleTool.8*
147 %{_mandir}/man8/pcscd.8*
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/lib*.so.*.*
154 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/lib*.so
159 %{_pkgconfigdir}/*.pc
160 %{_examplesdir}/%{name}-%{version}
163 %defattr(644,root,root,755)