]>
Commit | Line | Data |
---|---|---|
3dfdd265 | 1 | Summary: Muscle PCSC Framework for Linux |
efe36e15 | 2 | Summary(pl.UTF-8): Środowisko PCSC dla Linuksa |
3dfdd265 | 3 | Name: pcsc-lite |
9c19f50b JB |
4 | Version: 1.3.3 |
5 | Release: 1 | |
3dfdd265 | 6 | License: BSD |
21288c4d | 7 | Group: Daemons |
fb5cb6c5 | 8 | #Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105 |
9c19f50b JB |
9 | Source0: http://alioth.debian.org/frs/download.php/1869/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 851b090aa0efedd0196f6afd9c0c61bb | |
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 |
18f455e9 | 23 | Requires(post,preun): /sbin/chkconfig |
4724f046 | 24 | Requires(pre): fileutils |
0a4419a6 | 25 | Requires: rc-scripts |
3dfdd265 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
620572bf | 28 | %define usbdropdir /usr/%{_lib}/pcsc/drivers |
34b152c0 | 29 | %define muscledropdir /usr/%{_lib}/pcsc/services |
ffe7e1e7 | 30 | |
3dfdd265 | 31 | %description |
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 | |
ff6b1f18 | 37 | winscard api as used under Windows(R). |
3dfdd265 | 38 | |
efe36e15 JR |
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) | |
21288c4d | 45 | Windows(R). |
3dfdd265 | 46 | |
b9189220 | 47 | %package libs |
ff6b1f18 | 48 | Summary: PC/SC Lite libraries |
efe36e15 | 49 | Summary(pl.UTF-8): Biblioteki PC/SC Lite |
21288c4d | 50 | Group: Libraries |
b9189220 | 51 | |
52 | %description libs | |
ff6b1f18 | 53 | PC/SC Lite libraries. |
b9189220 | 54 | |
efe36e15 | 55 | %description libs -l pl.UTF-8 |
ff6b1f18 | 56 | Biblioteki PC/SC Lite. |
b9189220 | 57 | |
21288c4d | 58 | %package devel |
ff6b1f18 | 59 | Summary: PC/SC Lite development files |
efe36e15 | 60 | Summary(pl.UTF-8): Pliki dla programistów używających PC/SC Lite |
34b152c0 | 61 | Group: Development/Libraries |
bbf93565 | 62 | Requires: %{name}-libs = %{version}-%{release} |
21288c4d JB |
63 | |
64 | %description devel | |
ff6b1f18 | 65 | PC/SC Lite development files. |
21288c4d | 66 | |
efe36e15 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki dla programistów używających PC/SC Lite. | |
b9189220 | 69 | |
70 | %package static | |
ff6b1f18 | 71 | Summary: Static PC/SC Lite libraries |
efe36e15 | 72 | Summary(pl.UTF-8): Biblioteki statyczne PC/SC Lite |
34b152c0 | 73 | Group: Development/Libraries |
bbf93565 | 74 | Requires: %{name}-devel = %{version}-%{release} |
b9189220 | 75 | |
76 | %description static | |
ff6b1f18 | 77 | Static PC/SC Lite libraries. |
b9189220 | 78 | |
efe36e15 | 79 | %description static -l pl.UTF-8 |
ff6b1f18 | 80 | Statyczne biblioteki PC/SC Lite. |
639acbcc | 81 | |
3dfdd265 | 82 | %prep |
ff6b1f18 | 83 | %setup -q |
18f455e9 | 84 | %patch0 -p1 |
34b152c0 | 85 | %patch1 -p1 |
3dfdd265 | 86 | |
87 | %build | |
18f455e9 | 88 | %{__libtoolize} |
34b152c0 | 89 | %{__aclocal} -I m4 |
18f455e9 | 90 | %{__autoconf} |
ffe7e1e7 | 91 | %{__autoheader} |
18f455e9 | 92 | %{__automake} |
ffe7e1e7 JB |
93 | %configure \ |
94 | --enable-muscledropdir=%{muscledropdir} \ | |
95 | --enable-runpid=/var/run/pcscd.pid \ | |
96 | --enable-usbdropdir=%{usbdropdir} | |
3dfdd265 | 97 | |
639acbcc | 98 | %{__make} |
99 | ||
3dfdd265 | 100 | %install |
101 | rm -rf $RPM_BUILD_ROOT | |
34b152c0 | 102 | install -d $RPM_BUILD_ROOT{%{usbdropdir},%{muscledropdir}} \ |
ffe7e1e7 JB |
103 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
104 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
c866bb09 JB |
105 | |
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
21288c4d | 108 | |
c866bb09 JB |
109 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd |
110 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd | |
3dfdd265 | 111 | |
ffe7e1e7 JB |
112 | install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
113 | ||
34b152c0 | 114 | :> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf |
1c9b44ab | 115 | rm -rf $RPM_BUILD_ROOT%{_prefix}/doc |
34b152c0 | 116 | |
3dfdd265 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
34b152c0 JB |
120 | %pre |
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 | |
125 | fi | |
126 | ||
c866bb09 JB |
127 | %post |
128 | /sbin/chkconfig --add pcscd | |
4724f046 | 129 | %service pcscd restart "pcscd daemon" |
c866bb09 JB |
130 | |
131 | %preun | |
132 | if [ "$1" = "0" ]; then | |
4724f046 | 133 | %service pcscd stop |
c866bb09 JB |
134 | /sbin/chkconfig --del pcscd |
135 | fi | |
136 | ||
21288c4d JB |
137 | %post libs -p /sbin/ldconfig |
138 | %postun libs -p /sbin/ldconfig | |
139 | ||
3dfdd265 | 140 | %files |
141 | %defattr(644,root,root,755) | |
9c19f50b | 142 | %doc AUTHORS COPYING ChangeLog* DRIVERS HELP NEWS README SECURITY TODO doc/README.DAEMON |
34b152c0 JB |
143 | %attr(755,root,root) %{_sbindir}/pcscd |
144 | %attr(755,root,root) %{_sbindir}/update-reader.conf | |
c866bb09 | 145 | %{_libdir}/pcsc |
34b152c0 JB |
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 | |
ffe7e1e7 | 151 | %{_mandir}/man1/formaticc.1* |
34b152c0 | 152 | %{_mandir}/man5/reader.conf.5* |
21288c4d | 153 | %{_mandir}/man8/pcscd.8* |
9c19f50b | 154 | %{_mandir}/man8/update-reader.conf.8* |
b9189220 | 155 | |
21288c4d JB |
156 | %files libs |
157 | %defattr(644,root,root,755) | |
34b152c0 | 158 | %attr(755,root,root) %{_libdir}/libpcsclite.so.*.*.* |
3dfdd265 | 159 | |
653e100a | 160 | %files devel |
21288c4d | 161 | %defattr(644,root,root,755) |
ffe7e1e7 | 162 | %doc doc/*.pdf |
34b152c0 JB |
163 | %attr(755,root,root) %{_libdir}/libpcsclite.so |
164 | %{_libdir}/libpcsclite.la | |
165 | %{_includedir}/PCSC | |
166 | %{_pkgconfigdir}/libpcsclite.pc | |
ffe7e1e7 | 167 | %{_examplesdir}/%{name}-%{version} |
653e100a | 168 | |
b9189220 | 169 | %files static |
21288c4d | 170 | %defattr(644,root,root,755) |
34b152c0 | 171 | %{_libdir}/libpcsclite.a |