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
|
Name: perl-Path-Class
|
||||||
Version: 0.37
|
Version: 0.37
|
||||||
Release: 13%{?dist}
|
Release: 14%{?dist}
|
||||||
Summary: Cross-platform path specification manipulation
|
Summary: Cross-platform path specification manipulation
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Path-Class
|
URL: https://metacpan.org/release/Path-Class
|
||||||
@ -9,9 +9,9 @@ BuildArch: noarch
|
|||||||
# Module Build
|
# Module Build
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: perl-interpreter
|
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(Module::Build) > 0.36
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
# Module Runtime
|
# Module Runtime
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Cwd)
|
BuildRequires: perl(Cwd)
|
||||||
@ -32,14 +32,7 @@ BuildRequires: perl(strict)
|
|||||||
BuildRequires: perl(Test)
|
BuildRequires: perl(Test)
|
||||||
BuildRequires: perl(Test::More) >= 0.88
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
BuildRequires: perl(warnings)
|
BuildRequires: perl(warnings)
|
||||||
# Author Tests
|
# Dependencies
|
||||||
%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
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
Requires: perl(File::Copy)
|
Requires: perl(File::Copy)
|
||||||
Requires: perl(Perl::OSType)
|
Requires: perl(Perl::OSType)
|
||||||
@ -55,15 +48,15 @@ and NetWare.
|
|||||||
%setup -q -n Path-Class-%{version}
|
%setup -q -n Path-Class-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Build.PL --installdirs=vendor
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||||
./Build
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
%{make_install}
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} -c %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
AUTHOR_TESTING=1 ./Build test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%if 0%{?_licensedir:1}
|
%if 0%{?_licensedir:1}
|
||||||
@ -79,6 +72,11 @@ AUTHOR_TESTING=1 ./Build test
|
|||||||
%{_mandir}/man3/Path::Class::File.3*
|
%{_mandir}/man3/Path::Class::File.3*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.37-13
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user