Modernize a spec file

This commit is contained in:
Petr Písař 2020-08-19 14:31:07 +02:00
parent 2aa52043cd
commit 1664593cad

View File

@ -6,6 +6,7 @@ License: GPL+ or Artistic
URL: https://metacpan.org/release/Importer
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Importer-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
@ -30,11 +31,11 @@ other variables.
%setup -q -n Importer-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check