1 | %define pcscver 1.3.0 |
---|
2 | %define pcsclib libpcsclite.so.1 |
---|
3 | %ifarch x86_64 ppc64 ia64 sparc64 s390x |
---|
4 | %define mark64 ()(64bit) |
---|
5 | %endif |
---|
6 | |
---|
7 | Name: pcsc-perl |
---|
8 | Version: 1.4.8 |
---|
9 | Release: 1%{?_dist_release} |
---|
10 | Summary: Perl interface to the PC/SC smart card library |
---|
11 | Summary(ja): Perl interface to the PC/SC smart card library |
---|
12 | |
---|
13 | Group: Development/Libraries |
---|
14 | License: GPLv2+ |
---|
15 | URL: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/ |
---|
16 | Source0: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/%{name}-%{version}.tar.gz |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
18 | |
---|
19 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
20 | BuildRequires: pcsc-lite-devel >= %{pcscver} |
---|
21 | Requires: %{pcsclib}%{?mark64} |
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
23 | Provides: perl-pcsc = %{version}-%{release} |
---|
24 | |
---|
25 | %description |
---|
26 | This package contains a Perl interface to the PC/SC smart card |
---|
27 | library. |
---|
28 | |
---|
29 | |
---|
30 | %prep |
---|
31 | %setup -q |
---|
32 | chmod 644 examples/* # avoid dependencies |
---|
33 | f=Changelog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f |
---|
34 | |
---|
35 | |
---|
36 | %build |
---|
37 | %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" DEFINE=-Wall |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | |
---|
41 | %install |
---|
42 | rm -rf $RPM_BUILD_ROOT |
---|
43 | make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
44 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
45 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' |
---|
46 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' |
---|
47 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
48 | |
---|
49 | |
---|
50 | %check |
---|
51 | # tests need configured readers etc |
---|
52 | if ! grep -qF 'dlopen("%{pcsclib}"' PCSCperl.h ; then # sanity check |
---|
53 | echo "ERROR: pcsc lib name mismatch in PCSCperl.h/dependencies" ; exit 1 |
---|
54 | fi |
---|
55 | |
---|
56 | |
---|
57 | %clean |
---|
58 | rm -rf $RPM_BUILD_ROOT |
---|
59 | |
---|
60 | |
---|
61 | %files |
---|
62 | %defattr(-,root,root,-) |
---|
63 | %doc Changelog LICENCE README examples/ |
---|
64 | %{perl_vendorarch}/auto/Chipcard/ |
---|
65 | %{perl_vendorarch}/Chipcard/ |
---|
66 | %{_mandir}/man3/Chipcard::PCSC*.3* |
---|
67 | |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Sun Feb 21 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.8-1 |
---|
71 | - update to 1.4.8 |
---|
72 | |
---|
73 | * Mon Mar 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-1 |
---|
74 | - initial build for Vine Linux |
---|
75 | |
---|
76 | * Thu Mar 27 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.4.7-1 |
---|
77 | - 1.4.7. |
---|
78 | |
---|
79 | * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4.6-4 |
---|
80 | - Rebuild for new perl |
---|
81 | |
---|
82 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.6-3 |
---|
83 | - Autorebuild for GCC 4.3 |
---|
84 | |
---|
85 | * Tue Aug 7 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.4.6-2 |
---|
86 | - Apply #defines patch only when building with pcsc-lite < 1.4.0. |
---|
87 | - License: GPLv2+ |
---|
88 | |
---|
89 | * Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.4.6-1 |
---|
90 | - 1.4.6 + PCSCperl.h #defines fixes. |
---|
91 | - BuildRequire perl(ExtUtils::MakeMaker). |
---|
92 | |
---|
93 | * Sun Dec 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-3 |
---|
94 | - Eliminate file based dependencies. |
---|
95 | |
---|
96 | * Thu Nov 2 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-2 |
---|
97 | - Rebuild with pcsc-lite 1.3.2 for extended APDU support. |
---|
98 | |
---|
99 | * Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-1 |
---|
100 | - 1.4.4. |
---|
101 | |
---|
102 | * Wed May 17 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.3-1 |
---|
103 | - 1.4.3. |
---|
104 | |
---|
105 | * Mon Mar 6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.1-1 |
---|
106 | - 1.4.1. |
---|
107 | - Don't hardcode required pcsc-lite-libs version, use shared lib file instead. |
---|
108 | - Convert docs to UTF-8. |
---|
109 | |
---|
110 | * Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-8 |
---|
111 | - Rebuild, cosmetics. |
---|
112 | |
---|
113 | * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.3.1-7 |
---|
114 | - rebuild on all arches |
---|
115 | |
---|
116 | * Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-6 |
---|
117 | - Provide perl-pcsc, fixate required pcsc-lite version to 1.2.0. |
---|
118 | |
---|
119 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.3.1-5 |
---|
120 | - rebuilt |
---|
121 | |
---|
122 | * Fri Jan 7 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-4 |
---|
123 | - Honor $RPM_OPT_FLAGS, remove (some) extra include dirs from build (#1281). |
---|
124 | - Improve summary and description. |
---|
125 | |
---|
126 | * Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.3 |
---|
127 | - BuildRequire perl >= 1:5.6.1 for vendor install dir support. |
---|
128 | - Use pure_install to avoid perllocal.pod workarounds. |
---|
129 | |
---|
130 | * Sun Apr 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.2 |
---|
131 | - Require perl(:MODULE_COMPAT_*). |
---|
132 | |
---|
133 | * Fri Apr 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.1 |
---|
134 | - Update to 1.3.1. |
---|
135 | |
---|
136 | * Sun Feb 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.0-0.fdr.2 |
---|
137 | - Reduce directory ownership bloat. |
---|
138 | |
---|
139 | * Wed Dec 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.0-0.fdr.1 |
---|
140 | - Update to 1.3.0. |
---|
141 | |
---|
142 | * Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.4 |
---|
143 | - More spec cleanups. |
---|
144 | |
---|
145 | * Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.3 |
---|
146 | - Spec cleanups, install into vendor dirs. |
---|
147 | |
---|
148 | * Fri Jul 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.2 |
---|
149 | - Fix dir ownerships, non-root strip during build. |
---|
150 | |
---|
151 | * Thu May 29 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.1 |
---|
152 | - Update to 1.2.2. |
---|
153 | - Drop patch and hacks, already applied/fixed upstream. |
---|
154 | |
---|
155 | * Sun May 25 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.1-0.fdr.1 |
---|
156 | - Update to 1.2.1. |
---|
157 | - Fix build and runtime dependencies. |
---|
158 | |
---|
159 | * Thu May 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1 |
---|
160 | - First build. |
---|