Modernize a spec file

This commit is contained in:
Petr Písař 2021-03-09 09:36:22 +01:00
parent e1adc8042f
commit ce1214051a

View File

@ -17,11 +17,10 @@ Patch0: App-cpanminus-1.7044-SHA1-SHA256-in-checksum-chat.patch
BuildArch: noarch
BuildRequires: %{_bindir}/podselect
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long)
@ -134,12 +133,11 @@ done
%patch0 -p1
%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=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{make_install}
%{_fixperms} %{buildroot}/*
%check