From 763e41d6eed9659f15e8b6847cfe00bab1edd426 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Tue, 24 May 2016 08:07:14 +0200
Subject: Modernize spec file

---
 perl-Test-Able.spec | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/perl-Test-Able.spec b/perl-Test-Able.spec
index db73974..d9aed8e 100644
--- a/perl-Test-Able.spec
+++ b/perl-Test-Able.spec
@@ -11,6 +11,10 @@ Patch0:         Test-Able-0.11-Moose_enum.patch
 # Adapt to Test-Simple-1.302019, bug #1338792, CPAN RT#65249
 Patch1:         Test-Able-0.11-Adapt-to-Test-Simple-1.302019.patch
 BuildArch:      noarch
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl-generators
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(List::Util)
 BuildRequires:  perl(Moose) >= 0.94
@@ -24,7 +28,7 @@ BuildRequires:  perl(Test::Builder)
 # Tests only:
 BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(Moose) >= 0.94
 
 # Do not export underspecified dependencies
@@ -42,13 +46,12 @@ flexibility and power. Namely, Moose.
 %patch1 -p1
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -delete
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -63,6 +66,7 @@ make test
 * Mon May 23 2016 Petr Pisar <ppi...@redhat.com> - 0.11-14
 - Fix Moose enum warnings (CPAN RT#92396)
 - Adapt to Test-Simple-1.302019 (bug #1338792)
+- Modernize spec file
 
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 0.11-13
 - Perl 5.24 rebuild
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Test-Able.git/commit/?h=master&id=763e41d6eed9659f15e8b6847cfe00bab1edd426
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to