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)
8 Source0: https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2
9 # Source0-md5: bc4ebec11e1a7fb268eeff368e6ff037
10 URL: https://ccid.apdu.fr/
11 BuildRequires: libusb-devel >= 1.0.9
12 BuildRequires: pcsc-lite-devel >= 1.8.3
13 BuildRequires: perl-base
14 BuildRequires: pkgconfig
15 BuildRequires: rpmbuild(macros) >= 1.583
16 Requires: libusb >= 1.0.9
17 Requires: pcsc-lite >= 1.8.3
18 Provides: ccid = %{version}-%{release}
19 Obsoletes: ccid < 1.4.0-3
20 Obsoletes: udev-pcsc-driver-ccid
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define usbdropdir /usr/%{_lib}/pcsc/drivers
24 %define ccidtwindir /usr/%{_lib}/pcsc/drivers
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
30 This package provides generic USB CCID (Chip/Smart Card Interface
33 Full lists of supported devices are available here:
34 <https://ccid.apdu.fr/ccid/supported.html>
35 <https://ccid.apdu.fr/ccid/shouldwork.html>
37 %description -l pl.UTF-8
38 Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
41 Pełne listy obsługiwanych urządzeń są dostępne na WWW:
42 <https://ccid.apdu.fr/ccid/supported.html>
43 <https://ccid.apdu.fr/ccid/shouldwork.html>
46 Summary: Generic USB CCID driver for readers connected to serial port
47 Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy
49 Requires: pcsc-lite >= 1.8.3
52 Generic USB CCID driver for readers connected to serial port.
53 Supported CCID devices:
54 - Gemplus/Gemalto GemPC Twin
55 - Gemplus/Gemalto GemCore POS Pro
56 - Gemplus/Gemalto GemCore SIM Pro
57 - Gemalto GemPC PinPad
59 %description serial -l pl.UTF-8
60 Ogólny sterownik USB CCID dla czytników podłączonych przez port
61 szeregowy. Obsługiwane urządzenia CCID:
62 - Gemplus/Gemalto GemPC Twin
63 - Gemplus/Gemalto GemCore POS Pro
64 - Gemplus/Gemalto GemCore SIM Pro
65 - Gemalto GemPC PinPad
68 %setup -q -n ccid-%{version}
72 --disable-silent-rules \
73 --enable-ccidtwindir=%{ccidtwindir} \
75 --enable-usbdropdir=%{usbdropdir}
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
83 DESTDIR=$RPM_BUILD_ROOT
85 %{__make} -C src install_ccidtwin \
86 DESTDIR=$RPM_BUILD_ROOT
88 cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules
91 rm -rf $RPM_BUILD_ROOT
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
96 %dir %{usbdropdir}/ifd-ccid.bundle
97 %dir %{usbdropdir}/ifd-ccid.bundle/Contents
98 %{usbdropdir}/ifd-ccid.bundle/Contents/Info.plist
99 %dir %{usbdropdir}/ifd-ccid.bundle/Contents/Linux
100 %attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so*
101 /lib/udev/rules.d/70-pcscd_ccid.rules
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
106 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin
107 %attr(755,root,root) %{ccidtwindir}/libccidtwin.so*