]>
Commit | Line | Data |
---|---|---|
3dfdd265 | 1 | Summary: Muscle PCSC Framework for Linux |
054c7a02 | 2 | Summary(pl.UTF-8): Środowisko PCSC dla Linuksa |
3dfdd265 | 3 | Name: pcsc-lite |
1c692fd1 | 4 | Version: 1.4.99 |
9c19f50b | 5 | Release: 1 |
3dfdd265 | 6 | License: BSD |
21288c4d | 7 | Group: Daemons |
fb5cb6c5 | 8 | #Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105 |
1c692fd1 JB |
9 | Source0: http://alioth.debian.org/frs/download.php/2257/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 16c59b54edde9fa466c0e1f0eb86fd61 | |
c866bb09 JB |
11 | Source1: %{name}-pcscd.init |
12 | Source2: %{name}-pcscd.sysconfig | |
13 | Patch0: %{name}-fhs.patch | |
34b152c0 | 14 | Patch1: %{name}-any.patch |
ff6b1f18 | 15 | URL: http://www.linuxnet.com/middle.html |
b6db0f88 JB |
16 | BuildRequires: autoconf >= 2.58 |
17 | BuildRequires: automake >= 1:1.8 | |
18f455e9 | 18 | BuildRequires: flex |
ffe7e1e7 | 19 | BuildRequires: libtool >= 1.4.2-9 |
2501b8db | 20 | BuildRequires: libusb-devel >= 0.1.7 |
f9df8cca | 21 | BuildRequires: pkgconfig |
4724f046 | 22 | BuildRequires: rpmbuild(macros) >= 1.268 |
3bd03235 JB |
23 | # temporary? |
24 | BuildRequires: tetex-format-pdflatex | |
25 | BuildRequires: tetex-latex-ae | |
18f455e9 | 26 | Requires(post,preun): /sbin/chkconfig |
4724f046 | 27 | Requires(pre): fileutils |
0a4419a6 | 28 | Requires: rc-scripts |
3dfdd265 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
620572bf | 31 | %define usbdropdir /usr/%{_lib}/pcsc/drivers |
34b152c0 | 32 | %define muscledropdir /usr/%{_lib}/pcsc/services |
ffe7e1e7 | 33 | |
3dfdd265 | 34 | %description |
35 | pcscd is the daemon program for PC/SC Lite. It is a resource manager | |
36 | that coorinates communications with Smart Card readers and Smart Cards | |
37 | that are connected to the system. The purpose of PCSC Lite is to | |
38 | provide a Windows(R) SCard interface in a very small form factor for | |
39 | communicating to smartcards and readers. PCSC Lite uses the same | |
ff6b1f18 | 40 | winscard api as used under Windows(R). |
3dfdd265 | 41 | |
efe36e15 JR |
42 | %description -l pl.UTF-8 |
43 | pcscd jest demonem dla PC/SC Lite. Jest to zarządca zasobów, | |
44 | koordynujący komunikację z czytnikami kart procesorowych podłączonymi | |
45 | do systemu. Celem PCSC Lite jest udostępnienie interfejsu zgodnego z | |
46 | Windows(R) SCard służącego do komunikacji z czytnikami kart chipowych. | |
47 | Używa tego samego API winscard, które jest używane pod Microsoft(TM) | |
21288c4d | 48 | Windows(R). |
3dfdd265 | 49 | |
b9189220 | 50 | %package libs |
ff6b1f18 | 51 | Summary: PC/SC Lite libraries |
054c7a02 | 52 | Summary(pl.UTF-8): Biblioteki PC/SC Lite |
21288c4d | 53 | Group: Libraries |
b9189220 | 54 | |
55 | %description libs | |
ff6b1f18 | 56 | PC/SC Lite libraries. |
b9189220 | 57 | |
efe36e15 | 58 | %description libs -l pl.UTF-8 |
ff6b1f18 | 59 | Biblioteki PC/SC Lite. |
b9189220 | 60 | |
21288c4d | 61 | %package devel |
ff6b1f18 | 62 | Summary: PC/SC Lite development files |
054c7a02 | 63 | Summary(pl.UTF-8): Pliki dla programistów używających PC/SC Lite |
34b152c0 | 64 | Group: Development/Libraries |
bbf93565 | 65 | Requires: %{name}-libs = %{version}-%{release} |
21288c4d JB |
66 | |
67 | %description devel | |
ff6b1f18 | 68 | PC/SC Lite development files. |
21288c4d | 69 | |
efe36e15 JR |
70 | %description devel -l pl.UTF-8 |
71 | Pliki dla programistów używających PC/SC Lite. | |
b9189220 | 72 | |
73 | %package static | |
ff6b1f18 | 74 | Summary: Static PC/SC Lite libraries |
054c7a02 | 75 | Summary(pl.UTF-8): Biblioteki statyczne PC/SC Lite |
34b152c0 | 76 | Group: Development/Libraries |
bbf93565 | 77 | Requires: %{name}-devel = %{version}-%{release} |
b9189220 | 78 | |
79 | %description static | |
ff6b1f18 | 80 | Static PC/SC Lite libraries. |
b9189220 | 81 | |
efe36e15 | 82 | %description static -l pl.UTF-8 |
ff6b1f18 | 83 | Statyczne biblioteki PC/SC Lite. |
639acbcc | 84 | |
3dfdd265 | 85 | %prep |
ff6b1f18 | 86 | %setup -q |
18f455e9 | 87 | %patch0 -p1 |
34b152c0 | 88 | %patch1 -p1 |
3dfdd265 | 89 | |
90 | %build | |
18f455e9 | 91 | %{__libtoolize} |
34b152c0 | 92 | %{__aclocal} -I m4 |
18f455e9 | 93 | %{__autoconf} |
ffe7e1e7 | 94 | %{__autoheader} |
18f455e9 | 95 | %{__automake} |
ffe7e1e7 JB |
96 | %configure \ |
97 | --enable-muscledropdir=%{muscledropdir} \ | |
98 | --enable-runpid=/var/run/pcscd.pid \ | |
99 | --enable-usbdropdir=%{usbdropdir} | |
3dfdd265 | 100 | |
639acbcc | 101 | %{__make} |
102 | ||
3bd03235 JB |
103 | # temporary? |
104 | %{__make} -C doc ifdhandler-3.pdf pcsc-lite.pdf | |
105 | ||
3dfdd265 | 106 | %install |
107 | rm -rf $RPM_BUILD_ROOT | |
34b152c0 | 108 | install -d $RPM_BUILD_ROOT{%{usbdropdir},%{muscledropdir}} \ |
ffe7e1e7 JB |
109 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
110 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
c866bb09 JB |
111 | |
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
21288c4d | 114 | |
c866bb09 JB |
115 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd |
116 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd | |
3dfdd265 | 117 | |
ffe7e1e7 JB |
118 | install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
119 | ||
34b152c0 | 120 | :> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf |
1c9b44ab | 121 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
34b152c0 | 122 | |
3dfdd265 | 123 | %clean |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
34b152c0 JB |
126 | %pre |
127 | # upgrade from pcsc-lite < 1.2.9-0.beta7 | |
128 | if [ -f /etc/reader.conf -a ! -f /etc/reader.conf.d/reader.conf ]; then | |
129 | install -d -m755 /etc/reader.conf.d | |
130 | cp -af /etc/reader.conf /etc/reader.conf.d/reader.conf | |
131 | fi | |
132 | ||
c866bb09 JB |
133 | %post |
134 | /sbin/chkconfig --add pcscd | |
4724f046 | 135 | %service pcscd restart "pcscd daemon" |
c866bb09 JB |
136 | |
137 | %preun | |
138 | if [ "$1" = "0" ]; then | |
4724f046 | 139 | %service pcscd stop |
c866bb09 JB |
140 | /sbin/chkconfig --del pcscd |
141 | fi | |
142 | ||
21288c4d JB |
143 | %post libs -p /sbin/ldconfig |
144 | %postun libs -p /sbin/ldconfig | |
145 | ||
3dfdd265 | 146 | %files |
147 | %defattr(644,root,root,755) | |
9c19f50b | 148 | %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY TODO doc/README.DAEMON |
34b152c0 JB |
149 | %attr(755,root,root) %{_sbindir}/pcscd |
150 | %attr(755,root,root) %{_sbindir}/update-reader.conf | |
c866bb09 | 151 | %{_libdir}/pcsc |
34b152c0 JB |
152 | %dir %{_sysconfdir}/reader.conf.d |
153 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/reader.conf | |
154 | %ghost %{_sysconfdir}/reader.conf | |
155 | %attr(754,root,root) /etc/rc.d/init.d/pcscd | |
156 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pcscd | |
34b152c0 | 157 | %{_mandir}/man5/reader.conf.5* |
21288c4d | 158 | %{_mandir}/man8/pcscd.8* |
9c19f50b | 159 | %{_mandir}/man8/update-reader.conf.8* |
b9189220 | 160 | |
21288c4d JB |
161 | %files libs |
162 | %defattr(644,root,root,755) | |
34b152c0 | 163 | %attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.* |
1c692fd1 | 164 | %attr(755,root,root) %ghost %{_libdir}/libpcsclite.so.1 |
3dfdd265 | 165 | |
653e100a | 166 | %files devel |
21288c4d | 167 | %defattr(644,root,root,755) |
ffe7e1e7 | 168 | %doc doc/*.pdf |
34b152c0 JB |
169 | %attr(755,root,root) %{_libdir}/libpcsclite.so |
170 | %{_libdir}/libpcsclite.la | |
171 | %{_includedir}/PCSC | |
172 | %{_pkgconfigdir}/libpcsclite.pc | |
ffe7e1e7 | 173 | %{_examplesdir}/%{name}-%{version} |
653e100a | 174 | |
b9189220 | 175 | %files static |
21288c4d | 176 | %defattr(644,root,root,755) |
34b152c0 | 177 | %{_libdir}/libpcsclite.a |