public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Algorithm-Dependency] rawhide: Package the tests
@ 2026-06-04 12:28
0 siblings, 0 replies; only message in thread
From: @ 2026-06-04 12:28 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-04 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04 12:28 [rpms/perl-Algorithm-Dependency] 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