]> git.pld-linux.org Git - packages/pcsc-driver-ccid.git/blob - pcsc-driver-ccid.spec
up to 1.5.2
[packages/pcsc-driver-ccid.git] / pcsc-driver-ccid.spec
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)
3 Name:           pcsc-driver-ccid
4 Version:        1.5.2
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
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)
22
23 %define         usbdropdir      /usr/%{_lib}/pcsc/drivers
24 %define         ccidtwindir     /usr/%{_lib}/pcsc/drivers
25
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
28
29 %description
30 This package provides generic USB CCID (Chip/Smart Card Interface
31 Devices) driver.
32
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>
36
37 %description -l pl.UTF-8
38 Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
39 Interface Devices).
40
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>
44
45 %package serial
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
48 Group:          Libraries
49 Requires:       pcsc-lite >= 1.8.3
50
51 %description serial
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
58
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
66
67 %prep
68 %setup -q -n ccid-%{version}
69
70 %build
71 %configure \
72         --disable-silent-rules \
73         --enable-ccidtwindir=%{ccidtwindir} \
74         --enable-twinserial \
75         --enable-usbdropdir=%{usbdropdir}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT/lib/udev/rules.d
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %{__make} -C src install_ccidtwin \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
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
102
103 %files serial
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*
This page took 0.058226 seconds and 3 git commands to generate.