[libgnomecanvasmm26] use %buildroot macro rather than $RPM_BUILD_ROOT

Nils Philippsen nphilipp at fedoraproject.org
Wed Jul 13 11:11:30 UTC 2011


commit 3f94179967246625c15c2016cf11ab550e9ad83f
Author: Nils Philippsen <nils at redhat.com>
Date:   Wed Jul 13 13:06:38 2011 +0200

    use %buildroot macro rather than $RPM_BUILD_ROOT

 libgnomecanvasmm.spec |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnomecanvasmm.spec b/libgnomecanvasmm.spec
index 6259a51..c556288 100644
--- a/libgnomecanvasmm.spec
+++ b/libgnomecanvasmm.spec
@@ -43,13 +43,13 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %buildroot
 make DESTDIR=${RPM_BUILD_ROOT} install
-find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+find %buildroot -type f -name "*.la" -exec rm -f {} ';'
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %buildroot
 
 
 %post


More information about the scm-commits mailing list