]>
Commit | Line | Data |
---|---|---|
7bc5a12f | 1 | Summary: Generic USB CCID (Chip/Smart Card Interface Devices) driver |
6a13b9c3 | 2 | Summary(pl.UTF-8): Ogólny sterownik USB CCID (Chip/Smart Card Interface Devices) |
7bc5a12f | 3 | Name: pcsc-driver-ccid |
2df556ca | 4 | Version: 1.5.5 |
2a628a57 | 5 | Release: 1 |
5dea1863 | 6 | License: LGPL v2.1+ |
7bc5a12f | 7 | Group: Libraries |
3f91abea | 8 | Source0: https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2 |
2df556ca | 9 | # Source0-md5: da78a5fa37e326988d85f3a0291c784e |
3f91abea | 10 | URL: https://ccid.apdu.fr/ |
b37123cd | 11 | BuildRequires: flex |
0c897b04 | 12 | BuildRequires: libusb-devel >= 1.0.9 |
3da5d6dd | 13 | BuildRequires: pcsc-lite-devel >= 1.8.3 |
cf1c6245 | 14 | BuildRequires: perl-base |
33358eea | 15 | BuildRequires: pkgconfig |
a95a13b6 | 16 | BuildRequires: rpmbuild(macros) >= 1.583 |
b37123cd | 17 | BuildRequires: zlib-devel >= 1.2.3.1 |
0c897b04 | 18 | Requires: libusb >= 1.0.9 |
3da5d6dd | 19 | Requires: pcsc-lite >= 1.8.3 |
25fcfc71 ER |
20 | Provides: ccid = %{version}-%{release} |
21 | Obsoletes: ccid < 1.4.0-3 | |
cfe92215 | 22 | Obsoletes: udev-pcsc-driver-ccid < 1.4.30 |
7bc5a12f JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
28bccec9 JB |
25 | %define usbdropdir /usr/%{_lib}/pcsc/drivers |
26 | %define ccidtwindir /usr/%{_lib}/pcsc/drivers | |
7bc5a12f | 27 | |
cf1c6245 | 28 | # pcscd provides log_msg and log_xxd functions |
a95a13b6 ER |
29 | %define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0 |
30 | ||
7bc5a12f JB |
31 | %description |
32 | This package provides generic USB CCID (Chip/Smart Card Interface | |
b0f2b2a7 JB |
33 | Devices) driver. |
34 | ||
35 | Full lists of supported devices are available here: | |
3f91abea JB |
36 | <https://ccid.apdu.fr/ccid/supported.html> |
37 | <https://ccid.apdu.fr/ccid/shouldwork.html> | |
7bc5a12f | 38 | |
943f428d JR |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card | |
b0f2b2a7 JB |
41 | Interface Devices). |
42 | ||
43 | Pełne listy obsługiwanych urządzeń są dostępne na WWW: | |
3f91abea JB |
44 | <https://ccid.apdu.fr/ccid/supported.html> |
45 | <https://ccid.apdu.fr/ccid/shouldwork.html> | |
98b7d728 | 46 | |
7bc5a12f JB |
47 | %package serial |
48 | Summary: Generic USB CCID driver for readers connected to serial port | |
6a13b9c3 | 49 | Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy |
7bc5a12f | 50 | Group: Libraries |
3da5d6dd | 51 | Requires: pcsc-lite >= 1.8.3 |
7bc5a12f JB |
52 | |
53 | %description serial | |
54 | Generic USB CCID driver for readers connected to serial port. | |
b0f2b2a7 JB |
55 | Supported CCID devices: |
56 | - Gemplus/Gemalto GemPC Twin | |
57 | - Gemplus/Gemalto GemCore POS Pro | |
58 | - Gemplus/Gemalto GemCore SIM Pro | |
59 | - Gemalto GemPC PinPad | |
7bc5a12f | 60 | |
943f428d JR |
61 | %description serial -l pl.UTF-8 |
62 | Ogólny sterownik USB CCID dla czytników podłączonych przez port | |
b0f2b2a7 JB |
63 | szeregowy. Obsługiwane urządzenia CCID: |
64 | - Gemplus/Gemalto GemPC Twin | |
65 | - Gemplus/Gemalto GemCore POS Pro | |
66 | - Gemplus/Gemalto GemCore SIM Pro | |
67 | - Gemalto GemPC PinPad | |
7bc5a12f JB |
68 | |
69 | %prep | |
70 | %setup -q -n ccid-%{version} | |
71 | ||
72 | %build | |
73 | %configure \ | |
496a9298 | 74 | --disable-silent-rules \ |
33358eea JB |
75 | --enable-ccidtwindir=%{ccidtwindir} \ |
76 | --enable-twinserial \ | |
bea9ad94 | 77 | --enable-usbdropdir=%{usbdropdir} |
7bc5a12f JB |
78 | %{__make} |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
d7e3ed31 | 82 | install -d $RPM_BUILD_ROOT/lib/udev/rules.d |
7bc5a12f JB |
83 | |
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} -C src install_ccidtwin \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
bea9ad94 | 90 | cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules |
34bfc48f | 91 | |
7bc5a12f JB |
92 | %clean |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
2a628a57 | 97 | %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt |
7bc5a12f JB |
98 | %dir %{usbdropdir}/ifd-ccid.bundle |
99 | %dir %{usbdropdir}/ifd-ccid.bundle/Contents | |
100 | %{usbdropdir}/ifd-ccid.bundle/Contents/Info.plist | |
101 | %dir %{usbdropdir}/ifd-ccid.bundle/Contents/Linux | |
519c436c | 102 | %attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so* |
d7e3ed31 | 103 | /lib/udev/rules.d/70-pcscd_ccid.rules |
7bc5a12f JB |
104 | |
105 | %files serial | |
106 | %defattr(644,root,root,755) | |
2a628a57 | 107 | %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt |
5b66c75d | 108 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin |
519c436c | 109 | %attr(755,root,root) %{ccidtwindir}/libccidtwin.so* |