From 36322057973c03a0f28b172b5536bce8538ef337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Wed, 8 Jan 2020 09:01:13 +0100 Subject: [PATCH] Modernize a spec file --- .rpmlint | 2 -- perl-autodie.spec | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 .rpmlint diff --git a/.rpmlint b/.rpmlint deleted file mode 100644 index 36cc9db..0000000 --- a/.rpmlint +++ /dev/null @@ -1,2 +0,0 @@ -from Config import * -addFilter("spelling-error .* pragma"); diff --git a/perl-autodie.spec b/perl-autodie.spec index 6f2e225..9273564 100644 --- a/perl-autodie.spec +++ b/perl-autodie.spec @@ -9,11 +9,12 @@ License: GPL+ or Artistic URL: https://metacpan.org/release/autodie Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/autodie-%{version}.tar.gz BuildArch: noarch +BuildRequires: coreutils BuildRequires: findutils BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators -BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: @@ -79,12 +80,11 @@ autodie in preference to "Fatal". find -type f -exec chmod -x {} + %build -perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{make_install} %{_fixperms} $RPM_BUILD_ROOT/* %check