From b90a66dcba9bcfbc1fc27ffa9b7b1d92cd80a60b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corse...@fedoraproject.org>
Date: Sun, 31 Jan 2016 08:36:34 +0100
Subject: Modernize spec.

- Remove inc/.
---
 perl-Parallel-Scoreboard.spec | 32 +++++++++++++-------------------
 1 file changed, 13 insertions(+), 19 deletions(-)

diff --git a/perl-Parallel-Scoreboard.spec b/perl-Parallel-Scoreboard.spec
index 7535193..45f3147 100644
--- a/perl-Parallel-Scoreboard.spec
+++ b/perl-Parallel-Scoreboard.spec
@@ -1,6 +1,6 @@
 Name:           perl-Parallel-Scoreboard
 Version:        0.07
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Scoreboard for monitoring status of many processes
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -10,13 +10,8 @@ BuildArch:      noarch
 
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Temp)
-BuildRequires:  perl(Spiffy)
 BuildRequires:  perl(Test::Warn)
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Base)
-BuildRequires:  perl(Test::Base::Filter)
-BuildRequires:  perl(Test::Builder)
-BuildRequires:  perl(Test::Builder::Module)
 
 # Run-time deps
 BuildRequires: perl(Class::Accessor::Lite)
@@ -30,6 +25,10 @@ BuildRequires: perl(POSIX)
 BuildRequires: perl(strict)
 BuildRequires: perl(warnings)
 
+BuildRequires: perl(inc::Module::Install)
+BuildRequires: perl(Module::Install::TestBase)
+BuildRequires: perl(Module::Install::ReadmeFromPod)
+
 Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
 
 %description
@@ -39,26 +38,17 @@ like the status module of the Apache HTTP server.
 
 %prep
 %setup -q -n Parallel-Scoreboard-%{version}
+rm -r inc
+sed -i -e '/^inc\/.*$/d' MANIFEST
 
-# Remove bundled modules
-for f in inc/Test/More.pm inc/File/Temp.pm inc/Spiffy.pm \
-    inc/Test/Base.pm inc/Test/Base/Filter.pm \
-    inc/Test/Builder.pm inc/Test/Builder/Module.pm \
-    inc/Test/Warn.pm; do
-  pat=$(echo "$f" | sed 's,/,\\/,g;s,\.,\\.,g')
-  rm $f
-  sed -i -e "/$pat/d" MANIFEST
-done
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
+
 %install
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
@@ -70,6 +60,10 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Sun Jan 31 2016 Ralf Corsépius <corse...@fedoraproject.org> - 0.07-5
+- Modernize spec.
+- Remove inc/.
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.07-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v0.11.2


        
http://pkgs.fedoraproject.org/cgit/perl-Parallel-Scoreboard.git/commit/?h=master&id=b90a66dcba9bcfbc1fc27ffa9b7b1d92cd80a60b
--
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