Remove perl_bootstrap code because perl-TestML >= 0.54.05 does not require perl-Pegex

Since perl-TestML >= 0.54.05 (Fedora >= 30), TestML does not use
Pegex. This code is also useless on older Fedoras because perl-Pegex
bundles TestML.
This commit is contained in:
Petr Písař 2018-11-19 09:43:58 +01:00
parent 1072b01868
commit a5bb6d3bbb
1 changed files with 2 additions and 9 deletions

View File

@ -28,11 +28,8 @@ BuildRequires: perl(base)
BuildRequires: perl(File::Basename)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
%if !%{defined perl_bootstrap}
# Break dependency cycle: perl-Pegex → perl-TestML → perl-Pegex
# TestML not used
# TestML::Compiler::Lite not used
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Data::Dumper)
Requires: perl(JSON::XS) perl(JSON::PP)
@ -63,13 +60,7 @@ find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%check
#rm -f t/compiler-checks.t t/compiler-equivalence.t t/compiler.t t/error.t t/optimize.t t/tree-pegex.t t/tree.t
%if %{defined perl_bootstrap}
# Break dependency cycle: perl-Pegex → perl-TestML → perl-Pegex
make test TEST_FILES="$(find t -name '*.t' \
\! -exec grep -q -e 'use TestML' {} \; -print | tr \"\\n\" ' ')"
%else
make test
%endif
%files
%doc Changes CONTRIBUTING LICENSE README
@ -79,6 +70,8 @@ make test
%changelog
* Mon Nov 19 2018 Petr Pisar <ppisar@redhat.com> - 0.70-2
- Do not depend on bundled TestML
- Remove perl_bootstrap code because perl-TestML >= 0.54_05 does not require
perl-Pegex
* Mon Nov 12 2018 Gerd Pokorra <gp@zimt.uni-siegen.de> 0.70-1
- Update to 0.70