aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)))