From df9fa60b0ebaec156f67cdf75c89374119a78a36 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Wed, 28 Aug 2019 12:02:14 +0100 Subject: [PATCH] Modernize spec - Switch to ExtUtils::MakeMaker flow - Don't try to run author tests during package build - Modernize spec using %{make_build} and %{make_install} --- perl-Path-Class.rpmlintrc | 2 ++ perl-Path-Class.spec | 30 ++++++++++++++---------------- 2 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 perl-Path-Class.rpmlintrc diff --git a/perl-Path-Class.rpmlintrc b/perl-Path-Class.rpmlintrc new file mode 100644 index 0000000..b6e696f --- /dev/null +++ b/perl-Path-Class.rpmlintrc @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error %description -l en_US txt -> ") diff --git a/perl-Path-Class.spec b/perl-Path-Class.spec index c75073d..68f39a4 100644 --- a/perl-Path-Class.spec +++ b/perl-Path-Class.spec @@ -1,6 +1,6 @@ Name: perl-Path-Class Version: 0.37 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Cross-platform path specification manipulation License: GPL+ or Artistic URL: https://metacpan.org/release/Path-Class @@ -9,9 +9,9 @@ BuildArch: noarch # Module Build BuildRequires: coreutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators -BuildRequires: perl(Module::Build) > 0.36 +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Module Runtime BuildRequires: perl(Carp) BuildRequires: perl(Cwd) @@ -32,14 +32,7 @@ BuildRequires: perl(strict) BuildRequires: perl(Test) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(warnings) -# Author Tests -%if !%{defined perl_bootstrap} -BuildRequires: perl(English) -# Cycle: perl-Path-Class → perl-Test-Perl-Critic → perl-Perl-Critic → -# perl-Pod-Spell → perl-File-ShareDir-ProjectDistDir → perl-Path-Class -BuildRequires: perl(Test::Perl::Critic) -%endif -# Runtime +# Dependencies Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(File::Copy) Requires: perl(Perl::OSType) @@ -55,15 +48,15 @@ and NetWare. %setup -q -n Path-Class-%{version} %build -perl Build.PL --installdirs=vendor -./Build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -./Build install --destdir=%{buildroot} --create_packlist=0 -%{_fixperms} %{buildroot} +%{make_install} +%{_fixperms} -c %{buildroot} %check -AUTHOR_TESTING=1 ./Build test +make test %files %if 0%{?_licensedir:1} @@ -79,6 +72,11 @@ AUTHOR_TESTING=1 ./Build test %{_mandir}/man3/Path::Class::File.3* %changelog +* Wed Aug 28 2019 Paul Howarth - 0.37-14 +- Switch to ExtUtils::MakeMaker flow +- Don't try to run author tests during package build +- Modernize spec using %%{make_build} and %%{make_install} + * Fri Jul 26 2019 Fedora Release Engineering - 0.37-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild