From 0388671e3219f8938fbc268cbd0f43863b5a4b58 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <jples...@redhat.com>
Date: Mon, 1 Feb 2016 15:08:10 +0100
Subject: Package cleanup

---
 perl-Acme-PlayCode.spec | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)

diff --git a/perl-Acme-PlayCode.spec b/perl-Acme-PlayCode.spec
index 985ca6d..42fc8d1 100644
--- a/perl-Acme-PlayCode.spec
+++ b/perl-Acme-PlayCode.spec
@@ -1,26 +1,32 @@
 Name:           perl-Acme-PlayCode
 Version:        0.12
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Play code to win
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Acme-PlayCode/
 Source0:        
http://www.cpan.org/authors/id/F/FA/FAYLAND/Acme-PlayCode-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(List::MoreUtils)
-# META.yml states Module::Build >= 0.36, but it's just a noice made by
-# META.yml generator.
+BuildRequires:  dos2unix
+BuildRequires:  perl
 BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Run-time
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(List::MoreUtils)
 BuildRequires:  perl(Moose) >= 0.57
+BuildRequires:  perl(Moose::Role)
 BuildRequires:  perl(MooseX::Object::Pluggable) >= 0.0008
 BuildRequires:  perl(Path::Class) >= 0.16
 BuildRequires:  perl(PPI) >= 1.201
+BuildRequires:  perl(PPI::Token::Comment)
+BuildRequires:  perl(vars)
+# Tests
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  dos2unix
+# Optional tests
+BuildRequires:  perl(Test::Pod) >= 1.22
 Requires:       perl(MooseX::Object::Pluggable) >= 0.0008
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 It aims to change the code to be better (to be worse if you want).
@@ -31,29 +37,25 @@ dos2unix README
 dos2unix Changes
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 ./Build test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Feb 01 2016 Jitka Plesnikova <jples...@redhat.com> - 0.12-16
+- Package cleanup
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.12-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Acme-PlayCode.git/commit/?h=master&id=0388671e3219f8938fbc268cbd0f43863b5a4b58
--
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