From 77678eae07f2699512d7b9c95cf6a110ae8085b9 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Mon, 7 Oct 2019 14:36:52 +0200 Subject: [PATCH] Specify all dependencies; Modernize spec using %%{make_build} and %%{make_install} --- perl-Crypt-RC4.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/perl-Crypt-RC4.spec b/perl-Crypt-RC4.spec index 8a34947..0388c52 100644 --- a/perl-Crypt-RC4.spec +++ b/perl-Crypt-RC4.spec @@ -7,8 +7,12 @@ URL: https://metacpan.org/release/Crypt-RC4 Source0: https://cpan.metacpan.org/authors/id/S/SI/SIFUKURT/Crypt-RC4-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description @@ -29,16 +33,12 @@ have scrutinized the algorithm and it is considered secure. %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 PERL_INSTALL_ROOT=%{buildroot} - -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; - +%{make_install} %{_fixperms} %{buildroot}/*