%define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null) %define major 0 %define libname %mklibname %name %major %define develname %mklibname %name -d %define build_version 100711 Summary: ACS ACR 38 USB (acr38u) Smartcard Reader driver for PCSC-lite Name: acr38u Version: 1.7.11 Release: %mkrel 5 License: GPL Group: System/Kernel and hardware URL: http://www.acs.com.hk/acr38_driversmanual.asp # From the Gentoo ebuild: # <<< # tarball release is encapsuled in a .zip file :-( # http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip # I'm waiting an answer from info@acs.com.hk about that ! # SRC_URI="http://www.linuxunderground.be/${MY_P}.tar.bz2" # HOMEPAGE="http://www.acs.com.hk" # >>> # Source0: http://www.acs.com.hk/download/ACR38_LINUX_%{build_version}_P.tar.gz Source0: http://www.linuxunderground.be/ACR38_LINUX_%{build_version}_P.tar.bz2 Patch0: acr38u-linkage_fix.diff BuildRequires: pcsc-lite-devel >= 1.3.1 BuildRequires: pkgconfig(libusb) >= 0.1.12 Requires(post): pcsc-lite Requires(postun): pcsc-lite Requires: pcsc-lite Requires: %{libname} = %{version}-%{release} %description CCID ACR38u Smart Card reader driver for PCSC-lite. %package -n %{libname} Group: System/Libraries Summary: Shared library for %{name} %description -n %{libname} Shared library for the CCID ACR38u Smart Card reader driver for PCSC-lite. %package -n %{develname} Summary: Development library for %{name} Group: Development/C Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} Development files for the CCID ACR38u Smart Card reader driver for PCSC-lite. %prep %setup -q -n ACR38_LINUX_%{build_version}_P %patch0 -p0 %build rm -rf autom4te.cache autoreconf -fis %configure2_5x \ --disable-dependency-tracking \ --disable-static \ --enable-usbdropdir="%{buildroot}%{usbdropdir}" %make %install %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la # move the .pc file to the correct place on x86-64 %ifarch x86_64 mkdir -p %{buildroot}%{_libdir}/pkgconfig mv %{buildroot}%{_prefix}/lib/pkgconfig/libacr38ucontrol.pc %{buildroot}%{_libdir}/pkgconfig/libacr38ucontrol.pc %endif %post /sbin/service pcscd condrestart > /dev/null 2>/dev/null || : %postun /sbin/service pcscd condrestart > /dev/null 2>/dev/null || : %files %doc AUTHORS ChangeLog COPYING INSTALL NEWS README* doc/README* %{usbdropdir}/* %files -n %{libname} %defattr(-, root, root, 0755) %{_libdir}/*.so.* %files -n %{develname} %{_libdir}/*.so %{_includedir}/* %{_libdir}/pkgconfig/*.pc