Add build-condition for optional tests

This commit is contained in:
Jitka Plesnikova 2022-04-21 07:48:51 +02:00
parent d9000ff29c
commit 4677297585

View File

@ -1,14 +1,16 @@
# Run prefork optional test
# Run prefork and optional test
%if ! (0%{?rhel})
%{bcond_without perl_Module_ScanDeps_enables_prefork}
%{bcond_without perl_Module_ScanDeps_enables_optional_tests}
%else
%{bcond_with perl_Module_ScanDeps_enables_prefork}
%{bcond_with perl_Module_ScanDeps_enables_optional_tests}
%endif
Name: perl-Module-ScanDeps
Summary: Recursively scan Perl code for dependencies
Version: 1.31
Release: 5%{?dist}
Release: 6%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-ScanDeps
Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-%{version}.tar.gz
@ -57,6 +59,7 @@ BuildRequires: perl(Net::FTP)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
# Optional tests:
%if %{with perl_Module_ScanDeps_enables_optional_tests}
BuildRequires: perl(Module::Pluggable)
%if !%{defined perl_bootstrap} && %{with perl_Module_ScanDeps_enables_prefork}
# Cycle: perl-Module-ScanDeps → perl-prefork → perl-Perl-MinimumVersion
@ -66,6 +69,7 @@ BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(prefork)
%endif
BuildRequires: perl(Test::Pod) >= 1.00
%endif
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(B)
Requires: perl(DynaLoader)
@ -159,6 +163,9 @@ make test
%{_libexecdir}/%{name}
%changelog
* Thu Apr 21 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.31-6
- Add build-condition for optional tests
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.31-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild