/[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 78903 - (show annotations) (download)
Tue Mar 29 17:35:43 2011 UTC (10 years, 5 months ago) by steletch
File size: 2435 byte(s)
imported package acr38u
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 100709
6
7 Summary: ACS ACR 38 USB (acr38u) Smartcard Reader driver for PCSC-lite
8 Name: acr38u
9 Version: 1.7.10
10 Release: %mkrel 2
11 License: GPL
12 Group: System/Kernel and hardware
13 URL: http://www.acs.com.hk/acr38_driversmanual.asp
14 Source0: http://www.acs.com.hk/download/ACR38_LINUX_%{build_version}_P.tar.gz
15 Patch0: acr38u-linkage_fix.diff
16 BuildRequires: pcsc-lite-devel >= 1.3.1
17 Requires(post): pcsc-lite
18 Requires(postun): pcsc-lite
19 Requires: pcsc-lite
20 Requires: %{libname} = %{version}-%{release}
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
22
23 %description
24 CCID ACR38u Smart Card reader driver for PCSC-lite.
25
26 %package -n %{libname}
27 Group: System/Libraries
28 Summary: Shared library for %{name}
29
30 %description -n %{libname}
31 Shared library for the CCID ACR38u Smart Card reader driver for
32 PCSC-lite.
33
34 %package -n %{develname}
35 Summary: Development library for %{name}
36 Group: Development/C
37 Requires: %{libname} = %{version}
38 Provides: %{name}-devel = %{version}-%{release}
39
40 %description -n %{develname}
41 Development files for the CCID ACR38u Smart Card reader driver for
42 PCSC-lite.
43
44 %prep
45
46 %setup -q -n ACR38_LINUX_%{build_version}_P
47 %patch0 -p0
48
49 %build
50 rm -rf autom4te.cache
51 autoreconf -fis
52
53 %configure2_5x \
54 --disable-dependency-tracking \
55 --disable-static \
56 --enable-usbdropdir="%{buildroot}%{usbdropdir}"
57 %make
58
59 %install
60 %{__rm} -rf %{buildroot}
61
62 %makeinstall_std
63
64 # move the .pc file to the correct place on x86-64
65 %ifarch x86_64
66 mkdir -p %{buildroot}%{_libdir}/pkgconfig
67 mv %{buildroot}%{_prefix}/lib/pkgconfig/libacr38ucontrol.pc %{buildroot}%{_libdir}/pkgconfig/libacr38ucontrol.pc
68 %endif
69
70 %post
71 /sbin/service pcscd condrestart > /dev/null 2>/dev/null || :
72
73 %postun
74 /sbin/service pcscd condrestart > /dev/null 2>/dev/null || :
75
76 %if %mdkversion < 200900
77 %post -n %{libname} -p /sbin/ldconfig
78 %endif
79
80 %if %mdkversion < 200900
81 %postun -n %{libname} -p /sbin/ldconfig
82 %endif
83
84 %clean
85 %{__rm} -rf %{buildroot}
86
87 %files
88 %defattr(-, root, root, 0755)
89 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README* doc/README*
90 %{usbdropdir}
91
92 %files -n %{libname}
93 %defattr(-, root, root, 0755)
94 %{_libdir}/*.so.*
95
96 %files -n %{develname}
97 %defattr(-, root, root, 0755)
98 %{_libdir}/*.so
99 %{_includedir}/*
100 %{_libdir}/*.*a
101 %{_libdir}/pkgconfig/*.pc
102
103

  ViewVC Help
Powered by ViewVC 1.1.28