From 1090425ed4e2fda0d440208164a5e4b49569542c5ee7d4196dc85f73855a3ed9 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 29 Sep 2020 05:54:34 +0000 Subject: [PATCH] Accepting request 836136 from home:mrostecki:branches:devel:tools - Add new subpackages - libupb and upb-devel. Currently, grpc sources include also upb sources. Before this change, libupb and upb-devel used to be included in a separate package - upb. OBS-URL: https://build.opensuse.org/request/show/836136 OBS-URL: https://build.opensuse.org/package/show/devel:tools/grpc?expand=0&rev=67 --- grpc.changes | 7 +++++++ grpc.spec | 32 +++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/grpc.changes b/grpc.changes index 08c9ba3..4b88e72 100644 --- a/grpc.changes +++ b/grpc.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Sep 22 16:37:51 UTC 2020 - Michał Rostecki + +- Add new subpackages - libupb and upb-devel. Currently, grpc + sources include also upb sources. Before this change, libupb and + upb-devel used to be included in a separate package - upb. + ------------------------------------------------------------------- Fri Sep 18 19:53:23 UTC 2020 - Atri Bhattacharya diff --git a/grpc.spec b/grpc.spec index ac8be7f..51bf0fe 100644 --- a/grpc.spec +++ b/grpc.spec @@ -81,6 +81,17 @@ Protocol Buffers as the Interface Definition Language by default. This package provides the shared library to support plugins for grpc. +%package -n libupb%lver +Summary: A small protobuf implementation in C +Group: System/Libraries + +%description -n libupb%lver +μpb (often written 'upb') is a small protobuf implementation written in C. + +upb generates a C API for creating, parsing, and serializing messages as +declared in .proto files. upb is heavily arena-based: all messages always live +in an arena (note: the arena can live in stack or static memory if desired). + %package devel Summary: Development files for grpc, a HTTP/2 Remote Procedure Call implementation Group: Development/Tools/Building @@ -93,6 +104,20 @@ Requires: pkgconfig(re2) This subpackage contains libraries and header files for developing applications that want to make use of the gRPC reference implementation. +%package -n upb-devel +Summary: Developmnt files for upb +Group: Development/Tools/Building +Requires: libupb%lver = %version + +%description -n upb-devel +μpb (often written 'upb') is a small protobuf implementation written in C. + +upb generates a C API for creating, parsing, and serializing messages as +declared in .proto files. upb is heavily arena-based: all messages always live +in an arena (note: the arena can live in stack or static memory if desired). + +This package provides development files for upb. + %package source Summary: Source code of gRPC Group: Development/Sources @@ -160,7 +185,6 @@ cp -r * "%buildroot/%src_install_dir" %_libdir/libaddress_sorting.so.%{lver}* %_libdir/libgpr*.so.%{lver}* %_libdir/libgrpc*.so.%{lver}* -%_libdir/libupb*.so.%{lver}* %files -n libgrpc++%lverp %_libdir/libgrpc++*.so.%{lverp}* @@ -169,6 +193,9 @@ cp -r * "%buildroot/%src_install_dir" %files -n libgrpc_plugin_support%lverplugin %_libdir/libgrpc_plugin_support.so.%{lverplugin}* +%files -n libupb%lver +%_libdir/libupb*.so.%{lver}* + %files devel %license LICENSE %_bindir/* @@ -177,6 +204,9 @@ cp -r * "%buildroot/%src_install_dir" %_libdir/*.so %_libdir/cmake/grpc/ +%files -n upb-devel +%_libdir/libupb*.so + %files source %src_install_dir