blob: b900204f8b6bfaeedce2da752ca09449feecb900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
Summary: Generic USB CCID (Chip/Smart Card Interface Devices) driver
Summary(pl.UTF-8): Ogólny sterownik USB CCID (Chip/Smart Card Interface Devices)
Name: pcsc-driver-ccid
Version: 1.5.5
Release: 1
License: LGPL v2.1+
Group: Libraries
Source0: https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2
# Source0-md5: da78a5fa37e326988d85f3a0291c784e
URL: https://ccid.apdu.fr/
BuildRequires: flex
BuildRequires: libusb-devel >= 1.0.9
BuildRequires: pcsc-lite-devel >= 1.8.3
BuildRequires: perl-base
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.583
BuildRequires: zlib-devel >= 1.2.3.1
Requires: libusb >= 1.0.9
Requires: pcsc-lite >= 1.8.3
Provides: ccid = %{version}-%{release}
Obsoletes: ccid < 1.4.0-3
Obsoletes: udev-pcsc-driver-ccid < 1.4.30
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define usbdropdir /usr/%{_lib}/pcsc/drivers
%define ccidtwindir /usr/%{_lib}/pcsc/drivers
# pcscd provides log_msg and log_xxd functions
%define skip_post_check_so libccid.so.1.4.0 libccidtwin.so.1.4.0
%description
This package provides generic USB CCID (Chip/Smart Card Interface
Devices) driver.
Full lists of supported devices are available here:
<https://ccid.apdu.fr/ccid/supported.html>
<https://ccid.apdu.fr/ccid/shouldwork.html>
%description -l pl.UTF-8
Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
Interface Devices).
Pełne listy obsługiwanych urządzeń są dostępne na WWW:
<https://ccid.apdu.fr/ccid/supported.html>
<https://ccid.apdu.fr/ccid/shouldwork.html>
%package serial
Summary: Generic USB CCID driver for readers connected to serial port
Summary(pl.UTF-8): Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy
Group: Libraries
Requires: pcsc-lite >= 1.8.3
%description serial
Generic USB CCID driver for readers connected to serial port.
Supported CCID devices:
- Gemplus/Gemalto GemPC Twin
- Gemplus/Gemalto GemCore POS Pro
- Gemplus/Gemalto GemCore SIM Pro
- Gemalto GemPC PinPad
%description serial -l pl.UTF-8
Ogólny sterownik USB CCID dla czytników podłączonych przez port
szeregowy. Obsługiwane urządzenia CCID:
- Gemplus/Gemalto GemPC Twin
- Gemplus/Gemalto GemCore POS Pro
- Gemplus/Gemalto GemCore SIM Pro
- Gemalto GemPC PinPad
%prep
%setup -q -n ccid-%{version}
%build
%configure \
--disable-silent-rules \
--enable-ccidtwindir=%{ccidtwindir} \
--enable-twinserial \
--enable-usbdropdir=%{usbdropdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/lib/udev/rules.d
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%{__make} -C src install_ccidtwin \
DESTDIR=$RPM_BUILD_ROOT
cp -p src/92_pcscd_ccid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/70-pcscd_ccid.rules
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
%dir %{usbdropdir}/ifd-ccid.bundle
%dir %{usbdropdir}/ifd-ccid.bundle/Contents
%{usbdropdir}/ifd-ccid.bundle/Contents/Info.plist
%dir %{usbdropdir}/ifd-ccid.bundle/Contents/Linux
%attr(755,root,root) %{usbdropdir}/ifd-ccid.bundle/Contents/Linux/libccid.so*
/lib/udev/rules.d/70-pcscd_ccid.rules
%files serial
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README.md SCARDGETATTRIB.md readers/supported_readers.txt
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin
%attr(755,root,root) %{ccidtwindir}/libccidtwin.so*
|