Compare commits
33 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e751161186 | |||
| f37d3720b0 | |||
| 17f3e8e786 | |||
| d1376bdf61 | |||
| e40d2b287a | |||
| c78eea5c12 | |||
| a1e0730f31 | |||
| b9ad65081e | |||
| 55a603c196 | |||
| 07ddc22462 | |||
| fcc27c5694 | |||
| babb5cbb9f | |||
| 66b8197c39 | |||
| 48df2da91b | |||
| 410cfe1f18 | |||
| e2eb062b59 | |||
| e1ec4c72c2 | |||
| 945481ece6 | |||
| 2adc256531 | |||
| 99290872d3 | |||
| 97e0db392d | |||
| 4a53e832d4 | |||
| 683f61fd35 | |||
| bab4b394fd | |||
| 1f32bb78b1 | |||
| 0b7cf4c016 | |||
| 9b7bbbdf47 | |||
| 894747b45b | |||
| 8c8573aa7f | |||
| 21c974f300 | |||
| fb929e86af | |||
| a8a8f0bf8a | |||
| 78efdebbe9 |
@@ -1,5 +1,4 @@
|
|||||||
<multibuild>
|
<multibuild>
|
||||||
<package>python-protobuf</package>
|
|
||||||
<package>protobuf-java</package>
|
<package>protobuf-java</package>
|
||||||
</multibuild>
|
</multibuild>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
libprotobuf33_3_0
|
libprotobuf29_3_0
|
||||||
libprotoc33_3_0
|
libprotoc29_3_0
|
||||||
libprotobuf-lite33_3_0
|
libprotobuf-lite29_3_0
|
||||||
libutf8_range-33_3_0
|
libutf8_range-29_3_0
|
||||||
|
|||||||
BIN
protobuf-29.3.tar.gz
LFS
Normal file
BIN
protobuf-29.3.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:1c9996fa0466206d5e4b8120b3fceb332369b64248e0649089aad586569d3896
|
|
||||||
size 6889782
|
|
||||||
BIN
protobuf-5.29.3.tar.gz
LFS
Normal file
BIN
protobuf-5.29.3.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c8794debeb402963fddff41a595e1f649bcd76616ba56c835645cab4539e810e
|
|
||||||
size 444318
|
|
||||||
@@ -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.33.3</version>
|
<version>4.29.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>protobuf-java</artifactId>
|
<artifactId>protobuf-java</artifactId>
|
||||||
@@ -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.33.3</version>
|
<version>4.29.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>protobuf-java-util</artifactId>
|
<artifactId>protobuf-java-util</artifactId>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.protobuf</groupId>
|
<groupId>com.google.protobuf</groupId>
|
||||||
<artifactId>protobuf-java</artifactId>
|
<artifactId>protobuf-java</artifactId>
|
||||||
<version>4.33.3</version>
|
<version>4.29.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.code.findbugs</groupId>
|
<groupId>com.google.code.findbugs</groupId>
|
||||||
@@ -36,6 +36,18 @@
|
|||||||
<version>2.18.0</version>
|
<version>2.18.0</version>
|
||||||
<scope>runtime</scope>
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
Index: protobuf-33.0/java/util/pom.xml
|
--- pom.xml 2025-05-02 23:04:51.224332863 +0200
|
||||||
===================================================================
|
+++ pom.xml 2025-05-02 23:05:30.728959217 +0200
|
||||||
--- protobuf-33.0.orig/java/util/pom.xml
|
@@ -22,31 +22,26 @@
|
||||||
+++ protobuf-33.0/java/util/pom.xml
|
|
||||||
@@ -22,19 +22,16 @@
|
|
||||||
<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>
|
||||||
@@ -18,6 +16,18 @@ Index: protobuf-33.0/java/util/pom.xml
|
|||||||
<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>
|
||||||
|
<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>
|
- <scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -1,241 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Sat Jan 10 11:50:18 UTC 2026 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 33.3, a general maintenance release:
|
|
||||||
* Java: Correctly apply JSON recursion limit when parsing an
|
|
||||||
Any-of-Any
|
|
||||||
* Updates to tests, and developer visible bug fixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun Dec 7 19:33:12 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 33.2:
|
|
||||||
* Add EDITION_UNSTABLE for new edition development
|
|
||||||
* Python: Add BTI to branch targets when branch protection is
|
|
||||||
enabled
|
|
||||||
* Developer visible fixes, code correctness fixes, tests fixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun Nov 16 18:41:50 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 33.1:
|
|
||||||
* C++: Fix Any hasbit consistency issue in OSS
|
|
||||||
* Java: Expose NestedInFileClass naming helpers for Java immutable
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Oct 17 16:21:36 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 33.0:
|
|
||||||
* Compiler: disable symbol visibility enforcement by default in
|
|
||||||
C++ runtime
|
|
||||||
* C++: JSON parser/serializer bug fixes and code-level fixes
|
|
||||||
* Python: Bug fixes: crashes, parser fixes
|
|
||||||
* Java: Restored compatibility of runtime with gencode created
|
|
||||||
with protoc <3.21
|
|
||||||
* Java: Restore ABI compatibility for extension methods which was
|
|
||||||
previously (knowingly) broken with 4.x
|
|
||||||
- drop protobuf-gh23194.patch, included upstream
|
|
||||||
- java: turn protobuf-java-util-removescope.patch from sources into
|
|
||||||
a patch, rebase and fix rpm autopatch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sat Sep 20 17:11:43 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 32.1:
|
|
||||||
* Compiler: Ship all option dependencies to plugins along with
|
|
||||||
regular ones
|
|
||||||
* Compiler: Unify plugin and built-in generators to use request/
|
|
||||||
response interface
|
|
||||||
* Disable symbol visibility enforcement by default in C++ runtime
|
|
||||||
* Fix handling of optional dependencies in java generator
|
|
||||||
* Restore Protobuf Java extension modifiers in gencode
|
|
||||||
* Restore ABI compatibility for extension methods
|
|
||||||
* Fix handling of optional dependencies in java generator
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Sep 12 13:01:39 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
|
||||||
|
|
||||||
- Add upstream patch to fix build on armv9:
|
|
||||||
* protobuf-gh23194.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Sep 8 20:06:48 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 32.0, which enables Edition 2024 for all languages with
|
|
||||||
the following changes:
|
|
||||||
* The default for string_type feature changes from STRING to VIEW
|
|
||||||
* New features enforce_naming_style,m default_symbol_visibility,
|
|
||||||
enum_name_uses_string_view (C++), nest_in_file_class (Java),
|
|
||||||
large_enum (Java)
|
|
||||||
* Add support for import option, export / local Keywords,
|
|
||||||
* Weak imports are no longer allowed
|
|
||||||
* ctype field option is no longer allowed
|
|
||||||
* java_multiple_files file option is removed
|
|
||||||
- drop protobuf-fix-google-imports.patch now included upstream
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jul 21 10:01:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Cherry-pick protobuf-fix-google-imports.patch to fix import issues of
|
|
||||||
reverse-dependency packages within the google namespace (bsc#1244918)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Jun 18 07:25:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 31.1
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Add missing copts attribute (#21982)
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Python pyi print "import datetime" for Duration/Timestamp
|
|
||||||
field
|
|
||||||
* Add recursion depth limits to pure python (#bsc1244663, CVE-2025-4565)
|
|
||||||
* Fix cmake staleness test
|
|
||||||
- from version 31.0
|
|
||||||
* Loosen py_proto_library check to be on the import path instead
|
|
||||||
of full directory (i.e. excluding external/module-name prefix).
|
|
||||||
* Add support for import option for protoc.
|
|
||||||
* Add notices.h with information about our dependencies' licenses
|
|
||||||
and add --notices flag to protoc to print the contents of that file.
|
|
||||||
* Move upb minitable code generator into protoc
|
|
||||||
* Upgrade abseil-cpp to 20250127 and use @com_google_absl -> @abseil-cpp
|
|
||||||
and com_google_googletest -> @googletest canonical BCR names.
|
|
||||||
* Remove fast-path check for non-clang compilers in MessageCreator.
|
|
||||||
* Add missing include.
|
|
||||||
* Add weak attribute to GetClassData to speed up clang builds.
|
|
||||||
* Add nontemporal software prefetcher to repeated ptr field dtor
|
|
||||||
to improve performance.
|
|
||||||
* Warn on unused RepeatedPtrField.
|
|
||||||
* Add notices.h with information about our dependencies' licenses and
|
|
||||||
add --notices flag to protoc to print the contents of that file.
|
|
||||||
* Fix a bug in handling of implicit-presence string_view fields.
|
|
||||||
* Control bounds checks via BUILD flags.
|
|
||||||
* Upgrade abseil-cpp to 20250127 and use @com_google_absl -> @abseil-cpp
|
|
||||||
and com_google_googletest -> @googletest canonical BCR names.
|
|
||||||
* Create hardened versions of Get and Mutable for repeated_field.
|
|
||||||
* Add weak attribute to GetClassData to speed up clang builds.
|
|
||||||
* Use ProtobufToStringOutput to control the output format of
|
|
||||||
AbstractMessage.Builder.toString.
|
|
||||||
* Implement Protobuf Java Immutable API nest_in_file_class feature
|
|
||||||
for Edition 2024.
|
|
||||||
* Introduce a Generated annotation to eventually replace
|
|
||||||
javax.annotation.Generated
|
|
||||||
* Add volatile to featuresResolved
|
|
||||||
* Fix Java concurrency issue in feature resolution for old <=3.25.x
|
|
||||||
gencode using lazy feature resolution.
|
|
||||||
* Remove Java runtime classes from kotlin release.
|
|
||||||
* Split maven dependencies into dev vs local
|
|
||||||
* Improve error messaging when detecting and erroring out on integer
|
|
||||||
overflow of byte count limit variables.
|
|
||||||
* Remove Java runtime classes from kotlin release.
|
|
||||||
* Remove "experimental API" warnings from members in the .NET protobuf runtime.
|
|
||||||
* Improve performace of repeated packed fixedSize fields (#19667)
|
|
||||||
* [ObjC] Deprecate GPBFieldDescriptor.isOptional.
|
|
||||||
* [ObjC] Raise the library version and enable new generated code.
|
|
||||||
* Cherry-pick Rust fix to 31.x (#21617)
|
|
||||||
* Add upb_Map_GetMutable API to upb
|
|
||||||
* See also UPB changes below, which may affect Rust.
|
|
||||||
* Update GetCurrentTime to use datetime.datetime.now
|
|
||||||
* Make Py JSON float_precision apply to both float and double fields.
|
|
||||||
* -Add '+' and '-' annotations for Timestamp and Duration in Python
|
|
||||||
* Bug fix for FieldMask.MergeFrom() with unset fields.
|
|
||||||
* Make python text_format able to skip unknown fields for repeated messages
|
|
||||||
* Fix segment fault for UPB Pyhon 'in' method of empty repeated extensions
|
|
||||||
* Fix upb to escape DefinitelyNeedsEscape (like " and ') for bytes field
|
|
||||||
* Check with fallback descriptorDB for FindExtensionByNumber()/
|
|
||||||
FindAllExtensions in UPB python pool.
|
|
||||||
* Add clear() method to repeated fields in Python.
|
|
||||||
* Register Scalar/MessageMapContainerTypes as virtual subclasses of
|
|
||||||
* Fix python codegen crash when C++ features are used.
|
|
||||||
* Add more detail to the comment for GetMessageClassesForFiles
|
|
||||||
* Add constructing unpack routine to Python Protobuf Any API.
|
|
||||||
* Implement typing for proto Timestamp/Duration assignments.
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Feat(php): improve return typehint when repeatedfield (#11734)
|
|
||||||
* Automated rollback of commit f9863df. (#21355)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Feat(php): improve return typehint when repeatedfield (#11734)
|
|
||||||
* See also UPB changes below, which may affect PHP C-Extension.
|
|
||||||
* Fix silent failure of rb_test rules to run test (#21733)
|
|
||||||
* Ruby | Add support for a protobuf debug build (#21060)
|
|
||||||
* Ruby | Support installing the gem via git and some other
|
|
||||||
small build tweaks (#21061)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* [Ruby]Implement #to_hash for message classes (#20866)
|
|
||||||
* Drop Ruby 3.0
|
|
||||||
* Fixes #18726 by backslash escaping descriptor data containing #
|
|
||||||
if the hashmark appears immediately before any of $, {, or @.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Ruby: fix bug in Map.hash
|
|
||||||
* Ruby | Add support for a protobuf debug build (#21060)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Ruby: fix bug in Map.hash
|
|
||||||
* See also UPB changes below, which may affect Ruby C-Extension.
|
|
||||||
* Fixed LTO-only linker error in upb linker arrays.
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Add upb_Map_GetMutable API to upb (dd5bf5e)
|
|
||||||
* Fix upb to escape DefinitelyNeedsEscape (like " and ') for bytes field
|
|
||||||
* Upb: delete functions in map_gencode_util. They're unused
|
|
||||||
after the Map iterator API change.
|
|
||||||
* Upb: Update _upb_map_next signature to return a boolean
|
|
||||||
and remove the _nextmutable Map iterator API.
|
|
||||||
* Change upb C generated map iteration function to not
|
|
||||||
hand out MapEntry pointers.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Expose the upb_ByteSize function to upb clients. Note that the
|
|
||||||
current naive implementation is no more efficient than serializing
|
|
||||||
the message yourself and noting the resulting size.
|
|
||||||
* Move upb minitable code generator into protoc
|
|
||||||
* Tolerate message set extensions encoded as normal deliminited submessages
|
|
||||||
* Automated rollback of commit 6bde8c4.
|
|
||||||
* Fix UPB fast table build.
|
|
||||||
* Patch rules_ruby to apply neverlink = True to the jars
|
|
||||||
rule (#21416) (#21505)
|
|
||||||
* Restore JDK8 compatibility in Bazel for libraries with
|
|
||||||
dependencies from Maven (e.g. //java/util)
|
|
||||||
* Protobuf: add //:go_features_proto Bazel alias (f79be3e)
|
|
||||||
* Fixes -lpthread problem when building with android_arm64 config (#20337)
|
|
||||||
- Bump abseil_min_version to 20250127.0
|
|
||||||
- Bump sover to 31_1_0
|
|
||||||
- Update list of Java sources for lite build
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun May 25 16:38:17 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 30.2:
|
|
||||||
* return types in descriptor (such as full_name) to be
|
|
||||||
absl::string_view. This opens up memory savings in descriptors.
|
|
||||||
* stop exposing the ctype from FieldDescriptor options.
|
|
||||||
* debug API redacts sensitive fields
|
|
||||||
* Remove MutableRepeatedFieldRef<T>::Reserve().
|
|
||||||
* Removal of previously deprecated API, for replacements see
|
|
||||||
https://protobuf.dev/news/v30/#remove-deprecated
|
|
||||||
* C++17 support required
|
|
||||||
* Python 3.8 support dropped
|
|
||||||
* Python deprecated API sremoved, for replacements see
|
|
||||||
https://protobuf.dev/news/v30/#python-remove-apis
|
|
||||||
* compatibility with abseil-cpp: Remove if_constexpr usage
|
|
||||||
- drop versionize-shlibs.patch, related change included upstream
|
|
||||||
- includes changes from 29.4:
|
|
||||||
* Fix Java concurrency issue in feature resolution for old
|
|
||||||
<=3.25.x gencode using lazy feature resolution
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
|
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
|
||||||
|
|
||||||
@@ -273,7 +35,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>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
# spec file for package protobuf-java
|
# spec file for package protobuf-java
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2026 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
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,8 +18,9 @@
|
|||||||
|
|
||||||
|
|
||||||
%define tarname protobuf
|
%define tarname protobuf
|
||||||
|
%define patchjuname protobuf-java-util-removescope.patch
|
||||||
Name: protobuf-java
|
Name: protobuf-java
|
||||||
Version: 33.3
|
Version: 29.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
|
||||||
@@ -29,7 +30,7 @@ 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
|
||||||
Patch0: protobuf-java-util-removescope.patch
|
Source4: %{patchjuname}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: java-devel >= 1.8
|
BuildRequires: java-devel >= 1.8
|
||||||
BuildRequires: maven-local
|
BuildRequires: maven-local
|
||||||
@@ -78,14 +79,19 @@ Group: Documentation/HTML
|
|||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{tarname}-%{version}
|
%autosetup -p1 -n %{tarname}-%{version}
|
||||||
cp %{SOURCE1} java/core/pom.xml
|
|
||||||
cp %{SOURCE2} java/lite/pom.xml
|
# The previous blank line is crucial for older system being able
|
||||||
cp %{SOURCE3} java/util/pom.xml
|
# to use the autosetup macro
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
pushd java
|
pushd java
|
||||||
|
cp %{SOURCE1} core/pom.xml
|
||||||
|
cp %{SOURCE2} lite/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
|
||||||
@@ -173,7 +179,6 @@ cp \
|
|||||||
core/src/main/java/com/google/protobuf/FloatArrayList.java \
|
core/src/main/java/com/google/protobuf/FloatArrayList.java \
|
||||||
core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java \
|
core/src/main/java/com/google/protobuf/GeneratedMessageInfoFactory.java \
|
||||||
core/src/main/java/com/google/protobuf/GeneratedMessageLite.java \
|
core/src/main/java/com/google/protobuf/GeneratedMessageLite.java \
|
||||||
core/src/main/java/com/google/protobuf/Generated.java \
|
|
||||||
core/src/main/java/com/google/protobuf/InlineMe.java \
|
core/src/main/java/com/google/protobuf/InlineMe.java \
|
||||||
core/src/main/java/com/google/protobuf/IntArrayList.java \
|
core/src/main/java/com/google/protobuf/IntArrayList.java \
|
||||||
core/src/main/java/com/google/protobuf/Internal.java \
|
core/src/main/java/com/google/protobuf/Internal.java \
|
||||||
|
|||||||
@@ -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.33.3</version>
|
<version>4.29.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>protobuf-javalite</artifactId>
|
<artifactId>protobuf-javalite</artifactId>
|
||||||
238
protobuf.changes
238
protobuf.changes
@@ -1,241 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Sat Jan 10 11:50:18 UTC 2026 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 33.3, a general maintenance release:
|
|
||||||
* Java: Correctly apply JSON recursion limit when parsing an
|
|
||||||
Any-of-Any
|
|
||||||
* Updates to tests, and developer visible bug fixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun Dec 7 19:33:12 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 33.2:
|
|
||||||
* Add EDITION_UNSTABLE for new edition development
|
|
||||||
* Python: Add BTI to branch targets when branch protection is
|
|
||||||
enabled
|
|
||||||
* Developer visible fixes, code correctness fixes, tests fixes
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun Nov 16 18:41:50 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 33.1:
|
|
||||||
* C++: Fix Any hasbit consistency issue in OSS
|
|
||||||
* Java: Expose NestedInFileClass naming helpers for Java immutable
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Oct 17 16:21:36 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 33.0:
|
|
||||||
* Compiler: disable symbol visibility enforcement by default in
|
|
||||||
C++ runtime
|
|
||||||
* C++: JSON parser/serializer bug fixes and code-level fixes
|
|
||||||
* Python: Bug fixes: crashes, parser fixes
|
|
||||||
* Java: Restored compatibility of runtime with gencode created
|
|
||||||
with protoc <3.21
|
|
||||||
* Java: Restore ABI compatibility for extension methods which was
|
|
||||||
previously (knowingly) broken with 4.x
|
|
||||||
- drop protobuf-gh23194.patch, included upstream
|
|
||||||
- java: turn protobuf-java-util-removescope.patch from sources into
|
|
||||||
a patch, rebase and fix rpm autopatch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sat Sep 20 17:11:43 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 32.1:
|
|
||||||
* Compiler: Ship all option dependencies to plugins along with
|
|
||||||
regular ones
|
|
||||||
* Compiler: Unify plugin and built-in generators to use request/
|
|
||||||
response interface
|
|
||||||
* Disable symbol visibility enforcement by default in C++ runtime
|
|
||||||
* Fix handling of optional dependencies in java generator
|
|
||||||
* Restore Protobuf Java extension modifiers in gencode
|
|
||||||
* Restore ABI compatibility for extension methods
|
|
||||||
* Fix handling of optional dependencies in java generator
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Sep 12 13:01:39 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
|
||||||
|
|
||||||
- Add upstream patch to fix build on armv9:
|
|
||||||
* protobuf-gh23194.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Sep 8 20:06:48 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- Update to 32.0, which enables Edition 2024 for all languages with
|
|
||||||
the following changes:
|
|
||||||
* The default for string_type feature changes from STRING to VIEW
|
|
||||||
* New features enforce_naming_style,m default_symbol_visibility,
|
|
||||||
enum_name_uses_string_view (C++), nest_in_file_class (Java),
|
|
||||||
large_enum (Java)
|
|
||||||
* Add support for import option, export / local Keywords,
|
|
||||||
* Weak imports are no longer allowed
|
|
||||||
* ctype field option is no longer allowed
|
|
||||||
* java_multiple_files file option is removed
|
|
||||||
- drop protobuf-fix-google-imports.patch now included upstream
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Mon Jul 21 10:01:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Cherry-pick protobuf-fix-google-imports.patch to fix import issues of
|
|
||||||
reverse-dependency packages within the google namespace (bsc#1244918)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Jun 18 07:25:22 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
|
||||||
|
|
||||||
- Update to 31.1
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Add missing copts attribute (#21982)
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Support allowing late injection of language feature set
|
|
||||||
defaults from FeatureSet extensions while getting feature
|
|
||||||
set extension values.
|
|
||||||
* Python pyi print "import datetime" for Duration/Timestamp
|
|
||||||
field
|
|
||||||
* Add recursion depth limits to pure python (#bsc1244663, CVE-2025-4565)
|
|
||||||
* Fix cmake staleness test
|
|
||||||
- from version 31.0
|
|
||||||
* Loosen py_proto_library check to be on the import path instead
|
|
||||||
of full directory (i.e. excluding external/module-name prefix).
|
|
||||||
* Add support for import option for protoc.
|
|
||||||
* Add notices.h with information about our dependencies' licenses
|
|
||||||
and add --notices flag to protoc to print the contents of that file.
|
|
||||||
* Move upb minitable code generator into protoc
|
|
||||||
* Upgrade abseil-cpp to 20250127 and use @com_google_absl -> @abseil-cpp
|
|
||||||
and com_google_googletest -> @googletest canonical BCR names.
|
|
||||||
* Remove fast-path check for non-clang compilers in MessageCreator.
|
|
||||||
* Add missing include.
|
|
||||||
* Add weak attribute to GetClassData to speed up clang builds.
|
|
||||||
* Add nontemporal software prefetcher to repeated ptr field dtor
|
|
||||||
to improve performance.
|
|
||||||
* Warn on unused RepeatedPtrField.
|
|
||||||
* Add notices.h with information about our dependencies' licenses and
|
|
||||||
add --notices flag to protoc to print the contents of that file.
|
|
||||||
* Fix a bug in handling of implicit-presence string_view fields.
|
|
||||||
* Control bounds checks via BUILD flags.
|
|
||||||
* Upgrade abseil-cpp to 20250127 and use @com_google_absl -> @abseil-cpp
|
|
||||||
and com_google_googletest -> @googletest canonical BCR names.
|
|
||||||
* Create hardened versions of Get and Mutable for repeated_field.
|
|
||||||
* Add weak attribute to GetClassData to speed up clang builds.
|
|
||||||
* Use ProtobufToStringOutput to control the output format of
|
|
||||||
AbstractMessage.Builder.toString.
|
|
||||||
* Implement Protobuf Java Immutable API nest_in_file_class feature
|
|
||||||
for Edition 2024.
|
|
||||||
* Introduce a Generated annotation to eventually replace
|
|
||||||
javax.annotation.Generated
|
|
||||||
* Add volatile to featuresResolved
|
|
||||||
* Fix Java concurrency issue in feature resolution for old <=3.25.x
|
|
||||||
gencode using lazy feature resolution.
|
|
||||||
* Remove Java runtime classes from kotlin release.
|
|
||||||
* Split maven dependencies into dev vs local
|
|
||||||
* Improve error messaging when detecting and erroring out on integer
|
|
||||||
overflow of byte count limit variables.
|
|
||||||
* Remove Java runtime classes from kotlin release.
|
|
||||||
* Remove "experimental API" warnings from members in the .NET protobuf runtime.
|
|
||||||
* Improve performace of repeated packed fixedSize fields (#19667)
|
|
||||||
* [ObjC] Deprecate GPBFieldDescriptor.isOptional.
|
|
||||||
* [ObjC] Raise the library version and enable new generated code.
|
|
||||||
* Cherry-pick Rust fix to 31.x (#21617)
|
|
||||||
* Add upb_Map_GetMutable API to upb
|
|
||||||
* See also UPB changes below, which may affect Rust.
|
|
||||||
* Update GetCurrentTime to use datetime.datetime.now
|
|
||||||
* Make Py JSON float_precision apply to both float and double fields.
|
|
||||||
* -Add '+' and '-' annotations for Timestamp and Duration in Python
|
|
||||||
* Bug fix for FieldMask.MergeFrom() with unset fields.
|
|
||||||
* Make python text_format able to skip unknown fields for repeated messages
|
|
||||||
* Fix segment fault for UPB Pyhon 'in' method of empty repeated extensions
|
|
||||||
* Fix upb to escape DefinitelyNeedsEscape (like " and ') for bytes field
|
|
||||||
* Check with fallback descriptorDB for FindExtensionByNumber()/
|
|
||||||
FindAllExtensions in UPB python pool.
|
|
||||||
* Add clear() method to repeated fields in Python.
|
|
||||||
* Register Scalar/MessageMapContainerTypes as virtual subclasses of
|
|
||||||
* Fix python codegen crash when C++ features are used.
|
|
||||||
* Add more detail to the comment for GetMessageClassesForFiles
|
|
||||||
* Add constructing unpack routine to Python Protobuf Any API.
|
|
||||||
* Implement typing for proto Timestamp/Duration assignments.
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Feat(php): improve return typehint when repeatedfield (#11734)
|
|
||||||
* Automated rollback of commit f9863df. (#21355)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Feat(php): improve return typehint when repeatedfield (#11734)
|
|
||||||
* See also UPB changes below, which may affect PHP C-Extension.
|
|
||||||
* Fix silent failure of rb_test rules to run test (#21733)
|
|
||||||
* Ruby | Add support for a protobuf debug build (#21060)
|
|
||||||
* Ruby | Support installing the gem via git and some other
|
|
||||||
small build tweaks (#21061)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* [Ruby]Implement #to_hash for message classes (#20866)
|
|
||||||
* Drop Ruby 3.0
|
|
||||||
* Fixes #18726 by backslash escaping descriptor data containing #
|
|
||||||
if the hashmark appears immediately before any of $, {, or @.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Ruby: fix bug in Map.hash
|
|
||||||
* Ruby | Add support for a protobuf debug build (#21060)
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Ruby: fix bug in Map.hash
|
|
||||||
* See also UPB changes below, which may affect Ruby C-Extension.
|
|
||||||
* Fixed LTO-only linker error in upb linker arrays.
|
|
||||||
* Deprecate Descriptor Label. As an alternative, add helper methods
|
|
||||||
for checking whether a field is required or repeated.
|
|
||||||
* Add upb_Map_GetMutable API to upb (dd5bf5e)
|
|
||||||
* Fix upb to escape DefinitelyNeedsEscape (like " and ') for bytes field
|
|
||||||
* Upb: delete functions in map_gencode_util. They're unused
|
|
||||||
after the Map iterator API change.
|
|
||||||
* Upb: Update _upb_map_next signature to return a boolean
|
|
||||||
and remove the _nextmutable Map iterator API.
|
|
||||||
* Change upb C generated map iteration function to not
|
|
||||||
hand out MapEntry pointers.
|
|
||||||
* Ruby: Allow to get a file descriptor by a file name (#20287)
|
|
||||||
* Expose the upb_ByteSize function to upb clients. Note that the
|
|
||||||
current naive implementation is no more efficient than serializing
|
|
||||||
the message yourself and noting the resulting size.
|
|
||||||
* Move upb minitable code generator into protoc
|
|
||||||
* Tolerate message set extensions encoded as normal deliminited submessages
|
|
||||||
* Automated rollback of commit 6bde8c4.
|
|
||||||
* Fix UPB fast table build.
|
|
||||||
* Patch rules_ruby to apply neverlink = True to the jars
|
|
||||||
rule (#21416) (#21505)
|
|
||||||
* Restore JDK8 compatibility in Bazel for libraries with
|
|
||||||
dependencies from Maven (e.g. //java/util)
|
|
||||||
* Protobuf: add //:go_features_proto Bazel alias (f79be3e)
|
|
||||||
* Fixes -lpthread problem when building with android_arm64 config (#20337)
|
|
||||||
- Bump abseil_min_version to 20250127.0
|
|
||||||
- Bump sover to 31_1_0
|
|
||||||
- Update list of Java sources for lite build
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Sun May 25 16:38:17 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
|
||||||
|
|
||||||
- update to 30.2:
|
|
||||||
* return types in descriptor (such as full_name) to be
|
|
||||||
absl::string_view. This opens up memory savings in descriptors.
|
|
||||||
* stop exposing the ctype from FieldDescriptor options.
|
|
||||||
* debug API redacts sensitive fields
|
|
||||||
* Remove MutableRepeatedFieldRef<T>::Reserve().
|
|
||||||
* Removal of previously deprecated API, for replacements see
|
|
||||||
https://protobuf.dev/news/v30/#remove-deprecated
|
|
||||||
* C++17 support required
|
|
||||||
* Python 3.8 support dropped
|
|
||||||
* Python deprecated API sremoved, for replacements see
|
|
||||||
https://protobuf.dev/news/v30/#python-remove-apis
|
|
||||||
* compatibility with abseil-cpp: Remove if_constexpr usage
|
|
||||||
- drop versionize-shlibs.patch, related change included upstream
|
|
||||||
- includes changes from 29.4:
|
|
||||||
* Fix Java concurrency issue in feature resolution for old
|
|
||||||
<=3.25.x gencode using lazy feature resolution
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
|
Thu May 1 09:05:08 UTC 2025 - Antonello Tartamo <antonello.tartamo@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
# spec file for package protobuf
|
# spec file for package protobuf
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2026 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
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
%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 20250512.1
|
%define abseil_min_version 20230125.3
|
||||||
%global sover 33_3_0
|
%global sover 29_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: 33.3
|
Version: 29.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
|
||||||
@@ -74,6 +74,7 @@ Group: Development/Libraries/C and C++
|
|||||||
URL: https://github.com/protocolbuffers/protobuf
|
URL: https://github.com/protocolbuffers/protobuf
|
||||||
Source0: https://github.com/protocolbuffers/protobuf/releases/download/v%{version}/%{tarname}-%{version}.tar.gz
|
Source0: https://github.com/protocolbuffers/protobuf/releases/download/v%{version}/%{tarname}-%{version}.tar.gz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
Patch1: versionize-shlibs.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc%{?with_gcc}-c++
|
BuildRequires: gcc%{?with_gcc}-c++
|
||||||
@@ -99,14 +100,12 @@ BuildRequires: pkgconfig(absl_flat_hash_set) >= %{abseil_min_version}
|
|||||||
BuildRequires: pkgconfig(absl_function_ref) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_function_ref) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_hash) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_hash) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_layout) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_layout) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_log_globals) >= %{abseil_min_version}
|
|
||||||
BuildRequires: pkgconfig(absl_log_initialize) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_log_initialize) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_log_severity) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_log_severity) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_memory) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_memory) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_node_hash_map) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_node_hash_map) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_node_hash_set) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_node_hash_set) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_random_distributions) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_optional) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_random_random) >= %{abseil_min_version}
|
|
||||||
BuildRequires: pkgconfig(absl_span) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_span) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_status) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_status) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_statusor) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_statusor) >= %{abseil_min_version}
|
||||||
@@ -115,6 +114,7 @@ BuildRequires: pkgconfig(absl_synchronization) >= %{abseil_min_version}
|
|||||||
BuildRequires: pkgconfig(absl_time) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_time) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_type_traits) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_type_traits) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(absl_utility) >= %{abseil_min_version}
|
BuildRequires: pkgconfig(absl_utility) >= %{abseil_min_version}
|
||||||
|
BuildRequires: pkgconfig(absl_variant) >= %{abseil_min_version}
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
BuildRequires: libgmock-devel >= 1.7.0
|
BuildRequires: libgmock-devel >= 1.7.0
|
||||||
@@ -192,7 +192,7 @@ export CC=gcc-%{with_gcc}
|
|||||||
%endif
|
%endif
|
||||||
%cmake \
|
%cmake \
|
||||||
-Dprotobuf_BUILD_TESTS=OFF \
|
-Dprotobuf_BUILD_TESTS=OFF \
|
||||||
%{nil}
|
-Dprotobuf_ABSL_PROVIDER=package
|
||||||
%cmake_build
|
%cmake_build
|
||||||
|
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
@@ -203,6 +203,9 @@ export CC=gcc-%{with_gcc}
|
|||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
|
install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
|
||||||
|
# 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_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
|
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
|
||||||
@@ -255,8 +258,8 @@ __PROTOBUF__
|
|||||||
|
|
||||||
%files -n libutf8_range-%{sover}
|
%files -n libutf8_range-%{sover}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_libdir}/libutf8_range.so.%{version}.0
|
%{_libdir}/libutf8_range-%{version}.0.so
|
||||||
%{_libdir}/libutf8_validity.so.%{version}.0
|
%{_libdir}/libutf8_validity-%{version}.0.so
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@@ -273,6 +276,7 @@ __PROTOBUF__
|
|||||||
%dir %{_includedir}/java/core/src/main/resources/google/protobuf
|
%dir %{_includedir}/java/core/src/main/resources/google/protobuf
|
||||||
%{_includedir}/java/core/src/main/resources/google/protobuf/java_features.proto
|
%{_includedir}/java/core/src/main/resources/google/protobuf/java_features.proto
|
||||||
%{_includedir}/upb
|
%{_includedir}/upb
|
||||||
|
%{_includedir}/upb_generator
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/cmake/protobuf
|
%{_libdir}/cmake/protobuf
|
||||||
%{_libdir}/cmake/utf8_range
|
%{_libdir}/cmake/utf8_range
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,70 +0,0 @@
|
|||||||
#
|
|
||||||
# spec file for package python-protobuf
|
|
||||||
#
|
|
||||||
# Copyright (c) 2025 SUSE LLC and contributors
|
|
||||||
# Copyright (c) 2026 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 33.3
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
Name: python-protobuf
|
|
||||||
Version: 6.%{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 -p2 -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-%{version}.dist-info
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
32
versionize-shlibs.patch
Normal file
32
versionize-shlibs.patch
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Date: 2024-10-28 10:10:20.918922623 +0100
|
||||||
|
References: https://github.com/protocolbuffers/protobuf/pull/19009
|
||||||
|
|
||||||
|
Unversioned libraries are strongly discouraged. Use
|
||||||
|
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy#When_there_is_no_versioning
|
||||||
|
method 1 to remedy. Though utf8_range has a version of its own ("1.0"
|
||||||
|
visible through the .pc file) and gets third_party/-like treatment,
|
||||||
|
protobuf is the authoritative repository for it, using the protobuf
|
||||||
|
version for our SONAME seems acceptable.
|
||||||
|
|
||||||
|
This openSUSE patch follows SLPP's naming provisions and so is
|
||||||
|
slightly different from PR19009 while the PR is unmerged.
|
||||||
|
|
||||||
|
---
|
||||||
|
third_party/utf8_range/CMakeLists.txt | 8 ++++++++
|
||||||
|
1 file changed, 8 insertions(+)
|
||||||
|
|
||||||
|
Index: protobuf-29.3/third_party/utf8_range/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- protobuf-29.3.orig/third_party/utf8_range/CMakeLists.txt
|
||||||
|
+++ protobuf-29.3/third_party/utf8_range/CMakeLists.txt
|
||||||
|
@@ -19,6 +19,9 @@ add_library (utf8_range
|
||||||
|
# A heavier-weight C++ wrapper that supports Abseil.
|
||||||
|
add_library (utf8_validity utf8_validity.cc utf8_range.c)
|
||||||
|
|
||||||
|
+set_target_properties(utf8_range PROPERTIES OUTPUT_NAME ${LIB_PREFIX}utf8_range-${protobuf_VERSION})
|
||||||
|
+set_target_properties(utf8_validity PROPERTIES OUTPUT_NAME ${LIB_PREFIX}utf8_validity-${protobuf_VERSION})
|
||||||
|
+
|
||||||
|
# Load Abseil dependency.
|
||||||
|
if (NOT TARGET absl::strings)
|
||||||
|
if (NOT ABSL_ROOT_DIR)
|
||||||
Reference in New Issue
Block a user