updated build root and clean target
Aaron Klingaman [Wed, 14 Apr 2004 13:59:24 +0000 (13:59 +0000)]
NodeUpdate.spec

index 09bde10..2369178 100644 (file)
@@ -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)