Fix automatic detection of requires in *tests package
This commit is contained in:
parent
9417abe22d
commit
21751c0983
@ -13,7 +13,7 @@ Name: perl-Test-Simple
|
||||
Summary: Basic utilities for writing tests
|
||||
Epoch: 3
|
||||
Version: 1.302198
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
# CC0-1.0: lib/ok.pm
|
||||
# Public Domain: lib/Test/Tutorial.pod
|
||||
# GPL-1.0-or-later OR Artistic-1.0-Perl: the rest of the distribution
|
||||
@ -23,6 +23,7 @@ Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Simple-%{v
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
@ -94,7 +95,7 @@ Requires: perl(Term::Table)
|
||||
%{?perl_default_filter}
|
||||
|
||||
# Remove private test modules
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Dev::Null|MyOverload|Test::Builder::NoOutput|Test::Simple::Catch|TieOut|main::HBase|main::HBase::Wrapped\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Dev::Null|MyOverload|MyTest|SmallTest|Test::Builder::NoOutput|Test::Simple::Catch|TieOut|main::HBase|main::HBase::Wrapped\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Dev::Null|Dummy|MyTest|NoExporter|Overloaded|Overloaded::(Compare|Ify|Partial)|SigDie|SkipAll|SmallTest|Test::Builder::NoOutput|Test::Builder::NoOutput::Tee|Test::Simple::Catch|TieOut\\)$
|
||||
%if %{without perl_Test_Simple_enables_optional_test}
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Test::Script|Test::Class\\)$
|
||||
@ -118,10 +119,12 @@ with "%{_libexecdir}/%{name}/test".
|
||||
%prep
|
||||
%setup -q -n Test-Simple-%{version}
|
||||
# Help generators to recognize Perl scripts
|
||||
for F in t/*.t; do
|
||||
for F in $(find t/ -name '*.t'); do
|
||||
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||
chmod +x "$F"
|
||||
done
|
||||
# Update line after previous update
|
||||
perl -pi -e "s/line 9/line 10/" t/Legacy_And_Test2/diag_event_on_ok.t
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||
@ -238,6 +241,9 @@ make test %{!?perl_bootstrap:AUTHOR_TESTING=1}
|
||||
%{_libexecdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Fri Jul 12 2024 Michal Josef Špaček <mspacek@redhat.com> - 3:1.302198-6
|
||||
- Fix automatic detection of requires in *tests package
|
||||
|
||||
* Thu Jul 11 2024 Michal Josef Špaček <mspacek@redhat.com> - 3:1.302198-5
|
||||
- Package tests
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user