aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.macros.in26
1 files changed, 14 insertions, 12 deletions
diff --git a/build.macros.in b/build.macros.in
index 481d6cb..e014b51 100644
--- a/build.macros.in
+++ b/build.macros.in
@@ -261,18 +261,6 @@ export CFLAGS="%optflags"; export CXXFLAGS="%optflags"; export RPM_OPT_FLAGS="%o
%main_configure
-#---------------------------------------------------------------------
-# Expanded at beginning of %install scriptlet.
-#
-
-%__spec_install_pre \
-%{___build_pre}\
-if [ %{_with install} -eq 1 ]; then\
- [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
- mkdir -p `dirname "$RPM_BUILD_ROOT"`\
- mkdir "$RPM_BUILD_ROOT"\
-fi
-
# Maximum number of CPU's to use when building, 0 for unlimited.
%_smp_ncpus_max 0
@@ -446,6 +434,20 @@ popd
[ %{_with build} -eq 1 ] || exit 0 \
%{nil}
+#---------------------------------------------------------------------
+# Expanded at beginning of %install scriptlet.
+#
+
+%__spec_install_pre %{___build_pre}\
+if [ %{_with install} -eq 1 ]; then\
+ [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
+ mkdir -p `dirname "$RPM_BUILD_ROOT"`\
+ mkdir "$RPM_BUILD_ROOT"\
+fi
+
+#---------------------------------------------------------------------
+# Expanded at end of %install scriptlet.
+
%__os_install_post \
%{?__spec_helper_post}%{?!__spec_helper_post:/usr/share/spec-helper/spec-helper} \
%{?__brp_python_bytecompile} \