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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 938468 - (show annotations) (download)
Fri Feb 5 18:01:22 2016 UTC (8 years, 2 months ago) by umeabot
File size: 2723 byte(s)
Mageia 6 Mass Rebuild
1 %define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null)
2 %define major 0
3 %define libname %mklibname %name %major
4 %define develname %mklibname %name -d
5 %define build_version 100711
6
7 Summary: ACS ACR 38 USB (acr38u) Smartcard Reader driver for PCSC-lite
8 Name: acr38u
9 Version: 1.7.11
10 Release: %mkrel 6
11 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 BuildRequires: pkgconfig(libusb) >= 0.1.12
27 Requires(post): pcsc-lite
28 Requires(postun): pcsc-lite
29 Requires: pcsc-lite
30 Requires: %{libname} = %{version}-%{release}
31
32 %description
33 CCID ACR38u Smart Card reader driver for PCSC-lite.
34
35 %package -n %{libname}
36 Group: System/Libraries
37 Summary: Shared library for %{name}
38
39 %description -n %{libname}
40 Shared library for the CCID ACR38u Smart Card reader driver for
41 PCSC-lite.
42
43 %package -n %{develname}
44 Summary: Development library for %{name}
45 Group: Development/C
46 Requires: %{libname} = %{version}
47 Provides: %{name}-devel = %{version}-%{release}
48
49 %description -n %{develname}
50 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 %autopatch -p0
56
57 %build
58 rm -rf autom4te.cache
59 autoreconf -fis
60
61 %configure2_5x \
62 --disable-dependency-tracking \
63 --disable-static \
64 --enable-usbdropdir="%{buildroot}%{usbdropdir}"
65 %make
66
67 %install
68 %makeinstall_std
69 rm -f %{buildroot}%{_libdir}/*.la
70
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 %{usbdropdir}/*
86
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