2007-07-12 18:13:44 +00:00
|
|
|
Name: perl-Mail-SPF
|
|
|
|
Version: 2.005
|
2008-03-07 02:09:31 +00:00
|
|
|
Release: 2%{?dist}
|
2007-07-12 18:13:44 +00:00
|
|
|
Summary: Object-oriented implementation of Sender Policy Framework
|
|
|
|
License: BSD
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/Mail-SPF/
|
|
|
|
Source0: http://www.cpan.org/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(Error)
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(NetAddr::IP) >= 4
|
|
|
|
BuildRequires: perl(Net::DNS) >= 0.58
|
|
|
|
BuildRequires: perl(Net::DNS::Resolver::Programmable)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(URI) >= 1.13
|
|
|
|
BuildRequires: perl(version)
|
|
|
|
Requires: perl(Net::DNS) >= 0.58
|
|
|
|
Requires: perl(URI) >= 1.13
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mail::SPF is an object-oriented implementation of Sender Policy Framework
|
|
|
|
(SPF). See http://www.openspf.org for more information about SPF.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Mail-SPF-v%{version}
|
|
|
|
|
|
|
|
chmod -x bin/* sbin/*
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
# Don't include the spfd and spfquery scripts in _bindir.
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_bindir}/spfquery $RPM_BUILD_ROOT%{_sbindir}/spfd
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGES LICENSE README TODO bin/ sbin/
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
2008-03-07 02:09:31 +00:00
|
|
|
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.005-2
|
|
|
|
Rebuild for new perl
|
|
|
|
|
2007-07-12 18:13:44 +00:00
|
|
|
* Mon Jul 09 2007 Steven Pritchard <steve@kspei.com> 2.005-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.71.
|
|
|
|
- Add the "v" before version numbers to handle broken upstream packaging.
|
|
|
|
- Remove redundant perl build dependency.
|
|
|
|
- Drop bogus version number from Net::DNS::Resolver::Programmable dependency.
|
|
|
|
- Drop redundant explicit dependencies.
|
|
|
|
- BR Test::More and Test::Pod.
|
|
|
|
- Include the spfd and spfquery scripts as %%doc
|