From d562af843e60c4c7dc27e3086130c6bcd560e74c Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Thu, 26 Jun 2008 15:56:11 +0200 Subject: [PATCH] Add new macros for enabling default build root --- macros.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macros.in b/macros.in index 884b2ae..8fe2c1d 100644 --- a/macros.in +++ b/macros.in @@ -217,6 +217,9 @@ package or when debugging this package.\ # The directory where newly built source packages will be written. %_srcrpmdir %{_topdir}/SRPMS +# The directory where buildroots will be created. +%buildrootdir %{_topdir}/BUILDROOT + # Directory where temporaray files can be created. %_tmppath %{_var}/tmp @@ -234,7 +237,7 @@ package or when debugging this package.\ # Configurable build root path, same as BuildRoot: in a specfile. # (Note: the configured macro value will override the spec file value). # -#%buildroot +%buildroot %{_buildrootdir}/%{name}-%{version}-%{release}.%{_arch} # The sub-directory (relative to %{_builddir}) where sources are compiled. # This macro is set after processing %setup, either explicitly from the -- 2.7.4