]> git.pld-linux.org Git - packages/pcsc-driver-ccid.git/blobdiff - pcsc-driver-ccid.spec
- new URLs, updated to 1.4.30
[packages/pcsc-driver-ccid.git] / pcsc-driver-ccid.spec
index 89a46628953508eabc4b27276be9745b3f44ea09..514d4e83f280885855eb54e83eba232d6dd068df 100644 (file)
@@ -1,69 +1,83 @@
 Summary:       Generic USB CCID (Chip/Smart Card Interface Devices) driver
-Summary(pl):   Ogólny sterownik USB CCID (Chip/Smart Card Interface Devices)
+Summary(pl.UTF-8):     Ogólny sterownik USB CCID (Chip/Smart Card Interface Devices)
 Name:          pcsc-driver-ccid
-Version:       0.4.1
+Version:       1.4.30
 Release:       1
-License:       GPL
+License:       LGPL v2.1+
 Group:         Libraries
-#Source0Download: http://alioth.debian.org/project/showfiles.php?group_id=1225
-Source0:       http://alioth.debian.org/download.php/501/ccid-%{version}.tar.gz
-# Source0-md5: dbe00b32b018a96e7eecb832cf6d1adf
-URL:           http://pcsclite.alioth.debian.org/ccid.html
-BuildRequires: libusb-devel >= 0.1.7
-BuildRequires: pcsc-lite-devel
-Requires:      pcsc-lite
+Source0:       https://ccid.apdu.fr/files/ccid-%{version}.tar.bz2
+# Source0-md5: 817abceef715e02cb47617621fe192e0
+URL:           https://ccid.apdu.fr/
+BuildRequires: libusb-devel >= 1.0.9
+BuildRequires: pcsc-lite-devel >= 1.8.3
+BuildRequires: perl-base
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.583
+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
 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. Supported CCID readers:
-- Gemplus: GemPC 433 SL, GemPC Key, GemPC Twin
-- C3PO LTC31
-- OmniKey CardMan 3121
-- SCM Micro: SCR 331, SCR 335, SCR 331-DI, SPR 532
-- ActivCard USB reader 2.0
-- Silitek SK-3105 keyboard
-
-%description -l pl
-Ten pakiet zawiera ogólny sterownik USB CCID (Chip/Smart Card
-Interface Devices). Obs³ugiwane czytniki CCID:
-- Gemplus: GemPC 433 SL, GemPC Key, GemPC Twin
-- C3PO LTC31
-- OmniKey CardMan 3121
-- SCM Micro: SCR 331, SCR 335, SCR 331-DI, SPR 532
-- ActivCard USB reader 2.0
-- klawiatura Silitek SK-3105
+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):   Ogólny sterownik USB CCID dla czytników pod³±czonych przez port szeregowy
+Summary(pl.UTF-8):     Ogólny sterownik USB CCID dla czytników podłączonych przez port szeregowy
 Group:         Libraries
-Requires:      pcsc-lite
+Requires:      pcsc-lite >= 1.8.3
 
 %description serial
 Generic USB CCID driver for readers connected to serial port.
-Supported CCID readers:
-- Gemplus GemPC Twin
+Supported CCID devices:
+- Gemplus/Gemalto GemPC Twin
+- Gemplus/Gemalto GemCore POS Pro
+- Gemplus/Gemalto GemCore SIM Pro
+- Gemalto GemPC PinPad
 
-%description serial -l pl
-Ogólny sterownik USB CCID dla czytników pod³±czonych przez port
-szeregowy. Obs³ugiwane czytniki CCID:
-- Gemplus GemPC Twin
+%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 \
-       --enable-usbdropdir=%{usbdropdir} \
-       --enable-ccidtwindir=%{ccidtwindir}
+       --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
@@ -71,21 +85,23 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} -C src install_ccidtwin \
        DESTDIR=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf .
+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 readers/*.txt
+%doc AUTHORS ChangeLog README SCARDGETATTRIB.txt 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.*.*.*
+%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 readers/GemPCTwin.txt readers/supported_readers.txt reader.conf
-%attr(755,root,root) %{ccidtwindir}/libccidtwin.so.*
+%doc AUTHORS ChangeLog README SCARDGETATTRIB.txt readers/supported_readers.txt
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/reader.conf.d/libccidtwin
+%attr(755,root,root) %{ccidtwindir}/libccidtwin.so*
This page took 0.035544 seconds and 4 git commands to generate.