Update to 0.11

- New upstream release 0.11
  - Re-packaging
- Drop running of extra tests at package build time to avoid need for
  bootstrapping
- Use %{make_build} and %{make_install}
This commit is contained in:
Paul Howarth 2020-05-14 10:27:26 +01:00
parent 45cc633b3e
commit 7047989d95
2 changed files with 14 additions and 33 deletions

View File

@ -1,24 +1,17 @@
# Run extra test
%bcond_without perl_Test_Requires_enables_extra_test
# Only need manual requires for "use base XXX;" prior to rpm 4.9
%global rpm49 %(rpm --version | perl -p -e 's/^.* (\\d+)\\.(\\d+).*/sprintf("%d.%03d",$1,$2) ge 4.009 ? 1 : 0/e' 2>/dev/null || echo 0)
Name: perl-Test-Requires
Summary: Checks to see if a given module can be loaded
Version: 0.10
Release: 19%{?dist}
Version: 0.11
Release: 1%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Requires
Source0: https://cpan.metacpan.org/modules/by-module/Test/Test-Requires-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.64
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Module
BuildRequires: perl(base)
BuildRequires: perl(strict)
@ -27,19 +20,8 @@ BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::More) >= 0.47
%if %{with perl_Test_Requires_enables_extra_test}
# Extra Tests
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
# Test::Perl::Critic -> Perl::Critic -> PPIx::Regexp -> Test::Kwalitee ->
# Module::CPANTS::Analyse -> Test::Warn -> Sub::Uplevel -> Pod::Wordlist::hanekomu -> Test::Requires
BuildRequires: perl(Test::Perl::Critic)
%endif
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if ! %{rpm49}
Requires: perl(Test::Builder::Module)
%endif
%description
Test::Requires checks to see if the module can be loaded.
@ -50,32 +32,31 @@ If this fails, rather than failing tests this skips all tests.
%setup -q -n Test-Requires-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{make_install}
%{_fixperms} -c %{buildroot}
%check
# note the "skipped" warnings indicate success :)
make test
%if %{with perl_Test_Requires_enables_extra_test}
make test TEST_FILES="xt/*.t"
%endif
%files
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README.md t/ xt/
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Requires.3*
%changelog
* Thu May 14 2020 Paul Howarth <paul@city-fan.org> - 0.11-1
- Update to 0.11
- Re-packaging
- Drop running of extra tests at package build time to avoid need for
bootstrapping
- Use %%{make_build} and %%{make_install}
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

View File

@ -1 +1 @@
0d5da779609d0c8fa6f796b45ff8c6f3 Test-Requires-0.10.tar.gz
SHA512 (Test-Requires-0.11.tar.gz) = 770ea2469e386296fe1ded3630fa9b7f30ee22acd3522fb83ad95171ccb96812ef2fc5fa30d658a405dc1c435d35b6d476cc054021d74e04b419b517f6f898fa