summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-27 03:32:28 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-27 03:32:28 +0000
commitf496ebb67a84b56725aa8fbc16537ec558bc5b3c (patch)
tree72830e5a0d543dd55c73b4e53d92f6e7fbe11fa7
parent90d7a351036224a51d3c5dcf157bff392847395f (diff)
automatic import of brpc
-rw-r--r--brpc.spec6
1 files changed, 4 insertions, 2 deletions
diff --git a/brpc.spec b/brpc.spec
index 1b46568..bd28da7 100644
--- a/brpc.spec
+++ b/brpc.spec
@@ -61,9 +61,11 @@ The %{name} tools.
%autosetup -n %{name}-%{version}
%build
-# Invoke the cmake binary directly instead of the %cmake rpm macros so the
+# Invoke the cmake binary directly instead of the CMake RPM macros so the
# build is portable across builders (including minimal smoke workers that do
-# not ship the cmake macro package).
+# not ship the cmake macro package). NOTE: never spell out the cmake macro
+# name (percent-cmake) in a comment -- rpm expands it even inside comments and
+# the multi-line expansion escapes the comment, injecting a bogus cmake call.
cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \