File perl-Mail-SPF.spec of Package perl-Mail-SPF
#
# spec file for package perl-Mail-SPF
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define cpan_name Mail-SPF
Name: perl-Mail-SPF
Version: 3.20250505
Release: 0
License: BSD-3-Clause
Summary: An object-oriented implementation of Sender Policy Framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAVIS/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Error)
BuildRequires: perl(Net::DNS::RR)
BuildRequires: perl(Net::DNS::Resolver)
BuildRequires: perl(Net::DNS::Resolver::Programmable)
BuildRequires: perl(NetAddr::IP)
BuildRequires: perl(URI::Escape) >= 1.13
Requires: perl(Error)
Requires: perl(Net::DNS::Resolver)
Requires: perl(NetAddr::IP)
Requires: perl(URI::Escape) >= 1.13
%{perl_requires}
%description
*Mail::SPF* is an object-oriented implementation of Sender Policy Framework
(SPF). See https://tools.ietf.org/html/rfc7208 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
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README TODO
%license LICENSE
%changelog