public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-IO-Capture-Extended] f43: Install the tests
Date: Thu, 22 Oct 2026 10:47:27 GMT	[thread overview]
Message-ID: <179266604754.1.13286035887823782643.rpms-perl-IO-Capture-Extended-64dba4f97961@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/perl-IO-Capture-Extended
Branch : f43
Commit : 64dba4f97961f871128debe4953bcf4298c64839
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-10-22T12:46:46+02:00
Stats  : +32/-3 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-IO-Capture-Extended/c/64dba4f97961f871128debe4953bcf4298c64839?branch=f43

Log:
Install the tests

---
diff --git a/perl-IO-Capture-Extended.rpmlintrc b/perl-IO-Capture-Extended.rpmlintrc
index 794472d..2d38f01 100644
--- a/perl-IO-Capture-Extended.rpmlintrc
+++ b/perl-IO-Capture-Extended.rpmlintrc
@@ -1 +1,2 @@
 addFilter('spelling-error .* (Stdout|Stderr)')
+addFilter('-tests.noarch: W: no-documentation')

diff --git a/perl-IO-Capture-Extended.spec b/perl-IO-Capture-Extended.spec
index 7d04cd3..08a0739 100644
--- a/perl-IO-Capture-Extended.spec
+++ b/perl-IO-Capture-Extended.spec
@@ -22,10 +22,15 @@ BuildRequires:  perl(IO::Capture::Stderr)
 BuildRequires:  perl(IO::Capture::Stdout)
 # Tests only:
 BuildRequires:  perl(lib)
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Simple) >= 0.44
+# Test::More version from Test::Simple in META.json
+BuildRequires:  perl(Test::More) >= 0.44
 Requires:       perl(IO::Capture) >= 0.05
 
+# Remove underspecified dependencies
+%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$
+# Hide private modules
+%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(_Auxiliary\\)$
+
 %description
 IO::Capture::Extended is a distribution consisting of two classes, each of
 which is a collection of subroutines which are useful in extending the
@@ -33,6 +38,17 @@ functionality of CPAN modules IO::Capture::Stdout and IO::Capture::Stderr,
 particularly when used in a testing context such as that provided by
 Test::Simple, Test::More or other modules built on Test::Builder.
 
+%package tests
+Summary:        Tests for %{name}
+Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       perl-Test-Harness
+Requires:       perl(lib)
+Requires:       perl(Test::More) >= 0.44
+
+%description tests
+Tests from %{name}. Execute them
+with "%{_libexecdir}/%{name}/test".
+
 %prep
 %setup -q -n IO-Capture-Extended-%{version}
 
@@ -42,7 +58,15 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
 
 %install
 %{make_install}
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} %{buildroot}/*
+# Install tests
+mkdir -p %{buildroot}%{_libexecdir}/%{name}
+cp -a t %{buildroot}%{_libexecdir}/%{name}
+cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
+#!/bin/sh
+cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
+EOF
+chmod +x %{buildroot}%{_libexecdir}/%{name}/test
 
 %check
 export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
@@ -64,9 +88,13 @@ make test
 %{_mandir}/man3/IO::Capture::Stderr::Extended.*
 %{_mandir}/man3/IO::Capture::Stdout::Extended.*
 
+%files tests
+%{_libexecdir}/%{name}
+
 %changelog
 * Thu Oct 22 2026 Petr Pisar <ppisar@redhat.com> - 0.14-1
 - 0.14 bump
+- Install the tests
 
 * Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-31
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild

                 reply	other threads:[~2026-10-22 10:47 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=179266604754.1.13286035887823782643.rpms-perl-IO-Capture-Extended-64dba4f97961@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