diff options
Diffstat (limited to 'brpc.spec')
| -rw-r--r-- | brpc.spec | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -22,7 +22,11 @@ BuildRequires: make BuildRequires: ninja-build BuildRequires: gflags-devel BuildRequires: protobuf-devel -BuildRequires: absl-devel +# Use openEuler's official abseil-cpp-devel (provides cmake(absl) + +# pkgconfig(absl_*)); it is also the abseil provider requiring by protobuf-devel. +# A separately-packaged "absl-devel" collides with abseil-cpp-devel over the +# same /usr/lib64/pkgconfig/absl_*.pc files, so reference the official name. +BuildRequires: abseil-cpp-devel BuildRequires: leveldb-devel BuildRequires: openssl-devel BuildRequires: zlib-devel @@ -57,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} \ |
