changed build root
authorAaron Klingaman <alk@cs.princeton.edu>
Wed, 14 Apr 2004 13:54:17 +0000 (13:54 +0000)
committerAaron Klingaman <alk@cs.princeton.edu>
Wed, 14 Apr 2004 13:54:17 +0000 (13:54 +0000)
ipod.spec

index ef2763a..f63afa1 100644 (file)
--- a/ipod.spec
+++ b/ipod.spec
@@ -9,7 +9,7 @@ Release: %{release}
 Copyright: GPL
 Group: System Environment/Kernel
 Source: %{name}-%{version}.tar.gz
 Copyright: GPL
 Group: System Environment/Kernel
 Source: %{name}-%{version}.tar.gz
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{_tmppath}/%{name}-%{version}root
 
 %description
 Startup service to enable Ping Of Death
 
 %description
 Startup service to enable Ping Of Death
@@ -31,7 +31,7 @@ cp pod $RPM_BUILD_ROOT/etc/init.d/
 
 
 %clean
 
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
 
 %files
 
 
 %files