/[packages]/cauldron/acr38u/current/SPECS/acr38u.spec
ViewVC logotype

Annotation of /cauldron/acr38u/current/SPECS/acr38u.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 686455 - (hide annotations) (download)
Tue Sep 16 19:21:03 2014 UTC (10 years, 10 months ago) by umeabot
File size: 2720 byte(s)
Rebuild to fix library dependencies
1 steletch 78903 %define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null)
2 shlomif 619930 %define major 0
3 steletch 78903 %define libname %mklibname %name %major
4     %define develname %mklibname %name -d
5 shlomif 619930 %define build_version 100711
6 steletch 78903
7 shlomif 619930 Summary: ACS ACR 38 USB (acr38u) Smartcard Reader driver for PCSC-lite
8     Name: acr38u
9     Version: 1.7.11
10 umeabot 686455 Release: %mkrel 4
11 shlomif 619930 License: GPL
12     Group: System/Kernel and hardware
13     URL: http://www.acs.com.hk/acr38_driversmanual.asp
14     # From the Gentoo ebuild:
15     # <<<
16     # tarball release is encapsuled in a .zip file :-(
17     # http://www.acs.com.hk/drivers/eng/ACR38_Driver_Lnx_101_P.zip
18     # I'm waiting an answer from info@acs.com.hk about that !
19     # SRC_URI="http://www.linuxunderground.be/${MY_P}.tar.bz2"
20     # HOMEPAGE="http://www.acs.com.hk"
21     # >>>
22     # Source0: http://www.acs.com.hk/download/ACR38_LINUX_%{build_version}_P.tar.gz
23     Source0: http://www.linuxunderground.be/ACR38_LINUX_%{build_version}_P.tar.bz2
24     Patch0: acr38u-linkage_fix.diff
25     BuildRequires: pcsc-lite-devel >= 1.3.1
26 pterjan 643552 BuildRequires: pkgconfig(libusb) >= 0.1.12
27 steletch 78903 Requires(post): pcsc-lite
28     Requires(postun): pcsc-lite
29 shlomif 619930 Requires: pcsc-lite
30     Requires: %{libname} = %{version}-%{release}
31 steletch 78903
32     %description
33     CCID ACR38u Smart Card reader driver for PCSC-lite.
34    
35 shlomif 619930 %package -n %{libname}
36     Group: System/Libraries
37     Summary: Shared library for %{name}
38 steletch 78903
39 shlomif 619930 %description -n %{libname}
40 steletch 78903 Shared library for the CCID ACR38u Smart Card reader driver for
41     PCSC-lite.
42    
43 shlomif 619930 %package -n %{develname}
44     Summary: Development library for %{name}
45     Group: Development/C
46     Requires: %{libname} = %{version}
47     Provides: %{name}-devel = %{version}-%{release}
48 steletch 78903
49 shlomif 619930 %description -n %{develname}
50 steletch 78903 Development files for the CCID ACR38u Smart Card reader driver for
51     PCSC-lite.
52    
53     %prep
54     %setup -q -n ACR38_LINUX_%{build_version}_P
55     %patch0 -p0
56    
57     %build
58     rm -rf autom4te.cache
59     autoreconf -fis
60    
61     %configure2_5x \
62 shlomif 619930 --disable-dependency-tracking \
63     --disable-static \
64     --enable-usbdropdir="%{buildroot}%{usbdropdir}"
65 steletch 78903 %make
66    
67     %install
68     %makeinstall_std
69 fwang 275190 rm -f %{buildroot}%{_libdir}/*.la
70 steletch 78903
71     # move the .pc file to the correct place on x86-64
72     %ifarch x86_64
73     mkdir -p %{buildroot}%{_libdir}/pkgconfig
74     mv %{buildroot}%{_prefix}/lib/pkgconfig/libacr38ucontrol.pc %{buildroot}%{_libdir}/pkgconfig/libacr38ucontrol.pc
75     %endif
76    
77     %post
78     /sbin/service pcscd condrestart > /dev/null 2>/dev/null || :
79    
80     %postun
81     /sbin/service pcscd condrestart > /dev/null 2>/dev/null || :
82    
83     %files
84     %doc AUTHORS ChangeLog COPYING INSTALL NEWS README* doc/README*
85 fwang 275190 %{usbdropdir}/*
86 steletch 78903
87     %files -n %{libname}
88     %defattr(-, root, root, 0755)
89     %{_libdir}/*.so.*
90    
91     %files -n %{develname}
92     %{_libdir}/*.so
93     %{_includedir}/*
94     %{_libdir}/pkgconfig/*.pc

  ViewVC Help
Powered by ViewVC 1.1.30