aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.macros.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.macros.in b/build.macros.in
index 7cf90a8..b6b68f0 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -280,6 +280,15 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o
--infodir=%{_infodir} \\\
$CONFIGURE_XPATH
+#---------------------------------------------------------------------
+# Expanded at beginning of %install scriptlet.
+#
+
+%__spec_install_pre %{___build_pre}\
+ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
+ mkdir -p `dirname "$RPM_BUILD_ROOT"`\
+ mkdir "$RPM_BUILD_ROOT"\
+%{nil}
#==============================================================================
# ---- Build policy macros.