File pcsc-eco5000.spec of Package pcsc-eco5000

#
# spec file for package pcsc-eco5000 (Version 1.2.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           pcsc-eco5000
%define _name eco5000
BuildRequires:  pcsc-lite-devel pkg-config
Version:        1.2.0
Release:        2
Group:          Productivity/Security
License:        GPL v2 or later
Url:            http://www.cardcontact.de/download/driverdownload.html
Summary:        PC/SC IFD Handler for the ECO 5000 Serial Smart Card Reader
Source:         %{_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define ifddir %(pkg-config --variable=usbdropdir libpcsclite)

%description
The lowest driver level is the ECO 5000 CT-API Driver that exposes a
common CT-API interface. This interface allows access to the terminal
using the Card Terminal Basic Command Set (CT-BCS). This layer also
includes the support for memory cards, exposed as Interindustry Command
Set for Synchronous Cards.

The CT-API driver supports the IFD Handler interface from PC/SC, that
is required for the PC/SC implementation in M.U.S.C.L.E.

Please take a look in the included README document for further
information.

This driver only works with the serial interface version of the ECO
5000. ORGA also sells a USB version, that is incompatible with the
serial version. This driver will not work with the USB version!



Authors:
--------
    Frank Thater <frank@thater-online.de>
    Andreas Schwier <andreas.schwier@cardcontact.de>

%prep
%setup -q -n %{_name}-%{version}

%build
autoreconf -f -i
%configure\
	--libdir=%{ifddir}\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{ifddir}/*.la
# Unwanted generic header:
rm $RPM_BUILD_ROOT%{_includedir}/ctapi.h
rmdir $RPM_BUILD_ROOT%{_includedir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README README.html
%{ifddir}/*

%changelog
* Fri Apr 04 2008 sbrabec@suse.cz
- New SuSE package, version 3.5 (FATE#302981).
openSUSE Build Service is sponsored by