From 809be249154c20305d1e481db1f7d15c84687931 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Tue, 12 Jan 2021 09:21:36 +0000 Subject: [PATCH] Spec clean-up - Use author-independent source URL - Specify all build dependencies - Use %{make_build} and %{make_install} - Fix permissions of installed files --- perl-CPAN-Meta-Check.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/perl-CPAN-Meta-Check.spec b/perl-CPAN-Meta-Check.spec index 99ab0aa..dd0d200 100644 --- a/perl-CPAN-Meta-Check.spec +++ b/perl-CPAN-Meta-Check.spec @@ -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) @@ -36,7 +38,7 @@ BuildRequires: perl(Test::More) >= 0.88 # 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. +# → perl-CPAN-Meta-Check # Extra tests BuildRequires: perl(blib) BuildRequires: perl(File::Spec) @@ -58,10 +60,11 @@ 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 @@ -76,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 - 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 - 0.014-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild