[perl-Data-Section-Simple] Use Module::Build::Tiny's new --create_packlist option

Paul Howarth pghmcfc at fedoraproject.org
Mon May 20 18:02:24 UTC 2013


commit 2281da1a3509b3f1487abb96f71626339916f700
Author: Paul Howarth <paul at city-fan.org>
Date:   Mon May 20 19:02:11 2013 +0100

    Use Module::Build::Tiny's new --create_packlist option

 perl-Data-Section-Simple.spec |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/perl-Data-Section-Simple.spec b/perl-Data-Section-Simple.spec
index 357fe28..b16fdeb 100644
--- a/perl-Data-Section-Simple.spec
+++ b/perl-Data-Section-Simple.spec
@@ -3,7 +3,7 @@
 
 Name:		perl-Data-Section-Simple
 Version:	0.04
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Read data from __DATA__
 License:	GPL+ or Artistic
 Group:		Development/Libraries
@@ -13,7 +13,7 @@ Patch1:		Data-Section-Simple-0.04-old-Test::More.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:	noarch
 # Build
-BuildRequires:	perl(Module::Build::Tiny)
+BuildRequires:	perl(Module::Build::Tiny) >= 0.020
 # Module
 BuildRequires:	perl(base)
 BuildRequires:	perl(Exporter)
@@ -44,8 +44,7 @@ perl Build.PL --installdirs=vendor
 
 %install
 rm -rf %{buildroot}
-./Build install --destdir=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+./Build install --destdir=%{buildroot} --create_packlist=0
 %{_fixperms} %{buildroot}
 
 %check
@@ -60,6 +59,9 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Data::Section::Simple.3pm*
 
 %changelog
+* Mon May 20 2013 Paul Howarth <paul at city-fan.org> - 0.04-2
+- Use Module::Build::Tiny's new --create_packlist option
+
 * Fri Mar 29 2013 Paul Howarth <paul at city-fan.org> - 0.04-1
 - Update to 0.04
   - Do not throw exceptions when there's no template


More information about the scm-commits mailing list