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

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

Name:           perl-Mail-SPF-Test
Version:        1.001
Release:        0
%define cpan_name Mail-SPF-Test
Summary:        SPF test-suite class
License:        BSD-3-Clause
Group:          Development/Libraries/Perl
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build) >= 0.2805
BuildRequires:  perl(Net::DNS) >= 0.58
BuildRequires:  perl(NetAddr::IP) >= 4
BuildRequires:  perl(YAML) >= 0.50
BuildRequires:  perl(version)
Requires:       perl(Net::DNS) >= 0.58
Requires:       perl(NetAddr::IP) >= 4
Requires:       perl(YAML) >= 0.50
Requires:       perl(version)

  *Mail::SPF::Test* is a class for reading and manipulating SPF test-suite

%setup -q -n %{cpan_name}-v%{version}
find . -type f -print0 | xargs -0 chmod 644

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

./Build test

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

%files -f %{name}.files

openSUSE Build Service is sponsored by