6
0
forked from pool/protobuf

23 Commits

Author SHA256 Message Date
986b9a034c Accepting request 1219411 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1219411
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf?expand=0&rev=83
2024-10-30 16:33:47 +00:00
b8351aee5c fixup, please forward to factory
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=198
2024-10-30 09:40:45 +00:00
02a9bd1d89 - Add versionize-shlibs.patch, delete static-utf8-ranges.patch
* Build the libutf8_range and libutf8_validity as shared library
    to conform to SLPP

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=197
2024-10-29 17:15:02 +00:00
b9b3068a94 fixup
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=196
2024-10-28 12:09:00 +00:00
3e6097693c revert some of the changes that would make upgrades a pain
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=195
2024-10-28 10:24:05 +00:00
c9b8c58def OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=194 2024-10-28 08:55:24 +00:00
38b7069187 - python: switch to pypi package to get the cythonized component
- drop python-protobuf-setup_py.patch (obsolete)

- python: switch to pypi package to get the cythonized component
- drop python-protobuf-setup_py.patch (obsolete)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=193
2024-10-28 08:21:47 +00:00
5c2af13079 - python: switch to pypi package to get the cythonized component
- drop python-protobuf-setup_py.patch (obsolete)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=192
2024-10-28 08:21:33 +00:00
a1403d600c Hopefully the last tiny installcheck fix, without changelog now, since it falls under the separate compiler package
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=191
2024-10-28 08:08:43 +00:00
7f6d74ce6c - update to 28.3:
* Fix packed reflection handling bug in edition 2023.
  * Mute the minor version warning
  * Populate Kotlin Manifest Files
  * Re-export includingDefaultValueFields in deprecated state for
    important Cloud customer. (https://github.com/protocolbuffers
    /protobuf/commit/3b62d78dc70d2b43af5998d427452246279363c7)
  * Cherrypick restoration of mutableCopy helpers (https://github
    .com/protocolbuffers/protobuf/commit/3ea568a9b6107ebf0d617c47
    6f53a31490fd3182)
  * Mute the minor version warning

- update to 28.3:
  * Fix packed reflection handling bug in edition 2023.
  * Mute the minor version warning
  * Populate Kotlin Manifest Files
  * Re-export includingDefaultValueFields in deprecated state for
    important Cloud customer. (https://github.com/protocolbuffers
    /protobuf/commit/3b62d78dc70d2b43af5998d427452246279363c7)
  * Cherrypick restoration of mutableCopy helpers (https://github
    .com/protocolbuffers/protobuf/commit/3ea568a9b6107ebf0d617c47
    6f53a31490fd3182)
  * Mute the minor version warning

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=190
2024-10-25 15:24:54 +00:00
c26ad7953f - update to 28.3:
* Fix packed reflection handling bug in edition 2023.
  * Mute the minor version warning
  * Populate Kotlin Manifest Files
  * Re-export includingDefaultValueFields in deprecated state for
    important Cloud customer. (https://github.com/protocolbuffers
    /protobuf/commit/3b62d78dc70d2b43af5998d427452246279363c7)
  * Cherrypick restoration of mutableCopy helpers (https://github
    .com/protocolbuffers/protobuf/commit/3ea568a9b6107ebf0d617c47
    6f53a31490fd3182)
  * Mute the minor version warning

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=189
2024-10-25 15:24:43 +00:00
626a9aa2dd OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=188 2024-10-25 15:20:10 +00:00
4c7c3fcf1d Fix install-check failures by building helper libraries static + split protoc into separate subpackage
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=187
2024-10-25 15:06:45 +00:00
702153286c little fixes around architecture
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=186
2024-10-24 07:55:58 +00:00
8b6bd032ec Sync changes + split java into smaller packages + build the lite runtime for java too
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=185
2024-10-23 08:14:56 +00:00
b56b531df1 - keep building for 15.4+
* Ruby C-Extension: Regen stale files

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=184
2024-10-21 13:27:37 +00:00
5440c16a16 Fix build of the python-protobuf on different distributions + package maven artifact metadata for our protoc binary so that the automation of protobuf-maven-plugin finds it + try to simplify upgrades
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=183
2024-10-21 13:25:32 +00:00
c4c52bad43 Split packages into separate _multibuild specs
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=182
2024-10-18 08:41:16 +00:00
Martin Pluskal
ab748f354e - update to 28.2
C++: Fix cord handling in DynamicMessage and oneofs
  Java: Add recursion check when parsing unknown fields
