From c712024283d5fdab2e9aaeec9053c59892e7476b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Wed, 27 Jan 2016 08:39:14 +0100
Subject: Modernize spec file

---
 perl-Perl-Critic-Storable.spec | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/perl-Perl-Critic-Storable.spec b/perl-Perl-Critic-Storable.spec
index 228ed2e..5c28fba 100644
--- a/perl-Perl-Critic-Storable.spec
+++ b/perl-Perl-Critic-Storable.spec
@@ -1,19 +1,27 @@
 Name:           perl-Perl-Critic-Storable
 Version:        0.01
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Policy for Storable.pm
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Perl-Critic-Storable/
 Source0:        
http://www.cpan.org/authors/id/M/MA/MATTD/Perl-Critic-Storable-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Perl::Critic)
+# Run-time:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Perl::Critic::Policy)
+BuildRequires:  perl(Perl::Critic::Utils)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Tests:
+BuildRequires:  perl(Perl::Critic::TestUtils)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-# Plug-in for perlcritic/Test::More. Require them.
-Requires:       perl(Perl::Critic)
-Requires:       perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 An additional Perl::Critic policy for using the Storable module.
@@ -22,25 +30,26 @@ An additional Perl::Critic policy for using the Storable 
module.
 %setup -q -n Perl-Critic-Storable-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=perl
+perl Makefile.PL INSTALLDIRS=perl
 make %{?_smp_mflags}
 
 %install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+make pure_install DESTDIR=$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 \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_privlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Wed Jan 27 2016 Petr Pisar <ppi...@redhat.com> - 0.01-14
+- Modernize spec file
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.01-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Perl-Critic-Storable.git/commit/?h=master&id=c712024283d5fdab2e9aaeec9053c59892e7476b
--
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