[perl-Test-Output] Update dependencies. Use DESTDIR rather than PERL_INSTALL_ROOT. Dont use macros for commands. Dont n

Marcela Mašláňová mmaslano at fedoraproject.org
Mon Nov 12 09:09:17 UTC 2012


commit 976dd549a0a8ef5532ef42c8eb43a514c7ae5fbd
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Mon Nov 12 10:08:53 2012 +0100

    Update dependencies. Use DESTDIR rather than PERL_INSTALL_ROOT. Dont use macros for commands. Dont need to remove empty directories from the buildroot.
    
    Signed-off-by: Marcela Mašláňová <mmaslano at redhat.com>

 perl-Test-Output.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/perl-Test-Output.spec b/perl-Test-Output.spec
index 61d6412..ceb1980 100644
--- a/perl-Test-Output.spec
+++ b/perl-Test-Output.spec
@@ -1,20 +1,22 @@
 Name:           perl-Test-Output
 Version:        1.01
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Utilities to test STDOUT and STDERR messages
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Test-Output/
 Source0:        http://www.cpan.org/authors/id/B/BD/BDFOY/Test-Output-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  perl(Carp)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Temp) >= 0.17
 BuildRequires:  perl(Sub::Exporter)
+BuildRequires:  perl(Test::Builder)
 BuildRequires:  perl(Test::Pod) >= 1.14
 BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Tester) >= 0.103
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Test::Output provides a simple interface for testing output sent to STDOUT
@@ -25,14 +27,13 @@ flexible as possible to the tester.
 %setup -q -n Test-Output-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 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/*
 
@@ -45,6 +46,12 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Mon Nov 12 2012 Jitka Plesnikova <jplesnik at redhat.com> - 1.01-6
+- Update dependencies
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Don't use macros for commands
+- Don't need to remove empty directories from the buildroot
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.01-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 



More information about the perl-devel mailing list