public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-IO-Capture-Extended] f43: Install the tests
@ 2026-10-22 10:47
0 siblings, 0 replies; only message in thread
From: @ 2026-10-22 10:47 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-22 10:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-22 10:47 [rpms/perl-IO-Capture-Extended] f43: Install the tests
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox