2007-01-16 00:29:24 +01:00
|
|
|
#
|
2009-08-08 00:11:51 +02:00
|
|
|
# spec file for package pcsc-ccid (Version 1.3.11)
|
2007-01-16 00:29:24 +01:00
|
|
|
#
|
2009-01-09 01:45:06 +01:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:29:24 +01:00
|
|
|
#
|
2008-09-13 06:53:17 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:29:24 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-04 01:40:26 +02:00
|
|
|
|
2007-01-16 00:29:24 +01:00
|
|
|
Name: pcsc-ccid
|
2009-04-15 00:15:36 +02:00
|
|
|
# pcsc-ccid can use libusb-1.0 interrupt transfers over libusb-0.1 API:
|
|
|
|
%define USE_LIBUSB1 0
|
2007-02-14 10:36:31 +01:00
|
|
|
%define _name ccid
|
2009-04-15 00:15:36 +02:00
|
|
|
BuildRequires: pcsc-lite-devel pkg-config
|
|
|
|
%if %USE_LIBUSB1
|
|
|
|
BuildRequires: libusb-compat-devel
|
|
|
|
Requires: libusb-1_0-features-in-0_1-api
|
|
|
|
%else
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
%endif
|
2009-08-08 00:11:51 +02:00
|
|
|
Version: 1.3.11
|
2009-04-15 00:15:36 +02:00
|
|
|
Release: 1
|
2008-04-04 01:40:26 +02:00
|
|
|
Group: Productivity/Security
|
|
|
|
License: LGPL v2.1 or later
|
|
|
|
Url: http://pcsclite.alioth.debian.org/ccid.html
|
2007-02-14 10:36:31 +01:00
|
|
|
Summary: PCSC Driver for CCID Based Smart Card Readers and GemPC Twin Serial Reader
|
|
|
|
Source: %{_name}-%{version}.tar.bz2
|
2007-01-16 00:29:24 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-15 00:15:36 +02:00
|
|
|
Requires: pcsc-lite
|
2007-02-14 10:36:31 +01:00
|
|
|
%define ifddir %(pkg-config libpcsclite --variable=usbdropdir)
|
2009-04-15 00:15:36 +02:00
|
|
|
%define LBRACE (
|
|
|
|
%define RBRACE )
|
|
|
|
%define QUOTE "
|
|
|
|
%define BACKSLASH \\
|
|
|
|
%define USBDRIVERS %(set -x ; bunzip2 <%{S:0} | tr a-z A-Z | sed -n 's/^SUBSYSTEMS=="USB", 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
|
2007-01-16 00:29:24 +01:00
|
|
|
|
|
|
|
%description
|
2007-02-14 10:36:31 +01:00
|
|
|
This package contains a generic USB CCID (Chip/Smart Card Interface
|
2008-09-13 06:53:17 +02:00
|
|
|
Devices) driver.
|
2007-01-16 00:29:24 +01:00
|
|
|
|
2008-09-13 06:53:17 +02:00
|
|
|
This driver is meant to be used with the PCSC-Lite daemon from the
|
2007-01-16 00:29:24 +01:00
|
|
|
pcsc-lite package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2007-02-14 10:36:31 +01:00
|
|
|
Ludovic Rousseau <ludovic.rousseau@free.fr>
|
|
|
|
Carlos Prados
|
|
|
|
Olaf Kirch
|
2007-01-16 00:29:24 +01:00
|
|
|
|
|
|
|
%prep
|
2007-02-14 10:36:31 +01:00
|
|
|
%setup -q -n %{_name}-%{version}
|
2007-07-27 02:03:53 +02:00
|
|
|
cp -a src/openct/LICENSE LICENSE.openct
|
|
|
|
cp -a src/towitoko/README README.towitoko
|
2007-01-16 00:29:24 +01:00
|
|
|
|
|
|
|
%build
|
2009-08-08 00:11:51 +02:00
|
|
|
%if %suse_version > 1100
|
2008-04-04 01:40:26 +02:00
|
|
|
./bootstrap
|
2009-01-09 01:45:06 +01:00
|
|
|
%endif
|
2007-02-14 10:36:31 +01:00
|
|
|
%configure\
|
2009-04-15 00:15:36 +02:00
|
|
|
--enable-twinserial
|
2007-02-14 10:36:31 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
2007-01-16 00:29:24 +01:00
|
|
|
|
|
|
|
%install
|
2007-02-14 10:36:31 +01:00
|
|
|
%makeinstall
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d
|
|
|
|
mv $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf.d/ccidtwin.conf
|
2007-07-27 02:03:53 +02:00
|
|
|
# Copied elsewhere:
|
|
|
|
rm $RPM_BUILD_ROOT%{_datadir}/doc/ccid/README_Kobil_mIDentity_switch.txt
|
|
|
|
rmdir $RPM_BUILD_ROOT%{_datadir}/doc/ccid
|
|
|
|
rmdir $RPM_BUILD_ROOT%{_datadir}/doc
|
2007-01-16 00:29:24 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
2007-02-14 10:36:31 +01:00
|
|
|
%defattr(-,root,root)
|
2007-07-27 02:03:53 +02:00
|
|
|
# NEWS is empty
|
|
|
|
%doc AUTHORS ChangeLog COPYING LICENSE.openct README README.towitoko contrib/Kobil_mIDentity_switch/README_Kobil_mIDentity_switch.txt SCARDGETATTRIB.txt
|
|
|
|
%{_bindir}/*
|
|
|
|
%doc %{_mandir}/man?/*.*
|
|
|
|
%{_sbindir}/*
|
2007-02-14 10:36:31 +01:00
|
|
|
%config (noreplace) %{_sysconfdir}/reader.conf.d/*.conf
|
|
|
|
%{ifddir}/*
|
2007-01-16 00:29:24 +01:00
|
|
|
|
2007-05-31 21:09:29 +02:00
|
|
|
%changelog
|