pcsc-lite-acr38u/pcsc-lite-acr38u.spec

Name: pcsc-lite-acr38u
Summary: ACS ACR 38 USB (acr38u non-CCID) Smartcard Reader driver for PCSC-lite
Version: 1.7.10
Release: 1
License: GPL
Group: System Environment/Kernel
URL: http://www.acs.com.hk/acr38_driversmanual.asp
Description: Non-CCID ACR38u Smart Card reader driver for PCSC-lite.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

%define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null)

Summary: ACS ACR 38 USB (acr38u non-CCID) Smartcard Reader driver for PCSC-lite
Name: pcsc-lite-acr38u
%define real_version 1710
Version: 1.7.10
Release: 1%{?dist}
License: GPL
Group: System Environment/Kernel
URL: http://www.acs.com.hk/acr38_driversmanual.asp

Source: http://www.acs.com.hk/drivers/eng/ACR38U_driver_Lnx_%{real_version}_P.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: libusb-devel
BuildRequires: pcsc-lite-devel >= 1.3.1
Requires: pcsc-lite >= 1.3.1

Provides: pcsc-ifd-handler
Provides: acr38u = %{version}-%{release}
Obsoletes: acr38u <= %{version}-%{release}

%description
Non-CCID ACR38u Smart Card reader driver for PCSC-lite.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -n ACR38_LINUX_100710_P

%build
%configure \
    --disable-static \
    --enable-usbdropdir="%{buildroot}%{usbdropdir}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%post
/sbin/ldconfig
if /sbin/service pcscd status &>/dev/null; then
    %{_sbindir}/pcscd -H &>/dev/null || :
fi

%postun
/sbin/ldconfig
if /sbin/service pcscd status &>/dev/null; then
    %{_sbindir}/pcscd -H &>/dev/null || :
fi

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README* doc/README*
%dir %{usbdropdir}/
%{usbdropdir}/ACR38UDriver.bundle/
%{_libdir}/libacr38ucontrol.so.*

%files devel
%defattr(-, root, root, 0755)
%doc doc/*
%{_includedir}/ACS38DrvTools.h
%{_libdir}/libacr38ucontrol.so
%{_prefix}/lib/pkgconfig/libacr38ucontrol.pc
%exclude %{_libdir}/libacr38ucontrol.la

%changelog
* Thu Feb 24 2011 Dag Wieers <dag@wieers.com> - 1.7.10-1
- Updated to release 1.7.10.
- Make pcscd rescan the USB buses.

* Fri Feb 09 2007 Dag Wieers <dag@wieers.com> - 1.7.9-2
- Added missing so symlink.
- Run ldconfig in %%post and %%postun.

* Fri Jan 26 2007 Dag Wieers <dag@wieers.com> - 1.7.9-1
- Initial package. (using DAR)