3.20240205 bump (rhbz#2262786)

This commit is contained in:
Jitka Plesnikova 2024-02-05 16:58:02 +01:00
parent 38911e1f53
commit 2f317c7597
3 changed files with 30 additions and 30 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/Mail-SPF-v[0-9.]*.tar.gz /Mail-SPF-v[0-9.]*.tar.gz
/Mail-SPF-3.20240205.tar.gz

View File

@ -1,19 +1,20 @@
Name: perl-Mail-SPF Name: perl-Mail-SPF
Version: 2.9.0 Version: 3.20240205
Release: 34%{?dist} Release: 1%{?dist}
Summary: Object-oriented implementation of Sender Policy Framework Summary: Object-oriented implementation of Sender Policy Framework
License: BSD-3-Clause License: BSD-3-Clause
URL: https://metacpan.org/release/Mail-SPF URL: https://metacpan.org/release/Mail-SPF
Source0: https://cpan.metacpan.org/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v%{version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/Mail/Mail-SPF-%{version}.tar.gz
Patch0: Mail-SPF-v2.8.0-POD.patch Patch0: Mail-SPF-v2.8.0-testsuite.patch
Patch1: Mail-SPF-v2.8.0-testsuite.patch
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils BuildRequires: coreutils
BuildRequires: perl-interpreter BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Module::Build) BuildRequires: perl-interpreter
BuildRequires: perl(version) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime # Runtime
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(constant) BuildRequires: perl(constant)
@ -22,12 +23,9 @@ BuildRequires: perl(Net::DNS) >= 0.62
BuildRequires: perl(Net::DNS::Resolver) BuildRequires: perl(Net::DNS::Resolver)
BuildRequires: perl(NetAddr::IP) >= 4 BuildRequires: perl(NetAddr::IP) >= 4
BuildRequires: perl(overload) BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(Sys::Hostname) BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(URI) >= 1.13 BuildRequires: perl(URI::Escape) >= 1.13
BuildRequires: perl(URI::Escape)
BuildRequires: perl(utf8) BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
# Tests only # Tests only
BuildRequires: perl(blib) BuildRequires: perl(blib)
BuildRequires: perl(Net::DNS::Resolver::Programmable) >= 0.003 BuildRequires: perl(Net::DNS::Resolver::Programmable) >= 0.003
@ -46,45 +44,43 @@ Mail::SPF is an object-oriented implementation of Sender Policy Framework
(SPF). See http://www.openspf.org for more information about SPF. (SPF). See http://www.openspf.org for more information about SPF.
%prep %prep
%setup -q -n Mail-SPF-v%{version} %setup -q -n Mail-SPF-%{version}
# Fix broken POD (CPAN RT#86060)
%patch -P 0
# Work around test suite failures with Net::DNS ≥ 0.68 (CPAN RT#78214) # Work around test suite failures with Net::DNS ≥ 0.68 (CPAN RT#78214)
%patch -P 1 %patch -P 0
chmod -x bin/* sbin/* chmod -x bin/*
%build %build
perl Build.PL installdirs=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
./Build %{make_build}
%install %install
./Build install destdir=%{buildroot} create_packlist=0 %{make_install}
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
# The spfquery and spfd will use alternatives # The spfquery and spfd will use alternatives
%{__mv} -f %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfquery.%{name} %{__mv} -f %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfquery.%{name}
%{__mv} -f %{buildroot}%{_sbindir}/spfd %{buildroot}%{_bindir}/spfd.%{name} %{__mv} -f %{buildroot}%{_bindir}/spfd %{buildroot}%{_bindir}/spfd.%{name}
%{__mv} -f %{buildroot}%{_mandir}/man1/spfquery.1 %{buildroot}%{_mandir}/man1/spfquery-%{name}.1 %{__mv} -f %{buildroot}%{_mandir}/man1/spfquery.1 %{buildroot}%{_mandir}/man1/spfquery-%{name}.1
touch %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfd %{buildroot}%{_mandir}/man1/spfquery.1.gz touch %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/spfd %{buildroot}%{_mandir}/man1/spfquery.1.gz
%check %check
./Build test make test
%post %post
%{_sbindir}/update-alternatives --install %{_bindir}/spfquery spf %{_bindir}/spfquery.%{name} 10 \ %{_sbindir}/update-alternatives --install %{_bindir}/spfquery spf %{_bindir}/spfquery.%{name} 10 \
--slave %{_bindir}/spfd spf-daemon %{_bindir}/spfd.%{name} \ --slave %{_bindir}/spfd spf-daemon %{_bindir}/spfd.%{name} \
--slave %{_mandir}/man1/spfquery.1.gz spfquery-man-page %{_mandir}/man1/spfquery-%{name}.1.gz --slave %{_mandir}/man1/spfquery.1.gz spfquery-man-page %{_mandir}/man1/spfquery-%{name}.1.gz
%postun %postun
if [ $1 -eq 0 ] ; then if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove spf %{_bindir}/spfquery.%{name} %{_sbindir}/update-alternatives --remove spf %{_bindir}/spfquery.%{name}
fi fi
%files %files
%license LICENSE %license LICENSE
%doc CHANGES README TODO bin/ sbin/ %doc Changes README TODO bin/
%{perl_vendorlib}/* %{perl_vendorlib}/Mail/SPF*
%{_mandir}/man1/* %{_mandir}/man1/spf*
%{_mandir}/man3/* %{_mandir}/man3/Mail::SPF*
%ghost %{_bindir}/spfquery %ghost %{_bindir}/spfquery
%ghost %{_bindir}/spfd %ghost %{_bindir}/spfd
%ghost %{_mandir}/man1/spfquery.1.gz %ghost %{_mandir}/man1/spfquery.1.gz
@ -92,6 +88,9 @@ fi
%{_bindir}/spfd.%{name} %{_bindir}/spfd.%{name}
%changelog %changelog
* Mon Feb 05 2024 Jitka Plesnikova <jplesnik@redhat.com> - 3.20240205-1
- 3.20240205 bump (rhbz#2262786)
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-34 * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

View File

@ -1 +1 @@
664e20d79c87fa505080f362e827dace Mail-SPF-v2.9.0.tar.gz SHA512 (Mail-SPF-3.20240205.tar.gz) = 72d1c3605726498ca5e415c5188a4ba11a104c0b1d27563c25f27abc6e43dce744d5d295a7bc58b41d4b210c478d79d7476ad5c66375b09d593656b8773b336f