From: Aaron Klingaman Date: Wed, 14 Apr 2004 13:59:24 +0000 (+0000) Subject: updated build root and clean target X-Git-Tag: NODEUPDATE_0_3~3 X-Git-Url: http://git.onelab.eu/?p=nodeupdate.git;a=commitdiff_plain;h=73c4509393806e451a582a2ba941ec60347ee195 updated build root and clean target --- diff --git a/NodeUpdate.spec b/NodeUpdate.spec index 09bde10..2369178 100644 --- a/NodeUpdate.spec +++ b/NodeUpdate.spec @@ -11,7 +11,7 @@ Copyright: GPL URL: http://www.planet-lab.org Group: System Environment/Base Source: %{name}-%{version}.tar.gz -BuildRoot: /tmp/%{name}-%{version}-root +BuildRoot: %{_tmppath}/%{name}-%{version}root %description PlanetLab service to periodically update node RPMS @@ -28,6 +28,7 @@ mkdir -p $RPM_BUILD_ROOT/usr/local/planetlab/bin cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/ %clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root)