aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-12-19 10:39:33 +0000
committerOlivier Blin <oblin@mandriva.com>2007-12-19 10:39:33 +0000
commit607e6ccbc58d54b73e5737010ba196d7e7e0c5cc (patch)
tree72a6e1f1f150e8a005b5d59f1dc7d6494cdc288a
parent43af609d71cf261a3c51b62161b444396e37e3b7 (diff)
downloadrpm-setup-607e6ccbc58d54b73e5737010ba196d7e7e0c5cc.tar
rpm-setup-607e6ccbc58d54b73e5737010ba196d7e7e0c5cc.tar.gz
rpm-setup-607e6ccbc58d54b73e5737010ba196d7e7e0c5cc.tar.bz2
rpm-setup-607e6ccbc58d54b73e5737010ba196d7e7e0c5cc.tar.xz
rpm-setup-607e6ccbc58d54b73e5737010ba196d7e7e0c5cc.zip
use buildroot macro instead of RPM_BUILD_ROOT environment variable
-rw-r--r--rpm-spec-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el
index ccfeabc..c1085ea 100644
--- a/rpm-spec-mode.el
+++ b/rpm-spec-mode.el
@@ -1338,8 +1338,8 @@ if one is present in the file."
"\nUrl:" (rpm-insert-space-or-tabs 2)
"\nBuildRoot:" (rpm-insert-space-or-tabs 1) "%{_tmppath}/%{name}-%{version}-%{release}-buildroot\n"
"\n\n%description\n"
- "\n%prep\n%setup -q\n\n%build\n\n%install\nrm -rf $RPM_BUILD_ROOT"
- "\n\n\n%clean\nrm -rf $RPM_BUILD_ROOT"
+ "\n%prep\n%setup -q\n\n%build\n\n%install\nrm -rf %{buildroot}"
+ "\n\n\n%clean\nrm -rf %{buildroot}"
"\n\n%files\n%defattr(-,root,root)\n"
"\n\n%changelog\n"))
(goto-char (point-min)))