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}
This commit is contained in:
parent
cf94fae917
commit
df9fa60b0e
2
perl-Path-Class.rpmlintrc
Normal file
2
perl-Path-Class.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
||||
from Config import *
|
||||
addFilter("spelling-error %description -l en_US txt -> ")
|
@ -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 <paul@city-fan.org> - 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 <releng@fedoraproject.org> - 0.37-13
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user