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