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