[521] | 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 | Summary: Perl interface to the PC/SC smart card library |
---|
[3147] | 8 | Summary(ja): PC/SC スマートカードライブラリ用の Perl インタフェース |
---|
[521] | 9 | |
---|
[3147] | 10 | Name: pcsc-perl |
---|
| 11 | Version: 1.4.10 |
---|
| 12 | Release: 1%{?_dist_release} |
---|
| 13 | |
---|
[521] | 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.gz |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 19 | |
---|
| 20 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 21 | BuildRequires: pcsc-lite-devel >= %{pcscver} |
---|
| 22 | Requires: %{pcsclib}%{?mark64} |
---|
[3147] | 23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 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 | |
---|
[3147] | 30 | %description -l ja |
---|
| 31 | このパッケージには PC/SC スマートカードライブラリ用の Perl インタフェース |
---|
| 32 | が含まれています。 |
---|
[521] | 33 | |
---|
[3147] | 34 | |
---|
[521] | 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 |
---|
[3147] | 75 | * Sun Mar 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.10-1 |
---|
| 76 | - new upstream release |
---|
| 77 | - rebuild with perl-5.12 |
---|
| 78 | |
---|
[521] | 79 | * Sun Feb 21 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.8-1 |
---|
| 80 | - update to 1.4.8 |
---|
| 81 | |
---|
| 82 | * Mon Mar 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-1 |
---|
| 83 | - initial build for Vine Linux |
---|
| 84 | |
---|
| 85 | * Thu Mar 27 2008 Ville Skyttä <ville.skytta at iki.fi> - 1.4.7-1 |
---|
| 86 | - 1.4.7. |
---|
| 87 | |
---|
| 88 | * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.4.6-4 |
---|
| 89 | - Rebuild for new perl |
---|
| 90 | |
---|
| 91 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.6-3 |
---|
| 92 | - Autorebuild for GCC 4.3 |
---|
| 93 | |
---|
| 94 | * Tue Aug 7 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.4.6-2 |
---|
| 95 | - Apply #defines patch only when building with pcsc-lite < 1.4.0. |
---|
| 96 | - License: GPLv2+ |
---|
| 97 | |
---|
| 98 | * Tue Apr 17 2007 Ville Skyttä <ville.skytta at iki.fi> - 1.4.6-1 |
---|
| 99 | - 1.4.6 + PCSCperl.h #defines fixes. |
---|
| 100 | - BuildRequire perl(ExtUtils::MakeMaker). |
---|
| 101 | |
---|
| 102 | * Sun Dec 24 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-3 |
---|
| 103 | - Eliminate file based dependencies. |
---|
| 104 | |
---|
| 105 | * Thu Nov 2 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-2 |
---|
| 106 | - Rebuild with pcsc-lite 1.3.2 for extended APDU support. |
---|
| 107 | |
---|
| 108 | * Tue Aug 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.4-1 |
---|
| 109 | - 1.4.4. |
---|
| 110 | |
---|
| 111 | * Wed May 17 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.3-1 |
---|
| 112 | - 1.4.3. |
---|
| 113 | |
---|
| 114 | * Mon Mar 6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.4.1-1 |
---|
| 115 | - 1.4.1. |
---|
| 116 | - Don't hardcode required pcsc-lite-libs version, use shared lib file instead. |
---|
| 117 | - Convert docs to UTF-8. |
---|
| 118 | |
---|
| 119 | * Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-8 |
---|
| 120 | - Rebuild, cosmetics. |
---|
| 121 | |
---|
| 122 | * Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.3.1-7 |
---|
| 123 | - rebuild on all arches |
---|
| 124 | |
---|
| 125 | * Thu May 19 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.3.1-6 |
---|
| 126 | - Provide perl-pcsc, fixate required pcsc-lite version to 1.2.0. |
---|
| 127 | |
---|
| 128 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.3.1-5 |
---|
| 129 | - rebuilt |
---|
| 130 | |
---|
| 131 | * Fri Jan 7 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-4 |
---|
| 132 | - Honor $RPM_OPT_FLAGS, remove (some) extra include dirs from build (#1281). |
---|
| 133 | - Improve summary and description. |
---|
| 134 | |
---|
| 135 | * Wed May 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.3 |
---|
| 136 | - BuildRequire perl >= 1:5.6.1 for vendor install dir support. |
---|
| 137 | - Use pure_install to avoid perllocal.pod workarounds. |
---|
| 138 | |
---|
| 139 | * Sun Apr 25 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.2 |
---|
| 140 | - Require perl(:MODULE_COMPAT_*). |
---|
| 141 | |
---|
| 142 | * Fri Apr 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.1-0.fdr.1 |
---|
| 143 | - Update to 1.3.1. |
---|
| 144 | |
---|
| 145 | * Sun Feb 8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.0-0.fdr.2 |
---|
| 146 | - Reduce directory ownership bloat. |
---|
| 147 | |
---|
| 148 | * Wed Dec 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.3.0-0.fdr.1 |
---|
| 149 | - Update to 1.3.0. |
---|
| 150 | |
---|
| 151 | * Sun Sep 14 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.4 |
---|
| 152 | - More spec cleanups. |
---|
| 153 | |
---|
| 154 | * Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.3 |
---|
| 155 | - Spec cleanups, install into vendor dirs. |
---|
| 156 | |
---|
| 157 | * Fri Jul 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.2 |
---|
| 158 | - Fix dir ownerships, non-root strip during build. |
---|
| 159 | |
---|
| 160 | * Thu May 29 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.2-0.fdr.1 |
---|
| 161 | - Update to 1.2.2. |
---|
| 162 | - Drop patch and hacks, already applied/fixed upstream. |
---|
| 163 | |
---|
| 164 | * Sun May 25 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.1-0.fdr.1 |
---|
| 165 | - Update to 1.2.1. |
---|
| 166 | - Fix build and runtime dependencies. |
---|
| 167 | |
---|
| 168 | * Thu May 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.2.0-0.fdr.1 |
---|
| 169 | - First build. |
---|