public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Net-DNS-SEC] epel10: Package the tests
Date: Mon, 19 Oct 2026 14:05:30 GMT	[thread overview]
Message-ID: <179241873053.1.450751977357677959.rpms-perl-Net-DNS-SEC-6dcf4bf4d905@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-Net-DNS-SEC
Branch : epel10
Commit : 6dcf4bf4d905399da24a9b3b14247eb4178068f9
Author : Petr Písař <ppisar@redhat.com>
Date   : 2024-05-20T13:30:09+02:00
Stats  : +79/-3 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Net-DNS-SEC/c/6dcf4bf4d905399da24a9b3b14247eb4178068f9?branch=epel10

Log:
Package the tests

---
diff --git a/Net-DNS-SEC-1.24-Correct-Net-DNS-minimal-version.patch b/Net-DNS-SEC-1.24-Correct-Net-DNS-minimal-version.patch
new file mode 100644
index 0000000..a26fd55
--- /dev/null
+++ b/Net-DNS-SEC-1.24-Correct-Net-DNS-minimal-version.patch
@@ -0,0 +1,31 @@
+From 2805e146ae59af6cf786a3214da73764bb6e4883 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Mon, 20 May 2024 13:05:33 +0200
+Subject: [PATCH] Correct Net::DNS minimal version
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Metadata read 1.08, code read 1.01.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ lib/Net/DNS/SEC.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/Net/DNS/SEC.pm b/lib/Net/DNS/SEC.pm
+index 09988f5..34ff6b3 100644
+--- a/lib/Net/DNS/SEC.pm
++++ b/lib/Net/DNS/SEC.pm
+@@ -13,7 +13,7 @@ use base qw(Exporter DynaLoader);
+ eval { __PACKAGE__->bootstrap($VERSION) };
+ warn "\n\n$@\n" if $@;
+ 
+-use Net::DNS 1.01 qw(:DEFAULT);
++use Net::DNS 1.08 qw(:DEFAULT);
+ 
+ our @EXPORT = ( @Net::DNS::EXPORT, qw(algorithm digtype key_difference) );
+ 
+-- 
+2.45.0
+

diff --git a/perl-Net-DNS-SEC.rpmlintrc b/perl-Net-DNS-SEC.rpmlintrc
new file mode 100644
index 0000000..a5d5f5e
--- /dev/null
+++ b/perl-Net-DNS-SEC.rpmlintrc
@@ -0,0 +1 @@
+addFilter('-tests\.noarch: W: no-documentation')

diff --git a/perl-Net-DNS-SEC.spec b/perl-Net-DNS-SEC.spec
index e47d4b5..f09464e 100644
--- a/perl-Net-DNS-SEC.spec
+++ b/perl-Net-DNS-SEC.spec
@@ -5,6 +5,8 @@ Summary:        DNSSEC modules for Perl
 License:        HPND-MIT-disclaimer
 URL:            https://metacpan.org/release/Net-DNS-SEC
 Source0:        https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-SEC-%{version}.tar.gz
+# Fix Net::DNS minimal version, proposed to the upstream, CPAN RT#153606
+Patch0:         Net-DNS-SEC-1.24-Correct-Net-DNS-minimal-version.patch
 # Build
 BuildRequires:  coreutils
 BuildRequires:  gcc
@@ -35,16 +37,20 @@ BuildRequires:  perl(Net::DNS::ZoneFile)
 BuildRequires:  perl(File::Find) >= 1.13
 BuildRequires:  perl(Test::Builder)
 BuildRequires:  perl(Test::More) >= 0.8
+# Optional tests:
+BuildRequires:  perl(Test::Pod) => 1.45
 Requires:       perl(Carp) >= 1.1
 Requires:       perl(DynaLoader) >= 1.09
 Requires:       perl(Exporter) >= 5.63
 Requires:       perl(File::Spec) >= 3.29
 Requires:       perl(IO::File) >= 1.14
 Requires:       perl(MIME::Base64) >= 3.07
-Requires:       perl(Net::DNS) >= 1.08
 
 # Remove under-specified dependencies
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Carp|DynaLoader|Exporter|File::Spec|IO::File|MIME::Base64|Net::DNS)\\)
+%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Carp|DynaLoader|Exporter|File::Spec|IO::File|MIME::Base64|Test::More)\\)$
+# Remove private modules
+%global __requires_exclude %{__requires_exclude}|^perl\\(TestToolkit\\)
+%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(NonFatal|TestToolkit\\)
 
 %description
 Net::DNS::SEC is installed as an extension to an existing Net::DNS
@@ -56,8 +62,24 @@ It also provides support for SIG0 which is useful for dynamic updates.
 It implements cryptographic signature generation and verification functions
 using RSA, DSA, ECDSA, and Edwards curve algorithms.
 
+%package tests
+Summary:        Tests for %{name}
+BuildArch:      noarch
+Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       coreutils
+Requires:       perl-Test-Harness
+Requires:       perl(Carp) >= 1.1
+Requires:       perl(Exporter) >= 5.63
+Requires:       perl(IO::File) >= 1.14
+Requires:       perl(Test::More) >= 0.8
+
+%description tests
+Tests from %{name}. Execute them
+with "%{_libexecdir}/%{name}/test".
+
 %prep
-%setup -q -n Net-DNS-SEC-%{version}
+%autosetup -p1 -n Net-DNS-SEC-%{version}
+chmod a+x t/*.t
 
 %build
 unset OPENSSL_INCLUDE OPENSSL_LIB OPENSSL_PREFIX
@@ -67,6 +89,24 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
 %install
 %{make_install}
 %{_fixperms} %{buildroot}/*
+# Install tests
+mkdir -p %{buildroot}%{_libexecdir}/%{name}
+cp -a t %{buildroot}%{_libexecdir}/%{name}
+# Remove tests useless out of build tree
+rm %{buildroot}%{_libexecdir}/%{name}/t/00-install.t
+rm %{buildroot}%{_libexecdir}/%{name}/t/00-pod.t
+cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
+#!/usr/bin/bash
+set -e
+# Tests write into CWD.
+DIR=$(mktemp -d)
+cp -a %{_libexecdir}/%{name}/* "$DIR"
+pushd "$DIR"
+prove -I t -j 1
+popd
+rm -r "$DIR"
+EOF
+chmod +x %{buildroot}%{_libexecdir}/%{name}/test
 
 %check
 # Makefile.PL resets HARNESS_OPTIONS to enforce serial testing. Probably
@@ -86,9 +126,13 @@ make test
 %{_mandir}/man3/Net::DNS::SEC.*
 %{_mandir}/man3/Net::DNS::SEC::*
 
+%files tests
+%{_libexecdir}/%{name}
+
 %changelog
 * Mon May 20 2024 Petr Pisar <ppisar@redhat.com> - 1.24-1
 - 1.24 bump
+- Package the tests
 
 * Tue Jan 30 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.23-1
 - 1.23 bump (rhbz#2252728)

                 reply	other threads:[~2026-10-19 14:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179241873053.1.450751977357677959.rpms-perl-Net-DNS-SEC-6dcf4bf4d905@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox