File pcsc-acr38.spec of Package pcsc-acr38

#
# spec file for package pcsc-acr38 (Version 1.7.10)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#

# norootforbuild


Name:           pcsc-acr38
BuildRequires:  libusb-devel pcsc-lite-devel pkg-config
Version:        1.7.10
Release:        2
%define _version 100710_P
%define __version 1710_P
Group:          Productivity/Security
License:        GPLv2+
Url:            http://www.acs.com.hk/drivers-manual.php?driver=ACR38
Summary:        PC/SC IFD Handler for the ACR38 Smart Card Reader
Source:         ACR38U_driver_Lnx_%{__version}.tar.bz2
Patch2:         ACR38_LINUX_100705_P-usb.diff
Patch3:         ACR38_LINUX_100710-automake-cleanup.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       pcsc-lite
Supplements:    modalias(usb:v072Fp9000d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v072Fp9006d*dc*dsc*dp*ic*isc*ip*)
%define ifddir %(pkg-config libpcsclite --variable=usbdropdir)

%description
This package contains a driver for the ACR 38 smart card reader
produced by ACS.

This driver is meant to be used with the PCSC-Lite daemon from the
pcsc-lite package.



Authors:
--------
    David Corcoran <corcoran@linuxnet.com>
    Edward Cheung <edward.cheung@acs.com.hk>

%package -n libacr38ucontrol0
License:        GPLv2+
Group:          System/Libraries
Summary:        Library for PC/SC IFD Handler for the ACR38 Smart Card Reader

%description -n libacr38ucontrol0
This package contains a driver for the ACR 38 smart card reader
produced by ACS.

This driver is meant to be used with the PCSC-Lite daemon from the
pcsc-lite package.



Authors:
--------
    David Corcoran <corcoran@linuxnet.com>
    Edward Cheung <edward.cheung@acs.com.hk>

%package devel
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        PC/SC IFD Handler for the ACR38 Smart Card Reader
Requires:       libacr38ucontrol0 = %{version} pcsc-lite-devel

%description devel
This package contains a driver for the ACR 38 smart card reader
produced by ACS.

This driver is meant to be used with the PCSC-Lite daemon from the
pcsc-lite package.



Authors:
--------
    David Corcoran <corcoran@linuxnet.com>
    Edward Cheung <edward.cheung@acs.com.hk>

%prep
%setup -q -n ACR38_LINUX_%{_version}
mv src/driver/Info.plist src/driver/Info.plist.in
%patch2
%patch3

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

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{ifddir}/*/*/*/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libacr38ucontrol0 -p /sbin/ldconfig

%postun -n libacr38ucontrol0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
# NEWS is empty
%doc AUTHORS COPYING ChangeLog README
%{ifddir}/*

%files -n libacr38ucontrol0
%defattr(-,root,root)
%{_libdir}/libacr38ucontrol.so.0
%{_libdir}/libacr38ucontrol.so.0.*

%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog