perl-Convert-PEM/perl-Convert-PEM.spec

80 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Convert-PEM
Version: 0.12
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: https://www.cpan.org
Source: http://www.cpan.org/modules/by-module/Convert/Convert-PEM-%{version}.tar.gz
License: Artistic, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Class-ErrorHandler
BuildRequires: perl-Convert-ASN1
BuildRequires: perl-CryptX
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-Crypt-DES_EDE3
Requires: perl >= %perl_major_ver
%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
* Tue Oct 22 2024 Automatic Build System <autodist@openmamba.org> 0.12-1mamba
- automatic version update by autodist
* Thu Oct 17 2024 Automatic Build System <autodist@openmamba.org> 0.09-1mamba
- automatic version update by autodist
* Wed May 19 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.08-2mamba
- rebuilt with specfile fixes
* 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