68 lines
2.1 KiB
RPMSpec
68 lines
2.1 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Convert-PEM
|
|
Version: 0.08
|
|
Release: 1mamba
|
|
Summary: Convert::PEM - Read/write encrypted ASN.1 PEM files
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.cpan.org
|
|
Source: http://www.cpan.org/modules/by-module/Convert/Convert-PEM-%{version}.tar.gz
|
|
License: Artistic, GPL
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
BuildRequires: perl-Class-ErrorHandler
|
|
BuildRequires: perl-Convert-ASN1 >= 0.10
|
|
BuildRequires: perl-Crypt-DES_EDE3
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Convert::PEM reads and writes PEM files containing ASN.1-encoded objects.
|
|
The files can optionally be encrypted using a symmetric cipher algorithm, such as 3DES.
|
|
|
|
%prep
|
|
%setup -q -n Convert-PEM-%{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
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
rm -f .packlist
|
|
|
|
%files -f .packlist
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
|
|
%changelog
|
|
* Sat Nov 17 2012 Automatic Build System <autodist@mambasoft.it> 0.08-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.07-3mamba
|
|
- perl 5.16 mass rebuild
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.07-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Aug 29 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.07-1mamba
|
|
- update to 0.07
|
|
|
|
* Thu May 06 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.06-1qilnx
|
|
- first build |