perl-Email-Abstract/perl-Email-Abstract.spec

82 lines
2.5 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Email-Abstract
Version: 3.009
Release: 2mamba
Summary: Email::Abstract - unified interface to mail representations
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/modules/by-module/Email/Email-Abstract-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-Email-Simple
BuildRequires: perl-MRO-Compat
BuildRequires: perl-Module-Pluggable
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
%description
Email::Abstract - unified interface to mail representations.
%prep
%setup -q -n Email-Abstract-%{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)
%changelog
* Mon Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 3.009-2mamba
- rebuilt with perl 5.36.0
* Mon Jun 21 2021 Automatic Build System <autodist@mambasoft.it> 3.009-1mamba
- automatic version update by autodist
* Thu Jan 01 2015 Automatic Build System <autodist@mambasoft.it> 3.008-1mamba
- automatic update by autodist
* Wed Jan 01 2014 Automatic Build System <autodist@mambasoft.it> 3.007-1mamba
- automatic update by autodist
* Sun Sep 01 2013 Automatic Build System <autodist@mambasoft.it> 3.006-1mamba
- automatic update by autodist
* Sat Aug 03 2013 Automatic Build System <autodist@mambasoft.it> 3.005-1mamba
- automatic update by autodist
* Fri Nov 09 2012 Automatic Build System <autodist@mambasoft.it> 3.004-1mamba
- automatic version update by autodist
* Fri Jun 18 2010 Automatic Build System <autodist@mambasoft.it> 3.002-1mamba
- automatic update by autodist
* Thu Oct 15 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.001-1mamba
- package created by autospec