public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Set-IntSpan] rawhide: Package the tests
Date: Wed, 03 Jun 2026 08:32:07 GMT	[thread overview]
Message-ID: <178047552719.1.17963366636765330052.rpms-perl-Set-IntSpan-4b66fbe60ebe@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-03  8:32 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=178047552719.1.17963366636765330052.rpms-perl-Set-IntSpan-4b66fbe60ebe@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