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