- python packages became arch dependend

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=181
2024-10-12 20:47:40 +00:00
d39ee1c2f5 Accepting request 1193345 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1193345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf?expand=0&rev=82
2024-08-15 07:57:20 +00:00
Martin Pluskal
78da938b22 - tweak and correct how minimum version of abseil is specified
(20230125 to 20230125.3)
- Remove explicit requirements of the protobuf-devel package, as
  the they are autogenerated when needed

OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=179
2024-08-12 07:03:53 +00:00
d3cfd7f9a2 Accepting request 1191540 from devel:tools:building
OBS-URL: https://build.opensuse.org/request/show/1191540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf?expand=0&rev=81
2024-08-07 04:09:56 +00:00
Martin Pluskal
987c5ebbdd Accepting request 1191245 from home:AndreasStieger:branches:devel:tools:building
protobuf 25.4

OBS-URL: https://build.opensuse.org/request/show/1191245
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=177
2024-08-04 14:12:04 +00:00
17 changed files with 2169 additions and 89 deletions

View File

@@ -1,4 +1,5 @@
<multibuild> <multibuild>
<package>python-protobuf</package>
<package>protobuf-java</package> <package>protobuf-java</package>
</multibuild> </multibuild>

View File

@@ -1,4 +1,4 @@
libprotobuf29_3_0 libprotobuf28_3_0
libprotoc29_3_0 libprotoc28_3_0
libprotobuf-lite29_3_0 libprotobuf-lite28_3_0
libutf8_range-29_3_0 libutf8_range-28_3_0

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

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

Binary file not shown.

View File

@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.google.protobuf</groupId> <groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId> <artifactId>protobuf-parent</artifactId>
<version>4.29.3</version> <version>4.28.3</version>
</parent> </parent>
<artifactId>protobuf-java</artifactId> <artifactId>protobuf-java</artifactId>

View File

@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.google.protobuf</groupId> <groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId> <artifactId>protobuf-parent</artifactId>
<version>4.29.3</version> <version>4.28.3</version>
</parent> </parent>
<artifactId>protobuf-java-util</artifactId> <artifactId>protobuf-java-util</artifactId>
@@ -16,37 +16,32 @@
<dependency> <dependency>
<groupId>com.google.protobuf</groupId> <groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId> <artifactId>protobuf-java</artifactId>
<version>4.29.3</version> <version>4.28.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.code.findbugs</groupId> <groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId> <artifactId>jsr305</artifactId>
<version>3.0.2</version> <version>3.0.2</version>
<scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.code.gson</groupId> <groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId> <artifactId>gson</artifactId>
<version>2.8.9</version> <version>2.8.9</version>
<scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.errorprone</groupId> <groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId> <artifactId>error_prone_annotations</artifactId>
<version>2.18.0</version> <version>2.18.0</version>
<scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.guava</groupId> <groupId>com.google.guava</groupId>
<artifactId>guava</artifactId> <artifactId>guava</artifactId>
<version>32.0.1-jre</version> <version>32.0.1-jre</version>
<scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.google.j2objc</groupId> <groupId>com.google.j2objc</groupId>
<artifactId>j2objc-annotations</artifactId> <artifactId>j2objc-annotations</artifactId>
<version>2.8</version> <version>2.8</version>
<scope>runtime</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@@ -1,34 +0,0 @@
--- pom.xml 2025-05-02 23:04:51.224332863 +0200
+++ pom.xml 2025-05-02 23:05:30.728959217 +0200
@@ -22,31 +22,26 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
- <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.9</version>
- <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.18.0</version>
- <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.1-jre</version>
- <scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.j2objc</groupId>
<artifactId>j2objc-annotations</artifactId>
<version>2.8</version>
- <scope>runtime</scope>
</dependency>
</dependencies>

View File

