added POD patch to fix tests; specfile fixes [release 2.9.0-2mamba;Thu Oct 28 2021]
This commit is contained in:
parent
556e1e3af3
commit
0bf70fb215
17
perl-Mail-SPF-2.9.0-POD.patch
Normal file
17
perl-Mail-SPF-2.9.0-POD.patch
Normal file
@ -0,0 +1,17 @@
|
||||
https://rt.cpan.org/Public/Bug/Display.html?id=86060
|
||||
|
||||
--- lib/Mail/SPF/Util.pm
|
||||
+++ lib/Mail/SPF/Util.pm
|
||||
@@ -155,9 +155,9 @@ sub ipv6_address_is_ipv4_mapped {
|
||||
throws I<Mail::SPF::EInvalidOptionValue>
|
||||
|
||||
Returns the given I<NetAddr::IP> IPv4 or IPv6 address compactly formatted as a
|
||||
-I<string>. For IPv4 addresses, this is equivalent to calling L< NetAddr::IP's
|
||||
-C<addr> |NetAddr::IP/addr> method. For IPv6 addresses, this is equivalent to
|
||||
-calling L< NetAddr::IP's C<short> |NedAddr::IP/short> method. Throws a
|
||||
+I<string>. For IPv4 addresses, this is equivalent to calling L<NetAddr::IP's
|
||||
+C<addr>|NetAddr::IP/addr> method. For IPv6 addresses, this is equivalent to
|
||||
+calling L<NetAddr::IP's C<short>|NetAddr::IP/short> method. Throws a
|
||||
I<Mail::SPF::EInvalidOptionValue> exception if the specified object is not a
|
||||
I<NetAddr::IP> IPv4 or IPv6 address object.
|
||||
|
62
perl-Mail-SPF-2.9.0-testsuite.patch
Normal file
62
perl-Mail-SPF-2.9.0-testsuite.patch
Normal file
@ -0,0 +1,62 @@
|
||||
Drop tests that fail with Net::DNS ≥ 0.68 due to that module's
|
||||
sanitization of domain names
|
||||
|
||||
https://rt.cpan.org/Ticket/Display.html?id=78214
|
||||
|
||||
--- t/rfc4408-tests.yml
|
||||
+++ t/rfc4408-tests.yml
|
||||
@@ -20,16 +20,6 @@
|
||||
---
|
||||
description: Initial processing
|
||||
tests:
|
||||
- toolonglabel:
|
||||
- description: >-
|
||||
- DNS labels limited to 63 chars.
|
||||
- comment: >-
|
||||
- For initial processing, a long label results in None, not TempError
|
||||
- spec: 4.3/1
|
||||
- helo: mail.example.net
|
||||
- host: 1.2.3.5
|
||||
- mailfrom: lyme.eater@A123456789012345678901234567890123456789012345678901234567890123.example.com
|
||||
- result: none
|
||||
longlabel:
|
||||
description: >-
|
||||
DNS labels limited to 63 chars.
|
||||
@@ -360,21 +350,6 @@ tests:
|
||||
host: 1.2.3.4
|
||||
mailfrom: foo@t9.example.com
|
||||
result: permerror
|
||||
- invalid-domain-empty-label:
|
||||
- description: >-
|
||||
- target-name that is a valid domain-spec per RFC 4408 but an invalid
|
||||
- domain name per RFC 1035 (empty label) must be treated as non-existent.
|
||||
- comment: >-
|
||||
- An empty domain label, i.e. two successive dots, in a mechanism
|
||||
- target-name is valid domain-spec syntax, even though a DNS query cannot
|
||||
- be composed from it. The spec being unclear about it, this could either
|
||||
- be considered a syntax error, or, by analogy to 4.3/1 and 5/10/3, the
|
||||
- mechanism chould be treated as a no-match.
|
||||
- spec: [4.3/1, 5/10/3]
|
||||
- helo: mail.example.com
|
||||
- host: 1.2.3.4
|
||||
- mailfrom: foo@t10.example.com
|
||||
- result: [permerror, fail]
|
||||
invalid-domain-long:
|
||||
description: >-
|
||||
target-name that is a valid domain-spec per RFC 4408 but an invalid
|
||||
@@ -1776,15 +1751,6 @@ tests:
|
||||
host: 192.168.218.40
|
||||
mailfrom: test@e1.example.com
|
||||
result: permerror
|
||||
- macro-mania-in-domain:
|
||||
- description: >-
|
||||
- macro-encoded percents (%%), spaces (%_), and URL-percent-encoded
|
||||
- spaces (%-)
|
||||
- spec: 8.1/3, 8.1/4
|
||||
- helo: mail.example.com
|
||||
- host: 1.2.3.4
|
||||
- mailfrom: test@e1a.example.com
|
||||
- result: pass
|
||||
exp-txt-macro-char:
|
||||
spec: 8.1/20
|
||||
description: >-
|
@ -3,7 +3,7 @@
|
||||
|
||||
Name: perl-Mail-SPF
|
||||
Version: 2.9.0
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Mail::SPF - An object-oriented implementation of Sender Policy Framework
|
||||
Group: System/Libraries/Perl
|
||||
Vendor: openmamba
|
||||
@ -11,29 +11,38 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.cpan.org
|
||||
Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz
|
||||
Patch0: perl-Mail-SPF-2.9.0-POD.patch
|
||||
Patch1: perl-Mail-SPF-2.9.0-testsuite.patch
|
||||
License: BSF
|
||||
Requires: perl >= %perl_major_ver
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libperl
|
||||
BuildRequires: perl-Error
|
||||
BuildRequires: perl-Net-DNS
|
||||
BuildRequires: perl-NetAddr-IP
|
||||
BuildRequires: perl-URI
|
||||
BuildRequires: perl-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: perl-devel >= %perl_major_ver
|
||||
BuildRequires: perl-Module-Build >= 0.2604
|
||||
BuildRequires: perl-version >= 0.7203
|
||||
BuildRequires: perl-Net-DNS-Resolver-Programmable >= 0.002.2
|
||||
BuildRequires: perl-IO-Socket-INET6 >= 2.51
|
||||
BuildRequires: perl-NetAddr-IP >= 4.004
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
# FIXME: the following error was ignored:
|
||||
# * ERROR: Version 0.002.2 of Net::DNS::Resolver::Programmable is installed, but we need version >= 0.002001
|
||||
BuildRequires: perl-Module-Build
|
||||
BuildRequires: perl-version
|
||||
BuildRequires: perl-Net-DNS-Resolver-Programmable
|
||||
BuildRequires: perl-IO-Socket-INET6
|
||||
Requires: perl >= %perl_major_ver
|
||||
|
||||
%description
|
||||
Mail::SPF - An object-oriented implementation of Sender Policy Framework
|
||||
|
||||
%prep
|
||||
%setup -q -n Mail-SPF-v%{version}
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
chmod -x bin/* sbin/*
|
||||
|
||||
%build
|
||||
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||||
%make %{?_smp_mflags}
|
||||
%make test
|
||||
|
||||
#% make test
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -59,6 +68,9 @@ rm -f .packlist
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Thu Oct 28 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.0-2mamba
|
||||
- added POD patch to fix tests; specfile fixes
|
||||
|
||||
* Mon Jul 22 2013 Automatic Build System <autodist@mambasoft.it> 2.9.0-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user