diff --git a/455cfdb8ae60a1763e6d924e36851c6897a781bb.tar.gz b/455cfdb8ae60a1763e6d924e36851c6897a781bb.tar.gz new file mode 100644 index 0000000..05a5f19 Binary files /dev/null and b/455cfdb8ae60a1763e6d924e36851c6897a781bb.tar.gz differ diff --git a/upb.spec b/upb.spec new file mode 100644 index 0000000..a8eacd0 --- /dev/null +++ b/upb.spec @@ -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 - 455cfdb8ae60a1763e6d924e36851c6897a781bb-1 +- package init diff --git a/upb.yaml b/upb.yaml new file mode 100644 index 0000000..c9c3f4e --- /dev/null +++ b/upb.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: protocolbuffers/upb +tag_prefix: ^v +separator: .