summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-11-27 03:17:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-11-27 03:17:27 +0000
commit1d24c19c405e0942ded3238a97f5b7a09bf0454b (patch)
tree405b5bfe368212b46f8a7da323c499121e18c7e1
parent3876a0cb7abfcb9a98f1b45b04ba3c0c0a891e32 (diff)
automatic import of brpc
-rw-r--r--.gitignore1
-rw-r--r--brpc.spec97
-rw-r--r--sources1
3 files changed, 99 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..43cba1b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/brpc-1.16.0.tar.gz
diff --git a/brpc.spec b/brpc.spec
new file mode 100644
index 0000000..00f4457
--- /dev/null
+++ b/brpc.spec
@@ -0,0 +1,97 @@
+# bRPC - Industrial-grade RPC framework using C++ Language.
+#
+# Adapted from the src-openeuler/brpc reference spec (1.14.1) to the 1.16.0
+# upstream (gitcode/boostkit fork). Both shared (libbrpc.so) and static
+# (libbrpc.a) libraries are built; -DBUILD_SHARED_LIBS=ON is required because
+# upstream only builds the shared library when that switch is enabled.
+# Note: BoringSSL / MesaLink / GLOG / RDMA / thrift are optional upstream
+# switches kept off by default, so they are intentionally not build requires.
+Name: brpc
+Version: 1.16.0
+Release: 1%{?dist}
+Summary: Industrial-grade RPC framework using C++ Language.
+
+License: Apache-2.0
+URL: https://gitcode.com/boostkit/brpc
+Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+BuildRequires: cmake
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: make
+BuildRequires: ninja-build
+BuildRequires: gflags-devel
+BuildRequires: protobuf-devel
+BuildRequires: absl-devel
+BuildRequires: leveldb-devel
+BuildRequires: openssl-devel
+BuildRequires: zlib-devel
+
+%description
+Apache bRPC is an Industrial-grade RPC framework using C++ Language,
+which is often used in high performance systems such as Search, Storage,
+Machine learning, Advertisement, Recommendation etc.
+
+%package devel
+Summary: The %{name} headers and shared development libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Headers and shared object symbolic links for the %{name} library.
+
+%package static
+Summary: The %{name} static development libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} libraries.
+
+%package tools
+Summary: The %{name} tools.
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tools
+The %{name} tools.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%build
+# 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).
+cmake -S . -B build \
+ -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+ -DCMAKE_INSTALL_LIBDIR=%{_lib} \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_UNIT_TESTS=OFF \
+ -DBUILD_BRPC_TOOLS=ON \
+ -DDOWNLOAD_GTEST=OFF \
+ -DWITH_GLOG=OFF
+cmake --build build --parallel
+
+%install
+DESTDIR=%{buildroot} cmake --install build
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%license LICENSE
+%doc README.md CHANGES.md NOTICE
+%{_libdir}/libbrpc.so
+
+%files devel
+%{_includedir}/*
+%{_libdir}/pkgconfig/*
+
+%files static
+%{_libdir}/libbrpc.a
+
+%files tools
+%{_bindir}/*
+
+%changelog
+* Fri Nov 27 2026 openEuler Builder <builder@openeuler.org> - 1.16.0-1
+- Update to 1.16.0
diff --git a/sources b/sources
new file mode 100644
index 0000000..265a8a9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+61539d55b08cd74b49969e5ed291c20c brpc-1.16.0.tar.gz