1 Summary: Muscle PCSC Framework for Linux
2 Summary(pl.UTF-8): Środowisko PCSC dla Linuksa
8 #Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
9 Source0: http://alioth.debian.org/frs/download.php/1819/%{name}-%{version}.tar.gz
10 # Source0-md5: 9ac845b62a683ce9f7c1331741f422ee
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.58
17 BuildRequires: automake >= 1:1.8
19 BuildRequires: libtool >= 1.4.2-9
20 BuildRequires: libusb-devel >= 0.1.7
21 BuildRequires: pkgconfig
22 BuildRequires: rpmbuild(macros) >= 1.268
23 Requires(post,preun): /sbin/chkconfig
24 Requires(pre): fileutils
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define usbdropdir /usr/%{_lib}/pcsc/drivers
29 %define muscledropdir /usr/%{_lib}/pcsc/services
32 pcscd is the daemon program for PC/SC Lite. It is a resource manager
33 that coorinates communications with Smart Card readers and Smart Cards
34 that are connected to the system. The purpose of PCSC Lite is to
35 provide a Windows(R) SCard interface in a very small form factor for
36 communicating to smartcards and readers. PCSC Lite uses the same
37 winscard api as used under Windows(R).
39 %description -l pl.UTF-8
40 pcscd jest demonem dla PC/SC Lite. Jest to zarządca zasobów,
41 koordynujący komunikację z czytnikami kart procesorowych podłączonymi
42 do systemu. Celem PCSC Lite jest udostępnienie interfejsu zgodnego z
43 Windows(R) SCard służącego do komunikacji z czytnikami kart chipowych.
44 Używa tego samego API winscard, które jest używane pod Microsoft(TM)
48 Summary: PC/SC Lite libraries
49 Summary(pl.UTF-8): Biblioteki PC/SC Lite
55 %description libs -l pl.UTF-8
56 Biblioteki PC/SC Lite.
59 Summary: PC/SC Lite development files
60 Summary(pl.UTF-8): Pliki dla programistów używających PC/SC Lite
61 Group: Development/Libraries
62 Requires: %{name}-libs = %{version}-%{release}
65 PC/SC Lite development files.
67 %description devel -l pl.UTF-8
68 Pliki dla programistów używających PC/SC Lite.
71 Summary: Static PC/SC Lite libraries
72 Summary(pl.UTF-8): Biblioteki statyczne PC/SC Lite
73 Group: Development/Libraries
74 Requires: %{name}-devel = %{version}-%{release}
77 Static PC/SC Lite libraries.
79 %description static -l pl.UTF-8
80 Statyczne biblioteki PC/SC Lite.
94 --enable-muscledropdir=%{muscledropdir} \
95 --enable-runpid=/var/run/pcscd.pid \
96 --enable-usbdropdir=%{usbdropdir}
101 rm -rf $RPM_BUILD_ROOT
102 install -d $RPM_BUILD_ROOT{%{usbdropdir},%{muscledropdir}} \
103 $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \
104 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
107 DESTDIR=$RPM_BUILD_ROOT
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}
114 :> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
115 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
118 rm -rf $RPM_BUILD_ROOT
121 # upgrade from pcsc-lite < 1.2.9-0.beta7
122 if [ -f /etc/reader.conf -a ! -f /etc/reader.conf.d/reader.conf ]; then
123 install -d -m755 /etc/reader.conf.d
124 cp -af /etc/reader.conf /etc/reader.conf.d/reader.conf
128 /sbin/chkconfig --add pcscd
129 %service pcscd restart "pcscd daemon"
132 if [ "$1" = "0" ]; then
134 /sbin/chkconfig --del pcscd
137 %post libs -p /sbin/ldconfig
138 %postun libs -p /sbin/ldconfig
141 %defattr(644,root,root,755)
142 %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY TODO doc/README.DAEMON
143 %attr(755,root,root) %{_sbindir}/pcscd
144 %attr(755,root,root) %{_sbindir}/update-reader.conf
146 %dir %{_sysconfdir}/reader.conf.d
147 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/reader.conf
148 %ghost %{_sysconfdir}/reader.conf
149 %attr(754,root,root) /etc/rc.d/init.d/pcscd
150 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pcscd
151 %{_mandir}/man5/reader.conf.5*
152 %{_mandir}/man8/pcscd.8*
153 %{_mandir}/man8/update-reader.conf.8*
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.*
160 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libpcsclite.so
163 %{_libdir}/libpcsclite.la
165 %{_pkgconfigdir}/libpcsclite.pc
166 %{_examplesdir}/%{name}-%{version}
169 %defattr(644,root,root,755)
170 %{_libdir}/libpcsclite.a