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

# spec file for package perl-Mail-SPF
# Copyright (c) 2015 SUSE LINUX 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

Name:           perl-Mail-SPF
Version:        2.9.0
Release:        0
%define cpan_name Mail-SPF
Summary:        An object-oriented implementation of Sender Policy Framework
License:        BSD-3-Clause
Group:          Development/Libraries/Perl
Source1:        cpanspec.yml
Patch0:         fix_pod.patch
Patch1:         skip_test.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Error)
BuildRequires:  perl(Module::Build) >= 0.2805
BuildRequires:  perl(Net::DNS) >= 0.62
BuildRequires:  perl(Net::DNS::Resolver::Programmable) >= 0.003
BuildRequires:  perl(NetAddr::IP) >= 4
BuildRequires:  perl(URI) >= 1.13
BuildRequires:  perl(version)
Requires:       perl(Error)
Requires:       perl(Net::DNS) >= 0.62
Requires:       perl(NetAddr::IP) >= 4
Requires:       perl(URI) >= 1.13
Requires:       perl(version)
Recommends:     perl(NetAddr::IP) >= 4.007

*Mail::SPF* is an object-oriented implementation of Sender Policy Framework
(SPF). See the manpage for more information about

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.

%setup -q -n %{cpan_name}-v%{version}
%patch0 -p1
%patch1 -p1

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

./Build test

./Build install destdir=%{buildroot} create_packlist=0

%files -f %{name}.files
%license LICENSE