Sync from SUSE:SLFO:Main protobuf-c revision 0dea267c7f263974810336875ff23c6e

This commit is contained in:
Adrian Schröter 2024-05-03 19:39:19 +02:00
commit 30f7d4ff2d
4 changed files with 342 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

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

Binary file not shown.

215
protobuf-c.changes Normal file
View File

@ -0,0 +1,215 @@
-------------------------------------------------------------------
Wed Dec 27 11:32:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.5.0:
* Use CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR
* remove deprecated functionality
* Avoid "unused variable" compiler warning
* Update autotools
* Support for new Google protobuf 22.x, 23.x releases
* Remove protobuf 2.x support
-------------------------------------------------------------------
Mon Jun 12 20:06:14 UTC 2023 - Dirk Müller <dmueller@suse.com>
- limit to protobuf < 22 as it is not compatible with newer
versions (gh#protobuf-c#544)
-------------------------------------------------------------------
Mon Apr 24 11:19:07 UTC 2023 - Adam Majer <adam.majer@suse.de>
- Add protobuf-devel to devel package recommends as the binary there
is required to actually generated protobuf headers.
-------------------------------------------------------------------
Thu Mar 23 14:36:19 UTC 2023 - Martin Liška <mliska@suse.cz>
- Enable LTO again.
-------------------------------------------------------------------
Mon Jul 11 07:46:47 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.4.1 (jsc#PED-5634)
* Fixed unsigned integer overflow (GH#499, bsc#1210323, CVE-2022-48468)
* Avoid shifting signed values (GH#508)
- Remove 508.patch (merged)
-------------------------------------------------------------------
Tue Jul 5 12:38:17 UTC 2022 - Adam Majer <adam.majer@suse.de>
- Do not build static libraries
- Run unit tests
- Explicit files and directories for includedir, so we can detect
what we actually install there
- 508.patch: fixes invalid arithmetic shift (bsc#1200908, CVE-2022-33070)
-------------------------------------------------------------------
Tue Nov 23 10:10:53 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
- Drop no longer needed rpmlintrc.
- Also add a protobuf-c =< version Obsoletes to devel sub-package.
-------------------------------------------------------------------
Fri Nov 19 17:38:59 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
- Fold main package into devel package, as it needed its own
devel-package, add a protobuf-c = version Provides to devel
sub-package. (bsc#1213443)
-------------------------------------------------------------------
Wed May 19 07:24:48 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.4.0
* protoc-c: Add custom options support
* Fix packed repeated bool parsing
-------------------------------------------------------------------
Thu Apr 2 16:46:23 UTC 2020 - Adam Majer <adam.majer@suse.de>
- Update to new upstream release 1.3.3
* Fixes cmake endiness check
-------------------------------------------------------------------
Sun Aug 18 16:36:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.3.2
* Fix proto3 repeated scalar field default packing behavior
* Fix out-of-bounds read in scan_length_prefixed_data()
- Remove protobuf-c-namespace.patch (merged)
-------------------------------------------------------------------
Fri Jun 7 13:45:12 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
- Add protobuf-c-namespace.patch to fix building with protobuf
3.8.0
-------------------------------------------------------------------
Tue May 14 11:15:56 UTC 2019 - Martin Liška <mliska@suse.cz>
- Disable LTO (boo#1133277).
-------------------------------------------------------------------
Fri Oct 5 10:14:36 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 1.3.1
* Restore protobuf-2.x compatibility
* Convert uses of protobuf's scoped_ptr.h to C++11 std::unique_ptr,
needed to compile against protobuf 3.6.1.
- Rename %soname to %sover to better reflect its use.
-------------------------------------------------------------------
Fri Dec 22 14:29:07 UTC 2017 - jengelh@inai.de
- Drop %__-type macro indirections.
-------------------------------------------------------------------
Thu Dec 14 15:59:33 UTC 2017 - dimstar@opensuse.org
- Update to version 1.3.0:
* Add test case for the issue in #220 (#254).
* Fix issue #251, "Bad enums with multiple oneofs" (#256).
* Add warning flags to my_CFLAGS (#257).
* Fix namespace errors when compiled with latest protobuf (#280).
* Bump minimum required header version for proto3 syntax (#282).
* Relax autoconf constraint from v2.64 to v2.63 so that it works
on older Linux distros (#233).
* Fix bigendian -Wunused-label warning (#215).a
* proto3 support (#228).
* Remove leftover FIXME comment (#258).
* Fix proto3 "is zeroish" evaluation (#264).
* Small cleanup in oneof handling (#265).
* Rework is_zeroish one more time (#267).
* proto3: make strings default to "" instead of NULL (#274).
* CMake: Allow protobuf-c to be included via include_subdirectory
(#245).
- Changes from version 1.2.1:
* protoc-c: Generate code that uses the universal zero initializer
{0} when initializing a oneof union (#187, #205).
- Changes from version 1.2.0:
* Implement the "optimize_for = CODE_SIZE" option (#183).
* Eliminate undefined behavior in zigzag functions (#198).
* Pack negative enum values correctly (#199).
* Fix protobuf_c_message_get_packed_size() on 16-bit systems
(#196, #197).
* Update link to Autotools Mythbuster to canonical site (#201).
* Skip test suite when cross-compiling (#184).
-------------------------------------------------------------------
Tue May 26 11:13:22 UTC 2015 - dgutu@suse.com
- Replaced autogen.sh in spec file with autoreconf -fvi
-------------------------------------------------------------------
Tue Apr 7 06:29:51 UTC 2015 - meissner@suse.com
- Update to version 1.1.1:
[ Ilya Lipnitskiy ]
* Munge C block comment delimiters in protobuf comments, preventing syntax
errors in generated header files (Issue #180, #185).
* Add static qualifier to ProtobufCEnumValue and ProtobufCEnumValueIndex
variables in generated output.
[ Oleg Efimov ]
* Fix -Wpointer-sign compiler diagnostics in the test suite.
* Check for NULL pointers in protobuf_c_message_free_unpacked() (Issue #177).
* Exclude protoc-c and downloaded protobuf sources from Coveralls report.
[ Andrey Myznikov ]
* Fix incorrect 'short_name' field values in ProtobufCServiceDescriptor
variables in generated output.
-------------------------------------------------------------------
Thu Mar 5 10:11:04 UTC 2015 - dimstar@opensuse.org
- Update to version 1.1.0:
+ Fix a bug when merging optional byte fields.
+ Documentation updates.
+ Implement oneof support (Issue #174). Protobuf 2.6.0 or newer
is now required to build protobuf-c.
+ Print leading comments for enum, message, and field definitions
into generated header files (Issue #175).
- Changes from version 1.0.2:
+ Fix a build failure with Protobuf 2.6.0 related to aliased enum
constants (Issue #163).
+ Protobuf 2.5.0 or newer is now required to build protobuf-c
(Issue #166). This is due to the fix for #163.
+ Eliminate void pointer arithmetic (Issue #167).
+ Always define PROTOBUF_C__DEPRECATED, even on compilers that
are not GCC (Issue #167).
+ Work around the lack of the 'inline' keyword in Microsoft
compilers (Issue #167).
+ Add a CMakeLists.txt file as a fallback build system for
Windows (Issue #168).
+ Fix a build failure in the test suite that occurred with a
parallel make running on a system with a large number of CPUs
(Issue #156, #169).
- Changes from version 1.0.1:
+ Explicitly set the .data field of ProtobufCBinaryData's to NULL
when unpacking a zero length byte string (Issue #157).
- For a list of changes between 0.15 and 1.0.0, please refer to the
extensive ChangeLog file.
- Bump soname to 1, following upstream.
- Update Url tag: project moved over to github.
- Update license to be BSD-3-Clause and install LICENSE file.
-------------------------------------------------------------------
Wed Aug 31 07:11:06 UTC 2011 - coolo@suse.com
- update to 0.15
- make protobuf_c_message_init() into a function (Issue #49, daveb)
- Fix for freeing memory after unpacking bytes w/o a default-value.
(Andrei Nigmatulin)
- minor windows portability issues (use ProtobufC_FD) (Pop Stelian)
- --with-endianness={little,big} (Pop Stelian)
- bug setting up values of has_idle in public dispatch,
make protobuf_c_dispatch_run() use only public members (daveb)
- provide cmake support and some Windows compatibility (Nikita Manovich)
-------------------------------------------------------------------
Wed Apr 13 22:50:53 CET 2011 - pascal.bleser@opensuse.org
- initial version (0.14)

101
protobuf-c.spec Normal file
View File

@ -0,0 +1,101 @@
#
# spec file for package protobuf-c
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2011 Pascal Bleser
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 1
Name: protobuf-c
Version: 1.5.0
Release: 0
Summary: C bindings for Google's Protocol Buffers
License: BSD-3-Clause
Group: Development/Tools/Other
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: glibc-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: protobuf-devel >= 22
%description
This package provides a code generator and runtime libraries to use Protocol
Buffers from pure C (not C++).
It uses a modified version of protoc called protoc-c.
%package -n libprotobuf-c%sover
Summary: C bindings for Google's Protocol Buffers
Group: System/Libraries
%description -n libprotobuf-c%sover
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
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
%description -n libprotobuf-c-devel
This package provides a code generator and runtime libraries to use Protocol
Buffers from pure C (not C++).
%prep
%autosetup -p1
%build
%{!?make_build:%define make_build make -O %{?_smp_mflags} V=1 VERBOSE=1}
autoreconf -fvi
%configure \
--enable-static=no
%make_build
%install
%make_install
rm %buildroot/%_libdir/*.la
%check
make check
%post -n libprotobuf-c%sover -p /sbin/ldconfig
%postun -n libprotobuf-c%sover -p /sbin/ldconfig
%files -n libprotobuf-c%sover
%license LICENSE
%_libdir/libprotobuf-c.so.%sover
%_libdir/libprotobuf-c.so.%sover.*
%files -n libprotobuf-c-devel
%dir %_includedir/protobuf-c
%dir %_includedir/google
%dir %_includedir/google/protobuf-c
%_includedir/protobuf-c/*
%_includedir/google/protobuf-c/protobuf-c.h
%_bindir/protoc-c
%_bindir/protoc-gen-c
%_libdir/libprotobuf-c.so
%_libdir/pkgconfig/libprotobuf-c.pc
%changelog