[bugfix] Fix the application of the build flags

The '%{set_build_flags}' is unnecessary.
These flags are automatically called on the beginning of '%build' phase,
and are also part fo the '%cmake' macro.

The second call of CMake has to be run in "-N" mode,
which treats the CMake cache as read-only.
This commit is contained in:
Michal Schorm 2025-08-08 16:06:02 +02:00 committed by Pavol Sloboda
parent 8f0cee6357
commit 57e8399c75

View File

@ -45,8 +45,6 @@ u garb - 'Galera Arbitrator Daemon' /dev/null -
EOF
%build
%{set_build_flags}
%cmake \
-DCMAKE_BUILD_TYPE="%{?with_debug:Debug}%{!?with_debug:RelWithDebInfo}" \
@ -63,7 +61,7 @@ EOF
-DINSTALL_LIBDIR="%{_lib}/galera" \
-DINSTALL_MANPAGE="share/man/man8"
cmake -B %_vpath_builddir -LAH
cmake -B %_vpath_builddir -N -LAH
%cmake_build