File perl-Mail-SPF.spec of Package perl-Mail-SPF

#
# spec file for package perl-Mail-SPF (Version 2.007)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Mail-SPF
%define         real_name Mail-SPF
Summary:        An object-oriented implementation of Sender Policy Framework
Version:        2.007
Release:        4
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://search.cpan.org/perldoc?Mail::SPF
AutoReqProv:    on
Source:         %{real_name}-v%{version}.tar.gz
BuildRequires:  perl-Error perl-Net-CIDR-Lite perl-Net-DNS perl-NetAddr-IP perl-Sys-Hostname-Long perl-URI
BuildRequires:  perl-macros
BuildRequires:  perl(Net::DNS::Resolver::Programmable) perl-Test-Pod
Requires:       perl-Net-CIDR-Lite perl-Net-DNS perl-Net-IP perl-Sys-Hostname-Long 
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildArch:      noarch                                                                                                
Requires:       perl(Error)                                                                                           
Requires:       perl(NetAddr::IP) >= 4                                                                                
Requires:       perl(Net::DNS) >= 0.58                                                                                
Requires:       perl(URI) >= 1.13                                                                                     

%description
Mail::SPF is an object-oriented implementation of Sender Policy Framework
(SPF). See http://www.openspf.org for more information about SPF.

This class collection aims to fully conform to the SPF specification (RFC 4408)
so as to serve both as a production quality SPF implementation and as a
reference for other developers of SPF implementations.

%prep
%setup -q -n %{real_name}-v%{version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./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/*
%perl_process_packlist

%check
./Build test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES LICENSE MANIFEST README SIGNATURE TODO
%doc %{_mandir}/man?/*
%{_bindir}/spfquery
%{_sbindir}/spfd
%{perl_vendorlib}/Mail

%changelog
openSUSE Build Service is sponsored by