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