From 607e6ccbc58d54b73e5737010ba196d7e7e0c5cc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 19 Dec 2007 10:39:33 +0000 Subject: use buildroot macro instead of RPM_BUILD_ROOT environment variable --- rpm-spec-mode.el | 4 ++-- 1 file 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))) -- cgit v1.2.1