[firefox] No longer need to define and clean up the build root

Christopher Aillon caillon at fedoraproject.org
Sat Jan 29 22:56:43 UTC 2011


commit c763d0e4b38b8d01bb012e4ef0a81b9b40804afb
Author: Christopher Aillon <caillon at redhat.com>
Date:   Sat Jan 29 13:55:50 2011 -0800

    No longer need to define and clean up the build root
    
    In Fedora 13+ this is handled automatically.
    http://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag
    http://fedoraproject.org/wiki/Packaging/Guidelines#.25clean

 firefox.spec |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/firefox.spec b/firefox.spec
index 8318199..aa3fea3 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -74,7 +74,6 @@ Patch11:        firefox-default.patch
 
 # ---------------------------------------------------
 
-BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires:  desktop-file-utils
 BuildRequires:  system-bookmarks
 BuildRequires:  xulrunner-devel >= %{xulrunner_version}
@@ -181,7 +180,6 @@ make buildsymbols
 #---------------------------------------------------------------------
 
 %install
-%{__rm} -rf $RPM_BUILD_ROOT
 cd %{tarballdir}
 
 INTERNAL_GECKO=%{internal_version}
@@ -309,11 +307,6 @@ sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" $RPM_BUILD_ROOT/%{
 
 #---------------------------------------------------------------------
 
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
-#---------------------------------------------------------------------
-
 %post
 update-desktop-database &> /dev/null || :
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :


More information about the scm-commits mailing list