[perl-pmtools] The test suite also needs the less command in the build root.

Jose Pedro Oliveira jpo at fedoraproject.org
Wed Dec 11 15:32:10 UTC 2013


commit 086b402456cf3753782222a3a2d2dcef08c42bf0
Author: Jose Pedro Oliveira <jpo at di.uminho.pt>
Date:   Wed Dec 11 15:25:37 2013 +0000

    The test suite also needs the less command in the build root.

 perl-pmtools.spec |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/perl-pmtools.spec b/perl-pmtools.spec
index bd88bec..995f925 100644
--- a/perl-pmtools.spec
+++ b/perl-pmtools.spec
@@ -1,6 +1,6 @@
 Name:           perl-pmtools
 Version:        1.54
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A suite of small programs to help manage Perl modules
 
 Group:          Development/Libraries
@@ -10,9 +10,10 @@ Source:         http://www.cpan.org/authors/id/M/ML/MLFISHER/pmtools-%{version}.
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
+
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  less
 
 %description
 This is pmtools -- a suite of small programs to help manage modules.
@@ -35,7 +36,6 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
@@ -46,12 +46,7 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 make test
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README TODO
 %{_bindir}/*
 %{perl_vendorlib}/Devel/
@@ -61,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Dec 11 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.54-2
+- The test suite also needs the less command in the build root (F20+).
+
 * Wed Dec 11 2013 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.54-1
 - Update to 1.54.
 - New build requirement: perl(Test::More).


More information about the scm-commits mailing list