@@ -1,13 +1,3 @@
-------------------------------------------------------------------
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
- update to 29.3
* Fix cmake installation location of java and go features.
* Add .bazeliskrc for protobuf repo to tell bazelisk to use 7.1.2 by default.
* Update artifact actions to v4
* Added protobuf-java-util-removescope.patch to avoid Java compilation errors
due to dependencies marked as runtime.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 28 08:20:17 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Oct 28 08:20:17 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package protobuf-java # spec file for package protobuf-java
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de> # Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -18,9 +18,8 @@
%define tarname protobuf %define tarname protobuf
%define patchjuname protobuf-java-util-removescope.patch
Name: protobuf-java Name: protobuf-java
Version: 29.3 Version: 28.3
Release: 0 Release: 0
Summary: Java Bindings for Google Protocol Buffers Summary: Java Bindings for Google Protocol Buffers
License: BSD-3-Clause License: BSD-3-Clause
@@ -30,7 +29,6 @@ Source0: https://github.com/protocolbuffers/protobuf/releases/download/v%
Source1: https://repo1.maven.org/maven2/com/google/protobuf/%{name}/4.%{version}/%{name}-4.%{version}.pom Source1: https://repo1.maven.org/maven2/com/google/protobuf/%{name}/4.%{version}/%{name}-4.%{version}.pom
Source2: https://repo1.maven.org/maven2/com/google/protobuf/%{name}lite/4.%{version}/%{name}lite-4.%{version}.pom Source2: https://repo1.maven.org/maven2/com/google/protobuf/%{name}lite/4.%{version}/%{name}lite-4.%{version}.pom
Source3: https://repo1.maven.org/maven2/com/google/protobuf/%{name}-util/4.%{version}/%{name}-util-4.%{version}.pom Source3: https://repo1.maven.org/maven2/com/google/protobuf/%{name}-util/4.%{version}/%{name}-util-4.%{version}.pom
Source4: %{patchjuname}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: maven-local BuildRequires: maven-local
@@ -88,10 +86,6 @@ pushd java
cp %{SOURCE1} core/pom.xml cp %{SOURCE1} core/pom.xml
cp %{SOURCE2} lite/pom.xml cp %{SOURCE2} lite/pom.xml
cp %{SOURCE3} util/pom.xml cp %{SOURCE3} util/pom.xml
cp %{SOURCE4} util/%{patchjuname}
pushd util
patch -p0 < %{patchjuname}
popd
%pom_disable_module kotlin %pom_disable_module kotlin
%pom_disable_module kotlin-lite %pom_disable_module kotlin-lite
%pom_remove_plugin :animal-sniffer-maven-plugin %pom_remove_plugin :animal-sniffer-maven-plugin

View File

@@ -4,7 +4,7 @@
<parent> <parent>
<groupId>com.google.protobuf</groupId> <groupId>com.google.protobuf</groupId>
<artifactId>protobuf-parent</artifactId> <artifactId>protobuf-parent</artifactId>
<version>4.29.3</version> <version>4.28.3</version>
</parent> </parent>
<artifactId>protobuf-javalite</artifactId> <artifactId>protobuf-javalite</artifactId>

View File

