80 lines
2.4 KiB
RPMSpec
80 lines
2.4 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Chipcard-PCSC
|
|
Version: 1.4.14
|
|
Release: 3mamba
|
|
Summary: Chipcard::PCSC - Smart card reader interface library
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
|
|
Source: http://ludovic.rousseau.free.fr/softwares/pcsc-perl/pcsc-perl-%{version}.tar.bz2
|
|
License: Artistic, GPL
|
|
Requires: perl >= %perl_major_ver
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libperl
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl >= 2:5.36.0
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
%description
|
|
Chipcard::PCSC - Smart card reader interface library.
|
|
|
|
%prep
|
|
%setup -q -n pcsc-perl-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
#% make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
done
|
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
|
|
%changelog
|
|
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 1.4.14-3mamba
|
|
- rebuilt with perl 5.36.0
|
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.14-2mamba
|
|
- rebuilt with perl 5.24
|
|
|
|
* Sun Dec 06 2015 Automatic Build System <autodist@mambasoft.it> 1.4.14-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Apr 05 2013 Automatic Build System <autodist@mambasoft.it> 1.4.13-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.12-2mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Fri Apr 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.12-1mamba
|
|
- update to 1.4.12
|
|
|
|
* Fri Apr 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.10-1mamba
|
|
- update to 1.4.10
|
|
|
|
* Thu Jan 28 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.7-1mamba
|
|
- package created by autospec
|