[ghc-hinotify/f13/master: 1/2] Use %{buildroot} over $RPM_BUILD_ROOT

Ben Boeckel mathstuf at fedoraproject.org
Fri Sep 3 21:59:11 UTC 2010


commit c8e34467fc3740aee4a6ea1cc6857a88dae6c1d2
Author: Ben Boeckel <MathStuf at gmail.com>
Date:   Fri Sep 3 17:55:27 2010 -0400

    Use %{buildroot} over $RPM_BUILD_ROOT

 ghc-hinotify.spec |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/ghc-hinotify.spec b/ghc-hinotify.spec
index 4602828..2a96949 100644
--- a/ghc-hinotify.spec
+++ b/ghc-hinotify.spec
@@ -46,14 +46,14 @@ This package provides the shared library.
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 %ghc_lib_install
-mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
-install -p README $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/README
+mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
+install -p README %{buildroot}/%{_docdir}/%{name}-%{version}/README
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 
 %{?ghc_lib_package}


More information about the scm-commits mailing list