# # spec file for package perl-Mail-SPF # # Copyright (c) 2019 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 https://bugs.opensuse.org/ # %define cpan_name Mail-SPF Name: perl-Mail-SPF Version: 2.9.0 Release: 2.3 Summary: An object-oriented implementation of Sender Policy Framework License: BSD-3-Clause Group: Development/Libraries/Perl URL: http://search.cpan.org/dist/Mail-SPF/ Source0: http://www.cpan.org/authors/id/J/JM/JMEHNLE/mail-spf/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml Patch0: fix_pod.patch Patch1: skip_test.patch 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(Test::Pod) >= 1.00 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 BuildArch: noarch %{perl_requires} %description *Mail::SPF* is an object-oriented implementation of Sender Policy Framework (SPF). See the http://www.openspf.org manpage 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 %{cpan_name}-v%{version} %patch0 -p1 %patch1 -p1 %build perl Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc CHANGES README TODO %license LICENSE %{_sbindir}/spfd %changelog * Thu Jul 11 2019 Pedro Monreal Gonzalez - Fix permissions in spfd command [bsc#1141089] - Added test dependency Test::Pod >= 1.00 - Move LICENSE file from doc to license - Updated spec file with spec-cleaner * Wed Jul 1 2015 hsk@imb-jena.de - .spec file: added %%{_sbindir}/spfd to %%files section * Tue Apr 14 2015 coolo@suse.com - updated to 2.9.0 see /usr/share/doc/packages/perl-Mail-SPF/CHANGES - -- 2.009 (2013-07-21 03:30) Mail::SPF: * Default to querying only TXT type RRs (query_rr_types = Mail::SPF::Server-> query_rr_type_txt). Experience has shown that querying SPF type RRs is impractical. * Wed Jun 26 2013 coolo@suse.com - add fix_pod.patch to fix pod syntax for perl 5.18 * Wed Mar 27 2013 stefan.jakobs@rus.uni-stuttgart.de - remove 'BuildRequires: perl-macros' from spec file, because perl included in openSUSE > 1210 deprecates perl-macros which causes a build failure. * Fri Sep 21 2012 sweet_f_a@gmx.de - cleanup spec file style - build requires Mail::SPF::Test (needed for test suite) - add skip_test.patch, see https://rt.cpan.org/Public/Bug/Display.html?id=78214 * Wed Sep 19 2012 sweet_f_a@gmx.de - update to 2.008 Mail::SPF: * Sanitize result local_explanation (as well as result object string representation) by replacing all non-printable or non-ascii characters with their hex-escaped representation (e.g., "\x00"). (Addresses: bugs.launchpad.net #806926) Miscellaneous: * Change openspf.org URLs to openspf.net because openspf.org is unreachable indefinitely. * Change URLs to . * META.yml: configure_requires: Module::Build 0.2805 * META.yml: requires: Net::DNS 0.62 (was: 0.52) (Closes: rt.cpan.org #28545) * META.yml: Revert to flat version numbers for perl and Net::DNS::Resolver:: Programmable build requirements to avoid Module::Build::Compat/Makefile.PL incompatibilities. (Closes: rt.cpan.org #53231) * Attempt to prevent a cascading failure in t/00.03-class-result.t that seems to happen under rare, unknown circumstances. (Closes: rt.cpan.org #39099) * Wed Dec 1 2010 coolo@novell.com - switch to perl_requires macro * Tue Feb 9 2010 coolo@novell.com - update to 2.007 and fix build * Sat May 30 2009 lars@linux-schulserver.de - update to 2.006: details: /usr/share/doc/packages/perl-Mail-SPF/CHANGES - rpmlint fixes - added Mail-SPF-v2.006-Makefile.patch (use ExtUtils::MakeMaker) * Sun Jul 9 2006 dmueller@suse.de - update to 1.999.1 (#190194): Lots of small changes, read details here: /usr/share/doc/packages/perl-Mail-SPF/CHANGES * Tue Jan 24 2006 mls@suse.de - converted neededforbuild to BuildRequires * Sun Sep 18 2005 dmueller@suse.de - initial package 1.997