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 #Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=30105
9 Source0: http://alioth.debian.org/frs/download.php/3579/ccid-%{version}.tar.bz2
10 # Source0-md5: 79ef91103bcdd99a3b31cb5c5721a829
11 URL: http://pcsclite.alioth.debian.org/ccid.html
12 BuildRequires: libusb-devel >= 1.0
13 BuildRequires: pcsc-lite-devel >= 1.6.5
14 BuildRequires: perl-base
15 BuildRequires: pkgconfig
16 BuildRequires: rpmbuild(macros) >= 1.583
17 Requires: pcsc-lite >= 1.6.5
18 Provides: ccid = %{version}-%{release}
19 Obsoletes: ccid < 1.4.0-3
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define usbdropdir /usr/%{_lib}/pcsc/drivers
23 %define ccidtwindir /usr/%{_lib}/pcsc/drivers
25 # pcscd provides log_msg and log_xxd functions
26 %define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0
29 This package provides generic USB CCID (Chip/Smart Card Interface
32 Full lists of supported devices are available here:
33 <http://pcsclite.alioth.debian.org/supported.html>
34 <http://pcsclite.alioth.debian.org/shouldwork.html>
36 %description -l pl.UTF-8
37 Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
40 Pełne listy obsługiwanych urządzeń są dostępne na WWW:
41 <http://pcsclite.alioth.debian.org/supported.html>
42 <http://pcsclite.alioth.debian.org/shouldwork.html>
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
48 Requires: %{name} = %{version}-%{release}
51 %description -n udev-pcsc-driver-ccid
52 udev support for CCID PC/SC driver.
54 %description -n udev-pcsc-driver-ccid -l pl.UTF-8
55 Obsługa udev dla sterownika PC/SC CCID.
58 Summary: Generic USB CCID driver for readers connected to serial port
59 Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy
61 Requires: pcsc-lite >= 1.6.5
64 Generic USB CCID driver for readers connected to serial port.
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
71 %description serial -l pl.UTF-8
72 Ogólny sterownik USB CCID dla czytników podłączonych przez port
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
80 %setup -q -n ccid-%{version}
84 --enable-ccidtwindir=%{ccidtwindir} \
86 --enable-usbdropdir=%{usbdropdir}
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
94 DESTDIR=$RPM_BUILD_ROOT
96 %{__make} -C src install_ccidtwin \
97 DESTDIR=$RPM_BUILD_ROOT
99 cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules
102 rm -rf $RPM_BUILD_ROOT
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog README SCARDGETATTRIB.txt readers/supported_readers.txt
107 %dir %{usbdropdir}/ifd-ccid.bundle
108 %dir %{usbdropdir}/ifd-ccid.bundle/Contents
109 %{usbdropdir}/ifd-ccid.bundle/Contents/Info.plist
110 %dir %{usbdropdir}/ifd-ccid.bundle/Contents/Linux
111 %attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so*
113 %files -n udev-pcsc-driver-ccid
114 %defattr(644,root,root,755)
115 /lib/udev/rules.d/70-pcscd_ccid.rules
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog README SCARDGETATTRIB.txt readers/supported_readers.txt
120 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin
121 %attr(755,root,root) %{ccidtwindir}/libccidtwin.so*