1 Summary: ACS CCID (Chip/Smart Card Interface Devices) PC/SC driver
2 Summary(pl.UTF-8): Sterownik PC/SC CCID (Chip/Smart Card Interface Devices) dla czytników ACS
3 Name: pcsc-driver-acsccid
8 # from e.g. http://www.acs.com.hk/en/driver/4/acr38-smart-card-reader/
9 # (the same Linux driver is used for multiple ACS card readers)
10 Source0: http://www.acs.com.hk/download-driver-unified/6258/ACS-Unified-Driver-Lnx-Mac-108-P.zip
11 # Source0-md5: 0b235156a66f280a81f949b0c9bb3052
12 URL: http://www.acs.com.hk/en/drivers/
13 BuildRequires: libusb-compat-devel >= 0.1
14 BuildRequires: pcsc-lite-devel >= 1.3.3
15 BuildRequires: pkgconfig
16 BuildRequires: rpmbuild(macros) >= 1.583
18 Requires: pcsc-lite >= 1.3.3
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define usbdropdir /usr/%{_lib}/pcsc/drivers
23 # pcscd provides log_msg and log_xxd functions
24 #define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0
27 This package provides CCID (Chip/Smart Card Interface Devices) PC/SC
28 driver for ACS CCID smart card readers.
30 %description -l pl.UTF-8
31 Ten pakiet zawiera sterownik PC/SC CCID (Chip/Smart Card Interface
32 Devices) dla czytników kart firmy ACS zgodnych z CCID.
35 %setup -q -n ACS-Unified-Driver-Lnx-Mac-108-P
36 tar xjf acsccid-%{version}.tar.bz2
41 --disable-silent-rules \
42 --enable-usbdropdir=%{usbdropdir}
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
49 %{__make} -C acsccid-%{version} install \
50 DESTDIR=$RPM_BUILD_ROOT
52 cp -p acsccid-%{version}/src/92_pcscd_acsccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc acsccid-%{version}/{AUTHORS,ChangeLog,README}
60 %dir %{usbdropdir}/ifd-acsccid.bundle
61 %dir %{usbdropdir}/ifd-acsccid.bundle/Contents
62 %{usbdropdir}/ifd-acsccid.bundle/Contents/Info.plist
63 %dir %{usbdropdir}/ifd-acsccid.bundle/Contents/Linux
64 %attr(755,root,root) %{usbdropdir}/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
65 /lib/udev/rules.d/92_pcscd_acsccid.rules