From ef7ba921ad93c72d1eddfa675be78cb887cc015f Mon Sep 17 00:00:00 2001 From: Paul Howarth <[email protected]> Date: Sun, 4 Jun 2017 11:52:21 +0100 Subject: Simplify find command using -delete
--- perl-MetaCPAN-API-Tiny.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-MetaCPAN-API-Tiny.spec b/perl-MetaCPAN-API-Tiny.spec index 20502de..d22a8f3 100644 --- a/perl-MetaCPAN-API-Tiny.spec +++ b/perl-MetaCPAN-API-Tiny.spec @@ -9,6 +9,9 @@ URL: https://metacpan.org/release/MetaCPAN-API-Tiny Source0: http://cpan.metacpan.org/authors/id/J/JL/JLUIS/MetaCPAN-API-Tiny-%{version}.tar.gz BuildArch: noarch # Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) @@ -55,8 +58,8 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -%{_fixperms} %{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{buildroot} %check %if !%{with network_tests} -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-MetaCPAN-API-Tiny.git/commit/?h=master&id=ef7ba921ad93c72d1eddfa675be78cb887cc015f _______________________________________________ perl-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
