]> git.pld-linux.org Git - packages/pcsc-driver-acsccid.git/blob - pcsc-driver-acsccid.spec
- new
[packages/pcsc-driver-acsccid.git] / pcsc-driver-acsccid.spec
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
4 Version:        1.0.8
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
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
17 BuildRequires:  unzip
18 Requires:       pcsc-lite >= 1.3.3
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         usbdropdir      /usr/%{_lib}/pcsc/drivers
22
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
25
26 %description
27 This package provides CCID (Chip/Smart Card Interface Devices) PC/SC
28 driver for ACS CCID smart card readers.
29
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.
33
34 %prep
35 %setup -q -n ACS-Unified-Driver-Lnx-Mac-108-P
36 tar xjf acsccid-%{version}.tar.bz2
37
38 %build
39 cd acsccid-%{version}
40 %configure \
41         --disable-silent-rules \
42         --enable-usbdropdir=%{usbdropdir}
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
48
49 %{__make} -C acsccid-%{version} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 cp -p acsccid-%{version}/src/92_pcscd_acsccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
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
This page took 0.089782 seconds and 4 git commands to generate.