@@ -1,13 +1,3 @@
-------------------------------------------------------------------
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
- update to 29.3
* Fix cmake installation location of java and go features.
* Add .bazeliskrc for protobuf repo to tell bazelisk to use 7.1.2 by default.
* Update artifact actions to v4
* Added protobuf-java-util-removescope.patch to avoid Java compilation errors
due to dependencies marked as runtime.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 28 08:20:17 UTC 2024 - Dirk Müller <dmueller@suse.com> Mon Oct 28 08:20:17 UTC 2024 - Dirk Müller <dmueller@suse.com>
@@ -35,7 +25,6 @@ Fri Oct 25 15:24:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
.com/protocolbuffers/protobuf/commit/3ea568a9b6107ebf0d617c47 .com/protocolbuffers/protobuf/commit/3ea568a9b6107ebf0d617c47
6f53a31490fd3182) 6f53a31490fd3182)
* Mute the minor version warning * Mute the minor version warning
* fixed (bsc#1230778, CVE-2024-7254)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 24 20:56:51 UTC 2024 - Fridrich Strba <fstrba@suse.com> Thu Oct 24 20:56:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package protobuf # spec file for package protobuf
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de> # Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -20,7 +20,7 @@
%define tarname protobuf %define tarname protobuf
# see cmake/abseil-cpp.cmake and src/google/protobuf/port_def.inc # see cmake/abseil-cpp.cmake and src/google/protobuf/port_def.inc
%define abseil_min_version 20230125.3 %define abseil_min_version 20230125.3
%global sover 29_3_0 %global sover 28_3_0
%if 0%{?gcc_version} < 11 %if 0%{?gcc_version} < 11
%define with_gcc 11 %define with_gcc 11
%endif %endif
@@ -66,7 +66,7 @@
%global protoc_arch sparc_64 %global protoc_arch sparc_64
%endif %endif
Name: protobuf Name: protobuf
Version: 29.3 Version: 28.3
Release: 0 Release: 0
Summary: Protocol Buffers - Google's data interchange format Summary: Protocol Buffers - Google's data interchange format
License: BSD-3-Clause License: BSD-3-Clause
@@ -206,7 +206,6 @@ install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto
# manual ln that we could not manage to get into versionize-shlibs.patch # manual ln that we could not manage to get into versionize-shlibs.patch
ln -s libutf8_range-%{version}.0.so %{buildroot}/%{_libdir}/libutf8_range.so ln -s libutf8_range-%{version}.0.so %{buildroot}/%{_libdir}/libutf8_range.so
ln -s libutf8_validity-%{version}.0.so %{buildroot}/%{_libdir}/libutf8_validity.so ln -s libutf8_validity-%{version}.0.so %{buildroot}/%{_libdir}/libutf8_validity.so
install -D java/core/src/main/resources/google/protobuf/java_features.proto %{buildroot}%{_includedir}/java/core/src/main/resources/google/protobuf/java_features.proto
# create maven metadata for the protoc executable # create maven metadata for the protoc executable
install -dm 0755 %{buildroot}%{_datadir}/maven-metadata install -dm 0755 %{buildroot}%{_datadir}/maven-metadata

2075
python-protobuf.changes Normal file

File diff suppressed because it is too large Load Diff

71
python-protobuf.spec Normal file
View File

@@ -0,0 +1,71 @@
#
# spec file for package python-protobuf
#
# Copyright (c) 2024 SUSE LLC
# 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
# 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 baseversion 28.3
%{?sle15_python_module_pythons}
Name: python-protobuf
Version: 5.%{baseversion}
Release: 0
Summary: Python Bindings for Google Protocol Buffers
License: BSD-3-Clause
Group: Development/Libraries/Python
URL: https://github.com/protocolbuffers/protobuf
Source0: https://files.pythonhosted.org/packages/source/p/protobuf/protobuf-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
%python_subpackages
%description
Protocol Buffers are a way of encoding structured data in an efficient yet
extensible format. Google uses Protocol Buffers for almost all of its internal
RPC protocols and file formats.
This package contains the Python bindings for Google Protocol Buffers.
%prep
%autosetup -p1 -n protobuf-%{version}
# The previous blank line is crucial for older system being able
# to use the autosetup macro
grep -qF "'%{version}'" google/protobuf/__init__.py
# kill shebang that we do not really want
sed -i -e '/env python/d' google/protobuf/internal/*.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%fdupes %{buildroot}%{_prefix}
%files %{python_files}
%license LICENSE
%{python_sitearch}/google
%{python_sitearch}/protobuf*nspkg.pth
%{python_sitearch}/protobuf-%{version}.dist-info
%changelog

View File

@@ -16,10 +16,10 @@ slightly different from PR19009 while the PR is unmerged.
third_party/utf8_range/CMakeLists.txt | 8 ++++++++ third_party/utf8_range/CMakeLists.txt | 8 ++++++++
1 file changed, 8 insertions(+) 1 file changed, 8 insertions(+)
Index: protobuf-29.3/third_party/utf8_range/CMakeLists.txt Index: protobuf-28.3/third_party/utf8_range/CMakeLists.txt
=================================================================== ===================================================================
--- protobuf-29.3.orig/third_party/utf8_range/CMakeLists.txt --- protobuf-28.3.orig/third_party/utf8_range/CMakeLists.txt
+++ protobuf-29.3/third_party/utf8_range/CMakeLists.txt +++ protobuf-28.3/third_party/utf8_range/CMakeLists.txt
@@ -19,6 +19,9 @@ add_library (utf8_range @@ -19,6 +19,9 @@ add_library (utf8_range
# A heavier-weight C++ wrapper that supports Abseil. # A heavier-weight C++ wrapper that supports Abseil.
add_library (utf8_validity utf8_validity.cc utf8_range.c) add_library (utf8_validity utf8_validity.cc utf8_range.c)