[perl-Devel-PatchPerl/el5/master] add BuildRoot tag, prep for install, and clean

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit efa9014f91e26cbf258026e096c7ff5647afb2cc
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Fri May 6 06:17:00 2011 +0200

    add BuildRoot tag, prep for install, and clean

 perl-Devel-PatchPerl.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/perl-Devel-PatchPerl.spec b/perl-Devel-PatchPerl.spec
index 3ec401e..8ea5f95 100644
--- a/perl-Devel-PatchPerl.spec
+++ b/perl-Devel-PatchPerl.spec
@@ -8,6 +8,7 @@ URL:            http://search.cpan.org/dist/Devel-PatchPerl/
 Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/Devel-PatchPerl-%{version}.tar.gz
 Patch0:         el5-versions.patch
 BuildArch:      noarch
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires:  perl >= 1:v5.6.0
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::pushd) >= 1.00
@@ -34,6 +35,7 @@ Devel::PPPort's buildperl.pl.
 make %{?_smp_mflags}
 
 %install
+rm -rf %{buildroot}
 make pure_install DESTDIR=%{buildroot}
 
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
@@ -41,6 +43,9 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 
 %{_fixperms} %{buildroot}/*
 
+%clean
+rm -rf %{buildroot}
+
 %check
 make test
 
@@ -55,6 +60,7 @@ make test
 %changelog
 * Fri May 06 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.30-1.1
 - lower minimum version of IPC::Cmd to 0.38 for el5
+- add BuildRoot tag, prep for install, and clean
 
 * Wed Apr 27 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.30-1
 - Specfile autogenerated by cpanspec 1.78.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel


[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux