2024-01-06 09:18:20 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
%define perl_ver %(eval `perl -V:version`; echo ${version})
|
|
|
|
|
|
|
|
Name: perl-Mail-SPF
|
|
|
|
Version: 2.9.0
|
2024-01-06 09:18:20 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 09:18:20 +01:00
|
|
|
Summary: Mail::SPF - An object-oriented implementation of Sender Policy Framework
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.cpan.org
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz
|
2024-01-06 09:18:20 +01:00
|
|
|
Patch0: perl-Mail-SPF-2.9.0-POD.patch
|
|
|
|
Patch1: perl-Mail-SPF-2.9.0-testsuite.patch
|
2024-01-06 09:18:20 +01:00
|
|
|
License: BSF
|
2024-01-06 09:18:20 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-Error
|
|
|
|
BuildRequires: perl-Net-DNS
|
|
|
|
BuildRequires: perl-NetAddr-IP
|
|
|
|
BuildRequires: perl-URI
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:18:20 +01:00
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
2024-01-06 09:18:20 +01:00
|
|
|
BuildRequires: perl-Module-Build
|
|
|
|
BuildRequires: perl-version
|
|
|
|
BuildRequires: perl-Net-DNS-Resolver-Programmable
|
|
|
|
BuildRequires: perl-IO-Socket-INET6
|
|
|
|
Requires: perl >= %perl_major_ver
|
2024-01-06 09:18:20 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Mail::SPF - An object-oriented implementation of Sender Policy Framework
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Mail-SPF-v%{version}
|
2024-01-06 09:18:20 +01:00
|
|
|
%patch0 -p0
|
|
|
|
%patch1 -p0
|
|
|
|
chmod -x bin/* sbin/*
|
2024-01-06 09:18:20 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make %{?_smp_mflags}
|
2024-01-06 09:18:20 +01:00
|
|
|
|
|
|
|
#% make test
|
2024-01-06 09:18:20 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
# fix perl path
|
|
|
|
sed -i "s|%{_bindir}/perl%{perl_ver}|%{_bindir}/perl|" %{buildroot}%{_bindir}/spfquery
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:18:20 +01:00
|
|
|
* Thu Oct 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.0-2mamba
|
|
|
|
- added POD patch to fix tests; specfile fixes
|
|
|
|
|
2024-01-06 09:18:20 +01:00
|
|
|
* Mon Jul 22 2013 Automatic Build System <autodist@mambasoft.it> 2.9.0-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 2.8.0-1mamba
|
|
|
|
- update to 2.8.0
|
|
|
|
|
|
|
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.004-5mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Sat Nov 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.004-4mamba
|
|
|
|
- remove to remove requirement for /usr/bin/perl<version>
|
|
|
|
|
|
|
|
* Thu Oct 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.004-3mamba
|
|
|
|
- rebuilt with perl 5.10.1
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.004-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed May 09 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.004-1mamba
|
|
|
|
- package created by autospec
|