Building core modules must not require non-core modules when bootstrapping

This commit is contained in:
Petr Písař 2017-05-12 13:22:37 +02:00
parent 9a5505f55b
commit 8643f1a530

View File

@ -1,7 +1,7 @@
%global cpan_version 0.27
Name: perl-Config-Perl-V
Version: 0.28
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Structured data retrieval of perl -V output
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Config-Perl-V/
@ -26,7 +26,10 @@ BuildRequires: perl(warnings)
# Digest::MD5 not used at tests
# Tests:
BuildRequires: perl(Test::More)
%if !%{defined perl_bootstrap}
# Building core modules must not require non-core modules when bootstrapping
BuildRequires: perl(Test::NoWarnings)
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Suggests: perl(Digest::MD5)
Conflicts: perl < 4:5.22.0-347
@ -52,7 +55,8 @@ make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
# Building core modules must not require non-core modules when bootstrapping
make test PERL_CORE=%{defined perl_bootstrap}
%files
%doc Changelog CONTRIBUTING.md examples README
@ -60,6 +64,9 @@ make test
%{_mandir}/man3/*
%changelog
* Fri May 12 2017 Petr Pisar <ppisar@redhat.com> - 0.28-2
- Building core modules must not require non-core modules when bootstrapping
* Thu May 11 2017 Petr Pisar <ppisar@redhat.com> - 0.28-1
- Upgrade to 0.28 as provided in perl-5.25.12