diff --git a/README.md b/README.md index 9d45a03..03244b3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Mail-SPF +Mail::SPF - An object-oriented implementation of Sender Policy Framework + diff --git a/perl-Mail-SPF.spec b/perl-Mail-SPF.spec new file mode 100644 index 0000000..24a727b --- /dev/null +++ b/perl-Mail-SPF.spec @@ -0,0 +1,81 @@ +%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: 1mamba +Summary: Mail::SPF - An object-oriented implementation of Sender Policy Framework +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz +License: BSF +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-Module-Build >= 0.2604 +BuildRequires: perl-version >= 0.7203 +BuildRequires: perl-Net-DNS-Resolver-Programmable >= 0.002.2 +BuildRequires: perl-IO-Socket-INET6 >= 2.51 +BuildRequires: perl-NetAddr-IP >= 4.004 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME: the following error was ignored: +# * ERROR: Version 0.002.2 of Net::DNS::Resolver::Programmable is installed, but we need version >= 0.002001 + +%description +Mail::SPF - An object-oriented implementation of Sender Policy Framework + +%prep +%setup -q -n Mail-SPF-v%{version} + +%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 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