git://git.onelab.eu
/
nodeupdate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated build root and clean target
[nodeupdate.git]
/
NodeUpdate.spec
diff --git
a/NodeUpdate.spec
b/NodeUpdate.spec
index
09bde10
..
2369178
100644
(file)
--- 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
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
%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
cp NodeUpdate.py $RPM_BUILD_ROOT/usr/local/planetlab/bin/
%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%files
%defattr(-,root,root)