public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Set-IntSpan] rawhide: Package the tests
@ 2026-06-03  8:32 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-03  8:32 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-Set-IntSpan
Branch : rawhide
Commit : 4b66fbe60ebe5215bb029b6e2a9eca524f94c8a8
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-06-03T10:30:46+02:00
Stats  : +23/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Set-IntSpan/c/4b66fbe60ebe5215bb029b6e2a9eca524f94c8a8?branch=rawhide

Log:
Package the tests

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

diff --git a/perl-Set-IntSpan.spec b/perl-Set-IntSpan.spec
index 8e4a213..60d0bae 100644
--- a/perl-Set-IntSpan.spec
+++ b/perl-Set-IntSpan.spec
@@ -29,6 +29,15 @@ Requires:       perl(integer)
 Set::IntSpan manages sets of integers. It is optimized for sets that
 have long runs of consecutive integers.
 
+%package tests
+Summary:        Tests for %{name}
+Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires:       perl-Test-Harness
+
+%description tests
+Tests from %{name}. Execute them
+with "%{_libexecdir}/%{name}/test".
+
 %prep
 %setup -q -n Set-IntSpan-%{version}
 
@@ -38,7 +47,15 @@ perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
 
 %install
 %{make_install}
-chmod -R u+w $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}')
@@ -50,9 +67,13 @@ make test
 %{perl_vendorlib}/Set/IntSpan.pm
 %{_mandir}/man3/Set::IntSpan.3*
 
+%files tests
+%{_libexecdir}/%{name}
+
 %changelog
 * Wed Jun 03 2026 Petr Pisar <ppisar@redhat.com> - 1.19-38
 - Specify all dependencies
+- Package the tests
 
 * Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.19-37
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-03  8:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  8:32 [rpms/perl-Set-IntSpan] rawhide: Package the tests 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox