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