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