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