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/1565/%{name}-%{version}.tar.gz
10 # Source0-md5: 90fa7e9cdfdfe88fdf6644ca8b60a681
11 Source1: %{name}-pcscd.init
12 Source2: %{name}-pcscd.sysconfig
13 Patch0: %{name}-fhs.patch
14 Patch1: %{name}-any.patch
15 URL: http://www.linuxnet.com/middle.html
16 BuildRequires: autoconf >= 2.52
17 BuildRequires: automake
19 BuildRequires: libtool >= 1.4.2-9
20 BuildRequires: libusb-devel
21 BuildRequires: rpmbuild(macros) >= 1.268
22 Requires(post,preun): /sbin/chkconfig
23 Requires(pre): fileutils
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define usbdropdir /usr/%{_lib}/pcsc/drivers
28 %define muscledropdir /usr/%{_lib}/pcsc/services
31 pcscd is the daemon program for PC/SC Lite. It is a resource manager
32 that coorinates communications with Smart Card readers and Smart Cards
33 that are connected to the system. The purpose of PCSC Lite is to
34 provide a Windows(R) SCard interface in a very small form factor for
35 communicating to smartcards and readers. PCSC Lite uses the same
36 winscard api as used under Windows(R).
39 pcscd jest demonem dla PC/SC Lite. Jest to zarz±dca zasobów,
40 koordynuj±cy komunikacjê z czytnikami kart procesorowych pod³±czonymi
41 do systemu. Celem PCSC Lite jest udostêpnienie interfejsu zgodnego z
42 Windows(R) SCard s³u¿±cego do komunikacji z czytnikami kart chipowych.
43 U¿ywa tego samego API winscard, które jest u¿ywane pod Microsoft(TM)
47 Summary: PC/SC Lite libraries
48 Summary(pl): Biblioteki PC/SC Lite
54 %description libs -l pl
55 Biblioteki PC/SC Lite.
58 Summary: PC/SC Lite development files
59 Summary(pl): Pliki dla programistów u¿ywaj±cych PC/SC Lite
60 Group: Development/Libraries
61 Requires: %{name}-libs = %{version}-%{release}
64 PC/SC Lite development files.
66 %description devel -l pl
67 Pliki dla programistów u¿ywaj±cych PC/SC Lite.
70 Summary: Static PC/SC Lite libraries
71 Summary(pl): Biblioteki statyczne PC/SC Lite
72 Group: Development/Libraries
73 Requires: %{name}-devel = %{version}-%{release}
76 Static PC/SC Lite libraries.
78 %description static -l pl
79 Statyczne biblioteki PC/SC Lite.
93 --enable-muscledropdir=%{muscledropdir} \
94 --enable-runpid=/var/run/pcscd.pid \
95 --enable-usbdropdir=%{usbdropdir}
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{%{usbdropdir},%{muscledropdir}} \
102 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
103 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
106 DESTDIR=$RPM_BUILD_ROOT
108 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
109 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
111 install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113 :> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
114 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
117 rm -rf $RPM_BUILD_ROOT
120 # upgrade from pcsc-lite < 1.2.9-0.beta7
121 if [ -f /etc/reader.conf -a ! -f /etc/reader.conf.d/reader.conf ]; then
122 install -d -m755 /etc/reader.conf.d
123 cp -af /etc/reader.conf /etc/reader.conf.d/reader.conf
127 /sbin/chkconfig --add pcscd
128 %service pcscd restart "pcscd daemon"
131 if [ "$1" = "0" ]; then
133 /sbin/chkconfig --del pcscd
136 %post libs -p /sbin/ldconfig
137 %postun libs -p /sbin/ldconfig
140 %defattr(644,root,root,755)
141 %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY doc/README.DAEMON
142 %attr(755,root,root) %{_bindir}/formaticc
143 %attr(755,root,root) %{_sbindir}/installifd
144 %attr(755,root,root) %{_sbindir}/pcscd
145 %attr(755,root,root) %{_sbindir}/update-reader.conf
147 %dir %{_sysconfdir}/reader.conf.d
148 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/reader.conf
149 %ghost %{_sysconfdir}/reader.conf
150 %attr(754,root,root) /etc/rc.d/init.d/pcscd
151 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pcscd
152 %{_mandir}/man1/formaticc.1*
153 %{_mandir}/man5/reader.conf.5*
154 %{_mandir}/man8/pcscd.8*
157 %defattr(644,root,root,755)
158 %attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.*
161 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/libpcsclite.so
164 %{_libdir}/libpcsclite.la
166 %{_pkgconfigdir}/libpcsclite.pc
167 %{_examplesdir}/%{name}-%{version}
170 %defattr(644,root,root,755)
171 %{_libdir}/libpcsclite.a