Sync from SUSE:SLFO:Main protobuf-c revision b0011b675f8a80ee1d117f68cb27e564

This commit is contained in:
Adrian Schröter 2025-02-25 19:34:53 +01:00
parent 30f7d4ff2d
commit 25a356c4ed
4 changed files with 54 additions and 14 deletions

BIN
protobuf-c-1.5.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
protobuf-c-1.5.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,40 @@
-------------------------------------------------------------------
Sun Feb 9 23:46:28 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.5.1
* Order `oneof` union members from largest to smallest
* Better compatibility with protobuf >= 26.0
- Delete 711.patch (merged)
-------------------------------------------------------------------
Sun Oct 27 11:25:31 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Implement naming guidelines and rename libprotobuf-c-devel back
to just %name-devel. (The divergence came about on Nov 19 2021
as a result of merging two subpackages.)
-------------------------------------------------------------------
Tue Oct 22 08:48:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* 711.patch
+ Drop a hunk that was creating problems when the protoc-c
was called directly and not just as a plugin to protoc
-------------------------------------------------------------------
Mon Oct 21 18:20:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* 711.patch
+ Backport the changes from the pull request #711
https://github.com/protobuf-c/protobuf-c/pull/711 fixing
build with protobuf 26.0+
-------------------------------------------------------------------
Mon Aug 12 21:14:32 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- BuildRequire a C++ compiler, previously pulled in via protobuf
-------------------------------------------------------------------
Wed Dec 27 11:32:24 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,8 +1,9 @@
#
# spec file for package protobuf-c
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2011 Pascal Bleser
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +20,7 @@
%define sover 1
Name: protobuf-c
Version: 1.5.0
Version: 1.5.1
Release: 0
Summary: C bindings for Google's Protocol Buffers
License: BSD-3-Clause
@ -28,7 +29,7 @@ URL: https://github.com/protobuf-c/protobuf-c
Source: https://github.com/protobuf-c/protobuf-c/releases/download/v%version/%name-%version.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: c++_compiler
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: make
@ -49,15 +50,17 @@ Group: System/Libraries
This package provides a code generator and runtime libraries to use Protocol
Buffers from pure C (not C++).
%package -n libprotobuf-c-devel
Summary: C bindings for Google's Protocol Buffers
%package devel
Summary: protobuf generator and headers
Group: Development/Libraries/C and C++
Requires: libprotobuf-c%sover = %version
Recommends: (protobuf-devel >= 2.6.0 with protobuf-devel < 22)
Provides: %name = %version
Obsoletes: %name <= 1.4.0
Provides: protobuf-c = %version-%release
Obsoletes: protobuf-c <= %version-%release
Provides: libprotobuf-c-devel = %version-%release
Obsoletes: libprotobuf-c-devel <= %version-%release
%description -n libprotobuf-c-devel
%description devel
This package provides a code generator and runtime libraries to use Protocol
Buffers from pure C (not C++).
@ -79,15 +82,15 @@ rm %buildroot/%_libdir/*.la
%check
make check
%post -n libprotobuf-c%sover -p /sbin/ldconfig
%postun -n libprotobuf-c%sover -p /sbin/ldconfig
%ldconfig_scriptlets -n libprotobuf-c%sover
%files -n libprotobuf-c%sover
%license LICENSE
%_libdir/libprotobuf-c.so.%sover
%_libdir/libprotobuf-c.so.%sover.*
%files -n libprotobuf-c-devel
%files devel
%license LICENSE
%dir %_includedir/protobuf-c
%dir %_includedir/google
%dir %_includedir/google/protobuf-c