public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-MooX-Types-MooseLike-Numeric] rawhide: Package the tests
Date: Fri, 05 Jun 2026 11:58:30 GMT [thread overview]
Message-ID: <178066071007.1.7811430256000666329.rpms-perl-MooX-Types-MooseLike-Numeric-56fa492dbbbf@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-MooX-Types-MooseLike-Numeric
Branch : rawhide
Commit : 56fa492dbbbfb0cff422824702126a44b2a997f7
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-06-05T13:56:56+02:00
Stats : +34/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-MooX-Types-MooseLike-Numeric/c/56fa492dbbbfb0cff422824702126a44b2a997f7?branch=rawhide
Log:
Package the tests
---
diff --git a/perl-MooX-Types-MooseLike-Numeric.rpmlintrc b/perl-MooX-Types-MooseLike-Numeric.rpmlintrc
new file mode 100644
index 0000000..a5d5f5e
--- /dev/null
+++ b/perl-MooX-Types-MooseLike-Numeric.rpmlintrc
@@ -0,0 +1 @@
+addFilter('-tests\.noarch: W: no-documentation')
diff --git a/perl-MooX-Types-MooseLike-Numeric.spec b/perl-MooX-Types-MooseLike-Numeric.spec
index 3448229..f98966e 100644
--- a/perl-MooX-Types-MooseLike-Numeric.spec
+++ b/perl-MooX-Types-MooseLike-Numeric.spec
@@ -11,6 +11,7 @@ BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
+BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
@@ -28,17 +29,35 @@ BuildRequires: perl(Moose)
Requires: perl(MooX::Types::MooseLike) >= 0.23
# Filter under-specified requires
-%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(MooX::Types::MooseLike\\)$
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Moo|MooX::Types::MooseLike|Test::Fatal|Test::More)\\)$
%description
This Perl module provides a set of numeric types to be used in Moo-based
classes.
+%package tests
+Summary: Tests for %{name}
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: perl-Test-Harness
+Requires: perl(Moo) > 1.004002
+Requires: perl(Moose)
+Requires: perl(Test::Fatal) >= 0.003
+Requires: perl(Test::More) >= 0.96
+
+%description tests
+Tests from %{name}. Execute them
+with "%{_libexecdir}/%{name}/test".
+
%prep
%setup -q -n MooX-Types-MooseLike-Numeric-%{version}
# Remove unused, but dangerous code
rm maint/Makefile.PL.include
perl -i -ne 'print $_ unless m{\A\Emaint/Makefile.PL.include\E}' MANIFEST
+# Help generators to recognize Perl scripts
+for F in t/*.t; do
+ perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
+ chmod +x "$F"
+done
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
@@ -46,7 +65,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
make test
@@ -59,9 +86,13 @@ make test
%{perl_vendorlib}/MooX/Types/MooseLike/Numeric.pm
%{_mandir}/man3/MooX::Types::MooseLike::Numeric.*
+%files tests
+%{_libexecdir}/%{name}
+
%changelog
* Fri Jun 05 2026 Petr Pisar <ppisar@redhat.com> - 1.03-29
- Moderize a spec file
+- Package the tests
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
reply other threads:[~2026-06-05 11:58 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=178066071007.1.7811430256000666329.rpms-perl-MooX-Types-MooseLike-Numeric-56fa492dbbbf@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