public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/perl-Algorithm-Dependency] rawhide: Package the tests
Date: Thu, 04 Jun 2026 12:28:41 GMT [thread overview]
Message-ID: <178057612199.1.5856094025011824326.rpms-perl-Algorithm-Dependency-62eb8e6779fe@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/perl-Algorithm-Dependency
Branch : rawhide
Commit : 62eb8e6779febeb53bcdf95849cd2203f2d526e1
Author : Petr Písař <ppisar@redhat.com>
Date : 2026-06-04T14:27:05+02:00
Stats : +27/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/perl-Algorithm-Dependency/c/62eb8e6779febeb53bcdf95849cd2203f2d526e1?branch=rawhide
Log:
Package the tests
---
diff --git a/perl-Algorithm-Dependency.rpmlintrc b/perl-Algorithm-Dependency.rpmlintrc
new file mode 100644
index 0000000..a5d5f5e
--- /dev/null
+++ b/perl-Algorithm-Dependency.rpmlintrc
@@ -0,0 +1 @@
+addFilter('-tests\.noarch: W: no-documentation')
diff --git a/perl-Algorithm-Dependency.spec b/perl-Algorithm-Dependency.spec
index 7582d32..26db542 100644
--- a/perl-Algorithm-Dependency.spec
+++ b/perl-Algorithm-Dependency.spec
@@ -29,13 +29,25 @@ Requires: perl(List::Util) >= 1.11
Requires: perl(Params::Util) >= 0.31
# Filter under-specified dependencies
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((List::Util|Params::Util)\\)$
+%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((File::Spec|List::Util|Params::Util|Test::ClassAPI|Test::More)\\)$
%description
Algorithm::Dependency is a framework for creating simple read-only
dependency hierarchies, where you have a set of items that rely on other
items in the set, and require actions on them as well.
+%package tests
+Summary: Tests for %{name}
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+Requires: perl-Test-Harness
+Requires: perl(File::Spec) >= 0.80
+Requires: perl(Test::ClassAPI) >= 0.6
+Requires: perl(Test::More) >= 0.47
+
+%description tests
+Tests from %{name}. Execute them
+with "%{_libexecdir}/%{name}/test".
+
%prep
%setup -q -n Algorithm-Dependency-%{version}
@@ -45,7 +57,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
unset AUTHOR_TESTING
@@ -61,9 +81,13 @@ make test
%{_mandir}/man3/Algorithm::Dependency.*
%{_mandir}/man3/Algorithm::Dependency::*
+%files tests
+%{_libexecdir}/%{name}
+
%changelog
* Thu Jun 04 2026 Petr Pisar <ppisar@redhat.com> - 1.112-14
- Modernize a spec file
+- Package the tests
* Fri Jan 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.112-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
reply other threads:[~2026-06-04 12:28 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=178057612199.1.5856094025011824326.rpms-perl-Algorithm-Dependency-62eb8e6779fe@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