]> git.pld-linux.org Git - packages/pcsc-lite.git/blame - pcsc-lite.spec
- converted to UTF-8
[packages/pcsc-lite.git] / pcsc-lite.spec
CommitLineData
3dfdd265 1Summary: Muscle PCSC Framework for Linux
efe36e15 2Summary(pl.UTF-8): Środowisko PCSC dla Linuksa
3dfdd265 3Name: pcsc-lite
9c19f50b
JB
4Version: 1.3.3
5Release: 1
3dfdd265 6License: BSD
21288c4d 7Group: Daemons
fb5cb6c5 8#Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
9c19f50b
JB
9Source0: http://alioth.debian.org/frs/download.php/1869/%{name}-%{version}.tar.gz
10# Source0-md5: 851b090aa0efedd0196f6afd9c0c61bb
c866bb09
JB
11Source1: %{name}-pcscd.init
12Source2: %{name}-pcscd.sysconfig
13Patch0: %{name}-fhs.patch
34b152c0 14Patch1: %{name}-any.patch
ff6b1f18 15URL: http://www.linuxnet.com/middle.html
b6db0f88
JB
16BuildRequires: autoconf >= 2.58
17BuildRequires: automake >= 1:1.8
18f455e9 18BuildRequires: flex
ffe7e1e7 19BuildRequires: libtool >= 1.4.2-9
2501b8db 20BuildRequires: libusb-devel >= 0.1.7
f9df8cca 21BuildRequires: pkgconfig
4724f046 22BuildRequires: rpmbuild(macros) >= 1.268
18f455e9 23Requires(post,preun): /sbin/chkconfig
4724f046 24Requires(pre): fileutils
0a4419a6 25Requires: rc-scripts
3dfdd265 26BuildRoot: %{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
32pcscd is the daemon program for PC/SC Lite. It is a resource manager
33that coorinates communications with Smart Card readers and Smart Cards
34that are connected to the system. The purpose of PCSC Lite is to
35provide a Windows(R) SCard interface in a very small form factor for
36communicating to smartcards and readers. PCSC Lite uses the same
ff6b1f18 37winscard api as used under Windows(R).
3dfdd265 38
efe36e15
JR
39%description -l pl.UTF-8
40pcscd jest demonem dla PC/SC Lite. Jest to zarządca zasobów,
41koordynujący komunikację z czytnikami kart procesorowych podłączonymi
42do systemu. Celem PCSC Lite jest udostępnienie interfejsu zgodnego z
43Windows(R) SCard służącego do komunikacji z czytnikami kart chipowych.
44Używa tego samego API winscard, które jest używane pod Microsoft(TM)
21288c4d 45Windows(R).
3dfdd265 46
b9189220 47%package libs
ff6b1f18 48Summary: PC/SC Lite libraries
efe36e15 49Summary(pl.UTF-8): Biblioteki PC/SC Lite
21288c4d 50Group: Libraries
b9189220 51
52%description libs
ff6b1f18 53PC/SC Lite libraries.
b9189220 54
efe36e15 55%description libs -l pl.UTF-8
ff6b1f18 56Biblioteki PC/SC Lite.
b9189220 57
21288c4d 58%package devel
ff6b1f18 59Summary: PC/SC Lite development files
efe36e15 60Summary(pl.UTF-8): Pliki dla programistów używających PC/SC Lite
34b152c0 61Group: Development/Libraries
bbf93565 62Requires: %{name}-libs = %{version}-%{release}
21288c4d
JB
63
64%description devel
ff6b1f18 65PC/SC Lite development files.
21288c4d 66
efe36e15
JR
67%description devel -l pl.UTF-8
68Pliki dla programistów używających PC/SC Lite.
b9189220 69
70%package static
ff6b1f18 71Summary: Static PC/SC Lite libraries
efe36e15 72Summary(pl.UTF-8): Biblioteki statyczne PC/SC Lite
34b152c0 73Group: Development/Libraries
bbf93565 74Requires: %{name}-devel = %{version}-%{release}
b9189220 75
76%description static
ff6b1f18 77Static PC/SC Lite libraries.
b9189220 78
efe36e15 79%description static -l pl.UTF-8
ff6b1f18 80Statyczne 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
101rm -rf $RPM_BUILD_ROOT
34b152c0 102install -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
109install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
110install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
3dfdd265 111
ffe7e1e7
JB
112install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
113
34b152c0 114:> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
1c9b44ab 115rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
34b152c0 116
3dfdd265 117%clean
118rm -rf $RPM_BUILD_ROOT
119
34b152c0
JB
120%pre
121# upgrade from pcsc-lite < 1.2.9-0.beta7
122if [ -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
125fi
126
c866bb09
JB
127%post
128/sbin/chkconfig --add pcscd
4724f046 129%service pcscd restart "pcscd daemon"
c866bb09
JB
130
131%preun
132if [ "$1" = "0" ]; then
4724f046 133 %service pcscd stop
c866bb09
JB
134 /sbin/chkconfig --del pcscd
135fi
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
This page took 0.057969 seconds and 4 git commands to generate.