[perl-SOAP-Lite/el5] Clean buildroot

Paul Howarth pghmcfc at fedoraproject.org
Tue May 31 11:25:37 UTC 2011


commit 25f5fc9a80e95a4a1fdebf7419bb745e1fbc5b6b
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue May 31 12:00:44 2011 +0100

    Clean buildroot

 perl-SOAP-Lite.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/perl-SOAP-Lite.spec b/perl-SOAP-Lite.spec
index a2e1cdc..5b89d92 100644
--- a/perl-SOAP-Lite.spec
+++ b/perl-SOAP-Lite.spec
@@ -9,7 +9,7 @@ Source0:    http://search.cpan.org/CPAN/authors/id/M/MK/MKUTTER/SOAP-Lite-%{vers
 # rhbz#663931, rt#58538
 Patch0:     perl-SOAP-Lite-0.712-mod_perl.patch
 BuildArch:  noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 # Core package
 BuildRequires:  perl(Class::Inspector)
@@ -71,6 +71,7 @@ find examples -type f -exec chmod ugo-x {} \;
 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 ';'
@@ -79,6 +80,9 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 %check
 make test
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %files
 %defattr(-,root,root,-)
 # For license text(s), see the perl package.


More information about the perl-devel mailing list