]> git.pld-linux.org Git - packages/pcsc-lite.git/blame - pcsc-lite.spec
- updated to 1.4.99
[packages/pcsc-lite.git] / pcsc-lite.spec
CommitLineData
3dfdd265 1Summary: Muscle PCSC Framework for Linux
054c7a02 2Summary(pl.UTF-8): Środowisko PCSC dla Linuksa
3dfdd265 3Name: pcsc-lite
1c692fd1 4Version: 1.4.99
9c19f50b 5Release: 1
3dfdd265 6License: BSD
21288c4d 7Group: Daemons
fb5cb6c5 8#Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
1c692fd1
JB
9Source0: http://alioth.debian.org/frs/download.php/2257/%{name}-%{version}.tar.gz
10# Source0-md5: 16c59b54edde9fa466c0e1f0eb86fd61
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
3bd03235
JB
23# temporary?
24BuildRequires: tetex-format-pdflatex
25BuildRequires: tetex-latex-ae
18f455e9 26Requires(post,preun): /sbin/chkconfig
4724f046 27Requires(pre): fileutils
0a4419a6 28Requires: rc-scripts
3dfdd265 29BuildRoot: %{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
35pcscd is the daemon program for PC/SC Lite. It is a resource manager
36that coorinates communications with Smart Card readers and Smart Cards
37that are connected to the system. The purpose of PCSC Lite is to
38provide a Windows(R) SCard interface in a very small form factor for
39communicating to smartcards and readers. PCSC Lite uses the same
ff6b1f18 40winscard api as used under Windows(R).
3dfdd265 41
efe36e15
JR
42%description -l pl.UTF-8
43pcscd jest demonem dla PC/SC Lite. Jest to zarządca zasobów,
44koordynujący komunikację z czytnikami kart procesorowych podłączonymi
45do systemu. Celem PCSC Lite jest udostępnienie interfejsu zgodnego z
46Windows(R) SCard służącego do komunikacji z czytnikami kart chipowych.
47Używa tego samego API winscard, które jest używane pod Microsoft(TM)
21288c4d 48Windows(R).
3dfdd265 49
b9189220 50%package libs
ff6b1f18 51Summary: PC/SC Lite libraries
054c7a02 52Summary(pl.UTF-8): Biblioteki PC/SC Lite
21288c4d 53Group: Libraries
b9189220 54
55%description libs
ff6b1f18 56PC/SC Lite libraries.
b9189220 57
efe36e15 58%description libs -l pl.UTF-8
ff6b1f18 59Biblioteki PC/SC Lite.
b9189220 60
21288c4d 61%package devel
ff6b1f18 62Summary: PC/SC Lite development files
054c7a02 63Summary(pl.UTF-8): Pliki dla programistów używających PC/SC Lite
34b152c0 64Group: Development/Libraries
bbf93565 65Requires: %{name}-libs = %{version}-%{release}
21288c4d
JB
66
67%description devel
ff6b1f18 68PC/SC Lite development files.
21288c4d 69
efe36e15
JR
70%description devel -l pl.UTF-8
71Pliki dla programistów używających PC/SC Lite.
b9189220 72
73%package static
ff6b1f18 74Summary: Static PC/SC Lite libraries
054c7a02 75Summary(pl.UTF-8): Biblioteki statyczne PC/SC Lite
34b152c0 76Group: Development/Libraries
bbf93565 77Requires: %{name}-devel = %{version}-%{release}
b9189220 78
79%description static
ff6b1f18 80Static PC/SC Lite libraries.
b9189220 81
efe36e15 82%description static -l pl.UTF-8
ff6b1f18 83Statyczne 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
107rm -rf $RPM_BUILD_ROOT
34b152c0 108install -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
115install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
116install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
3dfdd265 117
ffe7e1e7
JB
118install doc/example/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
119
34b152c0 120:> $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf
1c9b44ab 121rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
34b152c0 122
3dfdd265 123%clean
124rm -rf $RPM_BUILD_ROOT
125
34b152c0
JB
126%pre
127# upgrade from pcsc-lite < 1.2.9-0.beta7
128if [ -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
131fi
132
c866bb09
JB
133%post
134/sbin/chkconfig --add pcscd
4724f046 135%service pcscd restart "pcscd daemon"
c866bb09
JB
136
137%preun
138if [ "$1" = "0" ]; then
4724f046 139 %service pcscd stop
c866bb09
JB
140 /sbin/chkconfig --del pcscd
141fi
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
This page took 0.451443 seconds and 4 git commands to generate.