%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 Release: 3mamba Summary: Mail::SPF - An object-oriented implementation of Sender Policy Framework Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz Patch0: perl-Mail-SPF-2.9.0-POD.patch Patch1: perl-Mail-SPF-2.9.0-testsuite.patch License: BSF ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-Error BuildRequires: perl-Net-DNS BuildRequires: perl-NetAddr-IP BuildRequires: perl-URI BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl >= 2:5.36.0 BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-Module-Build BuildRequires: perl-version BuildRequires: perl-Net-DNS-Resolver-Programmable BuildRequires: perl-IO-Socket-INET6 Requires: perl >= %perl_major_ver %description Mail::SPF - An object-oriented implementation of Sender Policy Framework %prep %setup -q -n Mail-SPF-v%{version} %patch 0 -p0 %patch 1 -p0 chmod -x bin/* sbin/* %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %{?_smp_mflags} #% 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 # 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 * Mon Apr 17 2023 Sdk Build System 2.9.0-3mamba - rebuilt with perl 5.36.0 * Thu Oct 28 2021 Silvan Calarco 2.9.0-2mamba - added POD patch to fix tests; specfile fixes * Mon Jul 22 2013 Automatic Build System 2.9.0-1mamba - automatic update by autodist * Sat Apr 27 2013 Automatic Build System 2.8.0-1mamba - update to 2.8.0 * Mon Nov 12 2012 Silvan Calarco 2.004-5mamba - perl 5.16 mass rebuild * Sat Nov 19 2011 Silvan Calarco 2.004-4mamba - remove to remove requirement for /usr/bin/perl * Thu Oct 01 2009 Silvan Calarco 2.004-3mamba - rebuilt with perl 5.10.1 * Wed Nov 05 2008 Silvan Calarco 2.004-2mamba - automatic rebuild by autodist * Wed May 09 2007 Silvan Calarco 2.004-1mamba - package created by autospec