]> git.pld-linux.org Git - packages/pcsc-lite.git/blob - pcsc-lite.spec
- LSB conformance
[packages/pcsc-lite.git] / pcsc-lite.spec
1 Summary:        Muscle PCSC Framework for Linux
2 Summary(pl):    ¦rodowisko PCSC dla Linuksa
3 Name:           pcsc-lite
4 Version:        1.1.1
5 Release:        2
6 License:        BSD
7 Group:          Daemons
8 Source0:        http://linuxnet.com/middleware/file/%{name}-%{version}.tar.gz
9 Source1:        %{name}-pcscd.init
10 Source2:        %{name}-pcscd.sysconfig
11 Patch0:         %{name}-fhs.patch
12 Patch1:         %{name}-link.patch
13 Patch2:         %{name}-amfix.patch
14 URL:            http://www.linuxnet.com/middle.html
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  flex
18 BuildRequires:  libtool
19 PreReq:         rc-scripts
20 Requires(post,preun):   /sbin/chkconfig
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 pcscd is the daemon program for PC/SC Lite. It is a resource manager
25 that coorinates communications with Smart Card readers and Smart Cards
26 that are connected to the system. The purpose of PCSC Lite is to
27 provide a Windows(R) SCard interface in a very small form factor for
28 communicating to smartcards and readers. PCSC Lite uses the same
29 winscard api as used under Windows(R).
30
31 %description -l pl
32 pcscd jest demonem dla PC/SC Lite. Jest to zarz±dca zasobów,
33 koordynuj±cy komunikacjê z czytnikami kart procesorowych pod³±czonymi
34 do systemu. Celem PCSC Lite jest udostêpnienie interfejsu zgodnego z
35 Windows(R) SCard s³u¿±cego do komunikacji z czytnikami kart chipowych.
36 U¿ywa tego samego API winscard, które jest u¿ywane pod Microsoft(TM)
37 Windows(R).
38
39 %package libs
40 Summary:        PC/SC Lite libraries
41 Summary(pl):    Biblioteki PC/SC Lite
42 Group:          Libraries
43
44 %description libs
45 PC/SC Lite libraries.
46
47 %description libs -l pl
48 Biblioteki PC/SC Lite.
49
50 %package devel
51 Summary:        PC/SC Lite development files
52 Summary(pl):    Pliki dla programistów u¿ywaj±cych PC/SC Lite
53 Group:          Development/Tools
54 Requires:       %{name}-libs = %{version}
55
56 %description devel
57 PC/SC Lite development files.
58
59 %description devel -l pl
60 Pliki dla programistów u¿ywaj±cych PC/SC Lite.
61
62 %package static
63 Summary:        Static PC/SC Lite libraries
64 Summary(pl):    Biblioteki statyczne PC/SC Lite
65 Group:          Development/Tools
66 Requires:       %{name}-devel = %{version}
67
68 %description static
69 Static PC/SC Lite libraries.
70
71 %description static -l pl
72 Statyczne biblioteki PC/SC Lite.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79
80 %build
81 %{__libtoolize}
82 %{__aclocal} -I build
83 %{__autoconf}
84 %{__automake}
85 %configure
86
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_libdir}/pcsc/{drivers,services} \
92         $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 # useful for drivers development
98 install src/ifdhandler.h $RPM_BUILD_ROOT%{_includedir}
99
100 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pcscd
101 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pcscd
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post
107 /sbin/chkconfig --add pcscd
108 if [ -f /var/lock/subsys/pcscd ]; then
109         /etc/rc.d/init.d/pcscd restart >&2
110 else
111         echo "Run \"/etc/rc.d/init.d/pcscd start\" to start pcscd daemon."
112 fi
113
114 %preun
115 if [ "$1" = "0" ]; then
116         if [ -f /var/lock/subsys/pcscd ]; then
117                 /etc/rc.d/init.d/pcscd stop >&2
118         fi
119         /sbin/chkconfig --del pcscd
120 fi
121
122 %post   libs -p /sbin/ldconfig
123 %postun libs -p /sbin/ldconfig
124
125 %files
126 %defattr(644,root,root,755)
127 %doc AUTHORS COPYING DRIVERS NEWS HELP README SECURITY doc/{README.DAEMON,*.pdf,pcscd.startup}
128 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/reader.conf
129 %attr(754,root,root) /etc/rc.d/init.d/pcscd
130 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/pcscd
131 %attr(755,root,root) %{_sbindir}/pcscd
132 %attr(755,root,root) %{_bindir}/bundleTool
133 %attr(755,root,root) %{_bindir}/formaticc
134 %attr(755,root,root) %{_bindir}/installifd
135 %{_libdir}/pcsc
136 %{_mandir}/man1/bundleTool.1*
137 %{_mandir}/man8/pcscd.8*
138
139 %files libs
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/lib*.so.*.*
142
143 %files devel
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_libdir}/lib*.so
146 %{_libdir}/libpcsc*.la
147 %{_includedir}/*.h
148
149 %files static
150 %defattr(644,root,root,755)
151 %{_libdir}/lib*.a
This page took 0.063342 seconds and 3 git commands to generate.