Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/perl-CPAN-Meta-Check.git#809be249154c20305d1e481db1f7d15c84687931
This commit is contained in:
DistroBaker 2021-01-12 09:35:44 +00:00
parent 90f180ffc7
commit f9aaded2ab
1 changed files with 21 additions and 7 deletions

View File

@ -8,15 +8,17 @@
Name: perl-CPAN-Meta-Check
Summary: Verify requirements in a CPAN::Meta object
Version: 0.014
Release: 13%{?dist}
Release: 14%{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/CPAN-Meta-Check
Source0: http://cpan.metacpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/CPAN/CPAN-Meta-Check-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Module
BuildRequires: perl(base)
@ -32,7 +34,11 @@ BuildRequires: perl(Env)
BuildRequires: perl(lib)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.88
%if %{with perl_CPAN_Meta_Check_enables_extra_test}
%if %{with perl_CPAN_Meta_Check_enables_extra_test} && !%{defined perl_bootstrap}
# Break a build cycle: perl-Pod-Coverage-TrustPod → perl-Pod-Eventual
# → perl-Mixin-Linewise → perl-Sub-Exporter → perl-Params-Util
# → perl-Config-AutoConf → perl-File-Slurper → perl-Test-Warnings
# → perl-CPAN-Meta-Check
# Extra tests
BuildRequires: perl(blib)
BuildRequires: perl(File::Spec)
@ -54,14 +60,15 @@ present.
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags}
%{make_build}
%install
make install DESTDIR=%{buildroot}
%{make_install}
%{_fixperms} -c %{buildroot}
%check
make test
%if %{with perl_CPAN_Meta_Check_enables_extra_test}
%if %{with perl_CPAN_Meta_Check_enables_extra_test} && !%{defined perl_bootstrap}
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%endif
@ -72,6 +79,13 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%{_mandir}/man3/CPAN::Meta::Check.3*
%changelog
* Tue Jan 12 2021 Paul Howarth <paul@city-fan.org> - 0.014-14
- Spec clean-up
- Use author-independent source URL
- Specify all build dependencies
- Use %%{make_build} and %%{make_install}
- Fix permissions of installed files
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.014-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild