package init

This commit is contained in:
fly_fzc 2025-04-07 18:42:18 +08:00
parent b9a2809ac0
commit 996c3d53b3
3 changed files with 55 additions and 0 deletions

Binary file not shown.

51
upb.spec Normal file
View File

@ -0,0 +1,51 @@
%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 <fuanan3@h-partners.com> - 455cfdb8ae60a1763e6d924e36851c6897a781bb-1
- package init

4
upb.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: protocolbuffers/upb
tag_prefix: ^v
separator: .