]>
Commit | Line | Data |
---|---|---|
1 | Summary: Generic USB CCID (Chip/Smart Card Interface Devices) driver | |
2 | Summary(pl.UTF-8): Ogólny sterownik USB CCID (Chip/Smart Card Interface Devices) | |
3 | Name: pcsc-driver-ccid | |
4 | Version: 1.4.26 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | #Source0Download: https://alioth.debian.org/frs/?group_id=30105 | |
9 | Source0: https://alioth.debian.org/frs/download.php/file/4205/ccid-%{version}.tar.bz2 | |
10 | # Source0-md5: 852325456ad4db531c96c30b09fdd36f | |
11 | URL: http://pcsclite.alioth.debian.org/ccid.html | |
12 | BuildRequires: libusb-devel >= 1.0.9 | |
13 | BuildRequires: pcsc-lite-devel >= 1.8.3 | |
14 | BuildRequires: perl-base | |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: rpmbuild(macros) >= 1.583 | |
17 | Requires: libusb >= 1.0.9 | |
18 | Requires: pcsc-lite >= 1.8.3 | |
19 | Provides: ccid = %{version}-%{release} | |
20 | Obsoletes: ccid < 1.4.0-3 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define usbdropdir /usr/%{_lib}/pcsc/drivers | |
24 | %define ccidtwindir /usr/%{_lib}/pcsc/drivers | |
25 | ||
26 | # pcscd provides log_msg and log_xxd functions | |
27 | %define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0 | |
28 | ||
29 | %description | |
30 | This package provides generic USB CCID (Chip/Smart Card Interface | |
31 | Devices) driver. | |
32 | ||
33 | Full lists of supported devices are available here: | |
34 | <http://pcsclite.alioth.debian.org/supported.html> | |
35 | <http://pcsclite.alioth.debian.org/shouldwork.html> | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card | |
39 | Interface Devices). | |
40 | ||
41 | Pełne listy obsługiwanych urządzeń są dostępne na WWW: | |
42 | <http://pcsclite.alioth.debian.org/supported.html> | |
43 | <http://pcsclite.alioth.debian.org/shouldwork.html> | |
44 | ||
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 | ||
58 | %package serial | |
59 | Summary: Generic USB CCID driver for readers connected to serial port | |
60 | Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy | |
61 | Group: Libraries | |
62 | Requires: pcsc-lite >= 1.8.3 | |
63 | ||
64 | %description serial | |
65 | Generic USB CCID driver for readers connected to serial port. | |
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 | |
71 | ||
72 | %description serial -l pl.UTF-8 | |
73 | Ogólny sterownik USB CCID dla czytników podłączonych przez port | |
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 | |
79 | ||
80 | %prep | |
81 | %setup -q -n ccid-%{version} | |
82 | ||
83 | %build | |
84 | %configure \ | |
85 | --disable-silent-rules \ | |
86 | --enable-ccidtwindir=%{ccidtwindir} \ | |
87 | --enable-twinserial \ | |
88 | --enable-usbdropdir=%{usbdropdir} | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | install -d $RPM_BUILD_ROOT/lib/udev/rules.d | |
94 | ||
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} -C src install_ccidtwin \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %files | |
107 | %defattr(644,root,root,755) | |
108 | %doc AUTHORS ChangeLog README SCARDGETATTRIB.txt readers/supported_readers.txt | |
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 | |
113 | %attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so* | |
114 | ||
115 | %files -n udev-pcsc-driver-ccid | |
116 | %defattr(644,root,root,755) | |
117 | /lib/udev/rules.d/70-pcscd_ccid.rules | |
118 | ||
119 | %files serial | |
120 | %defattr(644,root,root,755) | |
121 | %doc AUTHORS ChangeLog README SCARDGETATTRIB.txt readers/supported_readers.txt | |
122 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin | |
123 | %attr(755,root,root) %{ccidtwindir}/libccidtwin.so* |