c80641672d
- Updated to version 1.4.26 * Add support of Bit4id Digital DNA Key Bit4id tokenME FIPS v3 INGENICO Leo appidkey GmbH ID60-USB * PowerOn: the default algorithm is now 5V then 1.8V then 3V then fail. It is still possible to change the initial voltage in the Info.plist file. Now, in any case, all the values are tried before failing. * Negotiate maximum baud rate when bNumDataRatesSupported = 0 * Some minor improvements OBS-URL: https://build.opensuse.org/request/show/449155 OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pcsc-ccid?expand=0&rev=71
95 lines
3.4 KiB
RPMSpec
95 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package pcsc-ccid
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
|
|
%define _udevrulesdir %{_libexecdir}/udev/rules.d
|
|
%else
|
|
%define _udevrulesdir /lib/udev/rules.d
|
|
%endif
|
|
|
|
Name: pcsc-ccid
|
|
%define _name ccid
|
|
Version: 1.4.26
|
|
Release: 0
|
|
Summary: PCSC Driver for CCID Based Smart Card Readers and GemPC Twin Serial Reader
|
|
License: LGPL-2.1+
|
|
Group: Productivity/Security
|
|
Url: http://pcsclite.alioth.debian.org/ccid.html
|
|
Source: %{_name}-%{version}.tar.bz2
|
|
Source1: %{name}-rpmlintrc
|
|
Source2: %{_name}-%{version}.tar.bz2.asc
|
|
Source3: %{name}.keyring
|
|
BuildRequires: automake
|
|
BuildRequires: libusb-1_0-devel
|
|
BuildRequires: pcsc-lite-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: udev
|
|
# openSUSE package pcsc-lite 1.6.6 is the first one which creates the scard UID and GID:
|
|
Requires: pcsc-lite >= 1.6.6
|
|
%define ifddir %(pkg-config libpcsclite --variable=usbdropdir)
|
|
%define LBRACE (
|
|
%define RBRACE )
|
|
%define QUOTE "
|
|
%define BACKSLASH \\
|
|
%define USBDRIVERS %(set -x ; bunzip2 <%{S:0} | tr a-z A-Z | sed -n 's/^ATTRS{IDVENDOR}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}, ATTRS{IDPRODUCT}==%{QUOTE}%{BACKSLASH}%{LBRACE}[^%{QUOTE}]*%{BACKSLASH}%{RBRACE}%{QUOTE}.*$/modalias%{LBRACE}usb:v%{BACKSLASH}1p%{BACKSLASH}2d*dc*dsc*dp*ic*isc*ip*%{RBRACE}/p' | tr '%{BACKSLASH}n' ' ')
|
|
# We are not using Supplements here. User may want to choose between pcsc-lite and openct:
|
|
# Generic CCID devices:
|
|
Enhances: modalias(usb:*ic0Bisc00d*dc*dsc*dp*ic*isc*ip*)
|
|
# Kobil mIDentity:
|
|
Enhances: modalias(usb:v0D46p4081d*dc*dsc*dp*ic*isc*ip*)
|
|
# Other supported devices:
|
|
Enhances: %USBDRIVERS
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains a generic USB CCID (Chip/Smart Card Interface
|
|
Devices) driver.
|
|
|
|
This driver is meant to be used with the PCSC-Lite daemon from the
|
|
pcsc-lite package.
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version}
|
|
cp -a src/openct/LICENSE LICENSE.openct
|
|
cp -a src/towitoko/README README.towitoko
|
|
|
|
%build
|
|
# not needed ATM
|
|
#./bootstrap
|
|
%configure\
|
|
--enable-twinserial \
|
|
--enable-serialconfdir=%{_sysconfdir}/reader.conf.d/
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
# Copied elsewhere:
|
|
mkdir -p %{buildroot}/%{_udevrulesdir}
|
|
sed 's:GROUP="pcscd":GROUP="scard":' <src/92_pcscd_ccid.rules >%{buildroot}/%{_udevrulesdir}/92_pcscd_ccid.rules
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
# NEWS is empty
|
|
%doc AUTHORS ChangeLog COPYING LICENSE.openct README README.towitoko contrib/Kobil_mIDentity_switch/README_Kobil_mIDentity_switch.txt SCARDGETATTRIB.txt
|
|
%config (noreplace) %{_sysconfdir}/reader.conf.d/*
|
|
%{ifddir}/*
|
|
%{_udevrulesdir}/*.rules
|
|
|
|
%changelog
|