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:
parent
45cc633b3e
commit
7047989d95
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user