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: da78a5fa37e326988d85f3a0291c784e
10 URL: https://ccid.apdu.fr/
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 BuildRequires: zlib-devel >= 1.2.3.1
18 Requires: libusb >= 1.0.9
19 Requires: pcsc-lite >= 1.8.3
20 Provides: ccid = %{version}-%{release}
21 Obsoletes: ccid < 1.4.0-3
22 Obsoletes: udev-pcsc-driver-ccid < 1.4.30
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define usbdropdir /usr/%{_lib}/pcsc/drivers
26 %define ccidtwindir /usr/%{_lib}/pcsc/drivers
28 # pcscd provides log_msg and log_xxd functions
29 %define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0
32 This package provides generic USB CCID (Chip/Smart Card Interface
35 Full lists of supported devices are available here:
36 <https://ccid.apdu.fr/ccid/supported.html>
37 <https://ccid.apdu.fr/ccid/shouldwork.html>
39 %description -l pl.UTF-8
40 Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
43 Pełne listy obsługiwanych urządzeń są dostępne na WWW:
44 <https://ccid.apdu.fr/ccid/supported.html>
45 <https://ccid.apdu.fr/ccid/shouldwork.html>
48 Summary: Generic USB CCID driver for readers connected to serial port
49 Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy
51 Requires: pcsc-lite >= 1.8.3
54 Generic USB CCID driver for readers connected to serial port.
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
61 %description serial -l pl.UTF-8
62 Ogólny sterownik USB CCID dla czytników podłączonych przez port
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
70 %setup -q -n ccid-%{version}
74 --disable-silent-rules \
75 --enable-ccidtwindir=%{ccidtwindir} \
77 --enable-usbdropdir=%{usbdropdir}
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
85 DESTDIR=$RPM_BUILD_ROOT
87 %{__make} -C src install_ccidtwin \
88 DESTDIR=$RPM_BUILD_ROOT
90 cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
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
102 %attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so*
103 /lib/udev/rules.d/70-pcscd_ccid.rules
106 %defattr(644,root,root,755)
107 %doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
108 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin
109 %attr(755,root,root) %{ccidtwindir}/libccidtwin.so*