Don't run extra tests for EPEL builds
This commit is contained in:
parent
b40bbf349c
commit
88c00a4cb9
|
@ -1,11 +1,18 @@
|
|||
#TODO: BR: perl(Test::CheckManifest) ≥ 1.24 when available
|
||||
|
||||
# Run extra tests
|
||||
%if ! (0%{?rhel})
|
||||
%bcond_without perl_Software_License_CCpack_enables_extra_tests
|
||||
%else
|
||||
%bcond_with perl_Software_License_CCpack_enables_extra_tests
|
||||
%endif
|
||||
|
||||
# noarch, but to avoid debug* files interfering with manifest test:
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: perl-Software-License-CCpack
|
||||
Version: 1.11
|
||||
Release: 19%{?dist}
|
||||
Release: 20%{?dist}
|
||||
Summary: Software::License pack for Creative Commons' licenses
|
||||
License: LGPLv3
|
||||
URL: https://metacpan.org/release/Software-License-CCpack
|
||||
|
@ -33,7 +40,7 @@ BuildRequires: perl(List::Util)
|
|||
BuildRequires: perl(Test::CheckDeps) >= 0.010
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
# Extra Tests
|
||||
%if 0%{!?perl_bootstrap:1}
|
||||
%if 0%{!?perl_bootstrap:1} && %{with perl_Software_License_CCpack_enables_extra_tests}
|
||||
BuildRequires: perl(Pod::Coverage::TrustPod)
|
||||
BuildRequires: perl(Test::CPAN::Meta::JSON)
|
||||
BuildRequires: perl(Test::DistManifest)
|
||||
|
@ -73,7 +80,7 @@ find %{buildroot} -type f -name .packlist -delete
|
|||
|
||||
%check
|
||||
make test
|
||||
%if 0%{!?perl_bootstrap:1}
|
||||
%if 0%{!?perl_bootstrap:1} && %{with perl_Software_License_CCpack_enables_extra_tests}
|
||||
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" RELEASE_TESTING=1
|
||||
%endif
|
||||
|
||||
|
@ -109,9 +116,12 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))" RELEASE_TESTING=1
|
|||
%{_mandir}/man3/Software::License::CC_PDM_1_0.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-19
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Tue Sep 24 2019 Paul Howarth <paul@city-fan.org> - 1.11-19
|
||||
- Don't run extra tests for EPEL builds
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue