LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pcsc-acsccid.spec of Package pcsc-acsccid (Project security:chipcard)

#
# spec file for package pcsc-acsccid
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Advanced Card Systems Ltd.
#
# 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 0%{?suse_version} >= 1140
%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif
%endif

Name:           pcsc-acsccid
%define _name acsccid
BuildRequires:  flex
BuildRequires:  libusb-devel
BuildRequires:  pcsc-lite-devel
BuildRequires:  pkg-config
%if 0%{?suse_version} >= 1140
BuildRequires:  udev
%endif
Version:        1.0.4
Release:        0
Url:            http://acsccid.sourceforge.net/
Summary:        PCSC Driver for ACS CCID Based Smart Card Readers
License:        LGPL-2.1+
Group:          Productivity/Security
Source:         http://downloads.sourceforge.net/%{_name}/%{_name}-%{version}.tar.bz2
Source1:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       pcsc-lite >= 1.3.3
%define ifddir %(pkg-config libpcsclite --variable=usbdropdir)

Enhances:       modalias(usb:v072fp8300d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8302d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8307d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8301d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90ccd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90d8d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fpb100d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fpb101d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fpb102d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fpb103d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fpb104d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90d2d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8306d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2011d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8900d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8901d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8902d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp1205d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp1204d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp1206d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2200d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2214d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp1280d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2207d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp222bd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2206d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2203d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp221ad*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2229d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp222dd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2100d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2224d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp220fd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2223d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2208d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp0901d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp220ad*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2215d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2220d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp2213d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp222cd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp220cd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp0102d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp0103d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp0100d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8201d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp8202d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90dbd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp9000d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90cfd*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp0101d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp9006d*dc*dsc*dp*ic*isc*ip*)
Enhances:       modalias(usb:v072fp90ced*dc*dsc*dp*ic*isc*ip*)

%description
This package contains a ACS 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
%configure --enable-composite-as-multislot
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} >= 1140
mkdir -p $RPM_BUILD_ROOT/%{_udevrulesdir}
sed 's:GROUP="pcscd":GROUP="scard":' <src/92_pcscd_acsccid.rules >$RPM_BUILD_ROOT/%{_udevrulesdir}/92_pcscd_acsccid.rules
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS ChangeLog COPYING LICENSE.openct README README.towitoko
%{ifddir}/*
%if 0%{?suse_version} >= 1140
%{_udevrulesdir}/*.rules
%endif

%changelog