%define debug_package %{nil} %define src_install_dir /usr/src/%{name} Name: upb Version: 455cfdb8ae60a1763e6d924e36851c6897a781bb Release: 1 Summary: A small protobuf implementation in C License: BSD-3-Clause URL: https://github.com/protocolbuffers/%{name} Source0: https://github.com/protocolbuffers/%{name}/archive/%{version}.tar.gz BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gtest %description μ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 source Summary: Source code of upb %description source μ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 source code of upb. %prep %autosetup -p1 %build %install mkdir -p %{buildroot}%{src_install_dir} cp -r * %{buildroot}%{src_install_dir} %fdupes %{buildroot}%{src_install_dir} %files source %{src_install_dir} %changelog * Mon Apr 7 2025 fuanan - 455cfdb8ae60a1763e6d924e36851c6897a781bb-1 - package init