Modernize a spec file

This commit is contained in:
Petr Písař 2020-01-08 09:01:13 +01:00
parent 221e4f7a83
commit 3632205797
2 changed files with 5 additions and 7 deletions

View File

@ -1,2 +0,0 @@
from Config import *
addFilter("spelling-error .* pragma");

View File

@ -9,11 +9,12 @@ License: GPL+ or Artistic
URL: https://metacpan.org/release/autodie URL: https://metacpan.org/release/autodie
Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/autodie-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/autodie-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils BuildRequires: findutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict) BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Run-time: # Run-time:
@ -79,12 +80,11 @@ autodie in preference to "Fatal".
find -type f -exec chmod -x {} + find -type f -exec chmod -x {} +
%build %build
perl Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=$RPM_BUILD_ROOT %{make_install}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
%check %check