]>
Commit | Line | Data |
---|---|---|
de6d008b | 1 | Summary: OpenCT library - library for accessing smart card terminals |
0e35976a | 2 | Summary(pl.UTF-8): OpenCT - biblioteka dostępu do terminali kart procesorowych |
de6d008b | 3 | Name: openct |
cc58fdf7 | 4 | Version: 0.6.15 |
49d5d884 | 5 | Release: 3 |
ee3a5999 | 6 | License: LGPL v2.1+ |
0feefd78 | 7 | Group: Applications/System |
666ad101 | 8 | Source0: http://www.opensc-project.org/files/openct/%{name}-%{version}.tar.gz |
cc58fdf7 | 9 | # Source0-md5: 70205beac03974e266fc259b6c9feaa8 |
7b653b6d | 10 | Source1: %{name}.init |
b87c35c9 | 11 | Source2: %{name}-initramfs-hook |
666ad101 | 12 | URL: http://www.opensc-project.org/openct/ |
6e2a3bd6 | 13 | BuildRequires: autoconf >= 2.52 |
de6d008b | 14 | BuildRequires: automake |
8d7a69f6 | 15 | BuildRequires: libltdl-devel |
d288c1c9 | 16 | BuildRequires: libtool |
de6d008b AF |
17 | BuildRequires: libusb-devel |
18 | BuildRequires: pcsc-lite-devel | |
4556ff6a | 19 | BuildRequires: pkgconfig >= 1:0.9.0 |
7b653b6d | 20 | Requires(post,preun): /sbin/chkconfig |
2af6f3d1 | 21 | Requires(pre): /bin/id |
14733865 | 22 | Requires(pre): /usr/sbin/useradd |
2af6f3d1 | 23 | Requires(postun): /usr/sbin/userdel |
cda08749 | 24 | Requires: %{name}-libs = %{version}-%{release} |
de6d008b AF |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
1dcb98ea JB |
28 | OpenCT is a library for accessing smart card terminals. It provides a |
29 | rich set of functions for driver writers, protocol drivers for T=0 and | |
30 | T=1, serial and USB functionality, including USB hotplugging. | |
31 | ||
3c69b6aa JR |
32 | %description -l pl.UTF-8 |
33 | OpenCT to biblioteka służąca do dostępu do terminali kart | |
34 | procesorowych (smart card). Dostarcza bogaty zbiór funkcji dla | |
35 | piszących sterowniki, sterowniki protokołów dla T=0 i T=1, | |
36 | funkcjonalność dla portów szeregowych i USB, włącznie z podłączaniem | |
37 | urządzeń USB w locie (hotplug). | |
de6d008b | 38 | |
49d5d884 AM |
39 | %package -n hal-openct |
40 | Summary: hal integration for OpenCT | |
41 | Summary(pl.UTF-8): Integracja OpenCT z hal | |
42 | Group: Applications/System | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: udev-core | |
45 | ||
46 | %description -n hal-openct | |
47 | hal integration for OpenCT. | |
48 | ||
49 | %description -n hal-openct -l pl.UTF-8 | |
50 | Integracja OpenCT z hal. | |
51 | ||
0feefd78 JB |
52 | %package -n udev-openct |
53 | Summary: udev integration for OpenCT | |
54 | Summary(pl.UTF-8): Integracja OpenCT z udevem | |
55 | Group: Applications/System | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | Requires: udev-core | |
58 | ||
59 | %description -n udev-openct | |
60 | udev integration for OpenCT. | |
61 | ||
62 | %description -n udev-openct -l pl.UTF-8 | |
63 | Integracja OpenCT z udevem. | |
64 | ||
1d9b4a6a JB |
65 | %package -n pcsc-driver-openct |
66 | Summary: OpenCT driver for PC/SC | |
0e35976a | 67 | Summary(pl.UTF-8): Sterownik OpenCT dla PC/SC |
1d9b4a6a JB |
68 | Group: Libraries |
69 | Requires: %{name} = %{version}-%{release} | |
70 | Requires: pcsc-lite | |
71 | ||
72 | %description -n pcsc-driver-openct | |
73 | OpenCT driver for PC/SC. | |
74 | ||
3c69b6aa | 75 | %description -n pcsc-driver-openct -l pl.UTF-8 |
1d9b4a6a JB |
76 | Sterownik OpenCT dla PC/SC. |
77 | ||
cda08749 | 78 | %package libs |
79 | Summary: OpenCT library | |
0e35976a | 80 | Summary(pl.UTF-8): Biblioteka OpenCT |
0feefd78 | 81 | License: BSD (libopenct), LGPL v2.1+ (the rest) |
cda08749 | 82 | Group: Libraries |
841493e1 | 83 | Conflicts: openct < 0.6.2-3 |
cda08749 | 84 | |
85 | %description libs | |
86 | OpenCT library. | |
87 | ||
3c69b6aa | 88 | %description libs -l pl.UTF-8 |
cda08749 | 89 | Biblioteka OpenCT. |
90 | ||
de6d008b AF |
91 | %package devel |
92 | Summary: OpenCT development files | |
0e35976a | 93 | Summary(pl.UTF-8): Pliki dla programistów używających OpenCT |
df918352 | 94 | License: BSD |
1dcb98ea | 95 | Group: Development/Libraries |
cda08749 | 96 | Requires: %{name}-libs = %{version}-%{release} |
de6d008b AF |
97 | |
98 | %description devel | |
99 | OpenSC development files. | |
100 | ||
3c69b6aa JR |
101 | %description devel -l pl.UTF-8 |
102 | Pliki dla programistów używających OpenCT. | |
de6d008b AF |
103 | |
104 | %package static | |
105 | Summary: Static OpenCT libraries | |
0e35976a | 106 | Summary(pl.UTF-8): Bibloteki statyczne OpenCT |
df918352 | 107 | License: BSD |
1dcb98ea | 108 | Group: Development/Libraries |
a9278f67 | 109 | Requires: %{name}-devel = %{version}-%{release} |
de6d008b AF |
110 | |
111 | %description static | |
112 | Static OpenCT libraries. | |
113 | ||
3c69b6aa | 114 | %description static -l pl.UTF-8 |
de6d008b AF |
115 | Statyczne biblioteki OpenCT. |
116 | ||
117 | %prep | |
118 | %setup -q | |
119 | ||
120 | %build | |
c4c47e98 | 121 | touch config.rpath |
d288c1c9 | 122 | %{__libtoolize} |
cc58fdf7 | 123 | %{__aclocal} -I m4 |
d288c1c9 | 124 | %{__autoconf} |
125 | %{__autoheader} | |
126 | %{__automake} | |
1d9b4a6a | 127 | %configure \ |
0feefd78 | 128 | --disable-rpath \ |
cc58fdf7 | 129 | --enable-api-doc \ |
0feefd78 | 130 | --enable-non-privileged \ |
cc58fdf7 | 131 | --enable-pcsc \ |
cc58fdf7 AM |
132 | --enable-sunray \ |
133 | --enable-sunrayclient \ | |
0feefd78 | 134 | --enable-usb \ |
cc58fdf7 | 135 | --with-apidocdir \ |
0feefd78 JB |
136 | --with-bundle=%{_libdir}/pcsc/drivers \ |
137 | --with-ifddir \ | |
49d5d884 | 138 | --with-udev=/lib/udev |
de6d008b AF |
139 | %{__make} |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
49d5d884 | 143 | install -d $RPM_BUILD_ROOT{/var/run/openct,/etc/{rc.d/init.d,udev/rules.d},/usr/share/hal/fdi/information/10freedesktop} |
de6d008b AF |
144 | |
145 | %{__make} install \ | |
146 | DESTDIR=$RPM_BUILD_ROOT | |
147 | ||
1dcb98ea | 148 | install etc/openct.conf $RPM_BUILD_ROOT%{_sysconfdir} |
49d5d884 AM |
149 | install etc/openct.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-openct.fdi |
150 | install etc/openct.hald $RPM_BUILD_ROOT%{_bindir}/hald-addon-openct | |
151 | install etc/openct.udev $RPM_BUILD_ROOT/etc/udev/rules.d/50-openct.rules | |
152 | ||
7b653b6d | 153 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/openct |
1dcb98ea | 154 | |
6bd39254 | 155 | rm -f $RPM_BUILD_ROOT%{_libdir}/openct-*.{a,la} |
de6d008b AF |
156 | |
157 | %clean | |
158 | rm -rf $RPM_BUILD_ROOT | |
159 | ||
14733865 | 160 | %pre |
b9056c74 | 161 | %useradd -u 208 -d %{_datadir}/empty -c "openctd User" -g usb openctd |
14733865 | 162 | |
bf2e5bff | 163 | %post |
7b653b6d | 164 | /sbin/chkconfig --add openct |
165 | if [ -f /var/lock/subsys/openct ]; then | |
166 | /etc/rc.d/init.d/openct restart >&2 | |
167 | else | |
168 | echo "Run \"/etc/rc.d/init.d/openct start\" to start openct." | |
bf2e5bff | 169 | fi |
170 | ||
7b653b6d | 171 | %preun |
172 | if [ "$1" = "0" ]; then | |
173 | if [ -f /var/lock/subsys/openct ]; then | |
174 | /etc/rc.d/init.d/openct stop >&2 | |
175 | fi | |
176 | /sbin/chkconfig --del openct | |
177 | fi | |
cda08749 | 178 | |
14733865 AM |
179 | %postun |
180 | if [ "$1" = "0" ]; then | |
181 | %userremove openctd | |
182 | fi | |
183 | ||
cda08749 | 184 | %post libs -p /sbin/ldconfig |
185 | %postun libs -p /sbin/ldconfig | |
de6d008b AF |
186 | |
187 | %files | |
188 | %defattr(644,root,root,755) | |
cc58fdf7 | 189 | %doc NEWS TODO doc/nonpersistent/ChangeLog doc/nonpersistent/wiki.out/*.{html,css} |
de6d008b | 190 | %attr(755,root,root) %{_bindir}/openct-tool |
de6d008b | 191 | %attr(755,root,root) %{_sbindir}/ifdhandler |
1d9b4a6a | 192 | %attr(755,root,root) %{_sbindir}/ifdproxy |
de6d008b | 193 | %attr(755,root,root) %{_sbindir}/openct-control |
1d9b4a6a | 194 | %dir /var/run/openct |
841493e1 | 195 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/openct.conf |
7b653b6d | 196 | %attr(754,root,root) /etc/rc.d/init.d/openct |
2504adee | 197 | %{_mandir}/man1/openct-tool.1* |
de6d008b | 198 | |
0feefd78 JB |
199 | %files -n udev-openct |
200 | %defattr(644,root,root,755) | |
49d5d884 AM |
201 | %attr(755,root,root) /lib/udev/openct_pcmcia |
202 | %attr(755,root,root) /lib/udev/openct_serial | |
203 | %attr(755,root,root) /lib/udev/openct_usb | |
204 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/50-openct.rules | |
205 | ||
206 | %files -n hal-openct | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_bindir}/hald-addon-openct | |
209 | %{_datadir}/hal/fdi/information/10freedesktop/10-usb-openct.fdi | |
0feefd78 | 210 | |
1d9b4a6a JB |
211 | %files -n pcsc-driver-openct |
212 | %defattr(644,root,root,755) | |
213 | %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle | |
214 | %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents | |
215 | %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux | |
841493e1 | 216 | %attr(755,root,root) %dir %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Linux/openct-ifd.so |
1d9b4a6a JB |
217 | %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/Info.plist |
218 | %{_libdir}/pcsc/drivers/openct-ifd.bundle/Contents/PkgInfo | |
219 | ||
bf2477bb | 220 | %files libs |
221 | %defattr(644,root,root,755) | |
2504adee | 222 | %attr(755,root,root) %{_libdir}/libopenct.so.*.*.* |
0feefd78 | 223 | %attr(755,root,root) %ghost %{_libdir}/libopenct.so.1 |
bf2477bb | 224 | %attr(755,root,root) %{_libdir}/libopenctapi.so |
225 | %attr(755,root,root) %{_libdir}/openct-ifd.so | |
226 | ||
de6d008b AF |
227 | %files devel |
228 | %defattr(644,root,root,755) | |
cc58fdf7 | 229 | %doc doc/api.out/html/* |
1cf4ab81 | 230 | %attr(755,root,root) %{_libdir}/libopenct.so |
2504adee JB |
231 | %{_libdir}/libopenct.la |
232 | %{_libdir}/libopenctapi.la | |
de6d008b | 233 | %{_includedir}/openct |
2504adee | 234 | %{_pkgconfigdir}/libopenct.pc |
de6d008b AF |
235 | |
236 | %files static | |
237 | %defattr(644,root,root,755) | |
2504adee JB |
238 | %{_libdir}/libopenct.a |
239 | %{_libdir}/libopenctapi.a |