Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ef43b7a637 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
SOURCES/googlemock-1.7.0.tar.gz
|
||||
SOURCES/googletest-1.7.0.tar.gz
|
||||
SOURCES/protobuf-3.5.0.tar.gz
|
||||
googletest-5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081.tar.gz
|
||||
protobuf-3.19.6-all.tar.gz
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
2dbd904c1c0eadbe7250854fa8a2b8695a930e34 SOURCES/googlemock-1.7.0.tar.gz
|
||||
d7aa4b8536f3a007b480cf016be8a4333dbf4768 SOURCES/googletest-1.7.0.tar.gz
|
||||
41eaae1c0ae5fdc7fcb18916bf8fd22a4e3438a3 SOURCES/protobuf-3.5.0.tar.gz
|
||||
@ -1,26 +0,0 @@
|
||||
From 3db1323d1d6132f08d0bafbd8602da7d71456745 Mon Sep 17 00:00:00 2001
|
||||
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||
Date: Tue, 28 Nov 2017 20:58:00 +0100
|
||||
Subject: [PATCH] fix build on s390x
|
||||
|
||||
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
|
||||
---
|
||||
src/google/protobuf/stubs/atomicops.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/google/protobuf/stubs/atomicops.h b/src/google/protobuf/stubs/atomicops.h
|
||||
index cb4553b1..34278f3a 100644
|
||||
--- a/src/google/protobuf/stubs/atomicops.h
|
||||
+++ b/src/google/protobuf/stubs/atomicops.h
|
||||
@@ -214,7 +214,7 @@ Atomic64 Release_Load(volatile const Atomic64* ptr);
|
||||
#elif defined(GOOGLE_PROTOBUF_ARCH_PPC)
|
||||
#include <google/protobuf/stubs/atomicops_internals_ppc_gcc.h>
|
||||
#elif (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 4))
|
||||
-#include <google/protobuf/stubs/atomicops_internals_generic_gcc.h>
|
||||
+#include <google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h>
|
||||
#elif defined(__clang__)
|
||||
#if __has_extension(c_atomic)
|
||||
#include <google/protobuf/stubs/atomicops_internals_generic_gcc.h>
|
||||
--
|
||||
2.15.0
|
||||
|
||||
@ -1,57 +0,0 @@
|
||||
--- a/src/google/protobuf/descriptor.cc.orig 2017-11-13 19:47:29.000000000 +0100
|
||||
+++ b/src/google/protobuf/descriptor.cc 2022-03-08 17:00:19.057041566 +0100
|
||||
@@ -2591,6 +2591,8 @@
|
||||
const Descriptor::ReservedRange* range = reserved_range(i);
|
||||
if (range->end == range->start + 1) {
|
||||
strings::SubstituteAndAppend(contents, "$0, ", range->start);
|
||||
+ } else if (range->end > FieldDescriptor::kMaxNumber) {
|
||||
+ strings::SubstituteAndAppend(contents, "$0 to max, ", range->start);
|
||||
} else {
|
||||
strings::SubstituteAndAppend(contents, "$0 to $1, ",
|
||||
range->start, range->end - 1);
|
||||
@@ -2810,6 +2812,8 @@
|
||||
const EnumDescriptor::ReservedRange* range = reserved_range(i);
|
||||
if (range->end == range->start) {
|
||||
strings::SubstituteAndAppend(contents, "$0, ", range->start);
|
||||
+ } else if (range->end == INT_MAX) {
|
||||
+ strings::SubstituteAndAppend(contents, "$0 to max, ", range->start);
|
||||
} else {
|
||||
strings::SubstituteAndAppend(contents, "$0 to $1, ",
|
||||
range->start, range->end);
|
||||
@@ -3983,6 +3987,11 @@
|
||||
// Use its file as the parent instead.
|
||||
if (parent == NULL) parent = file_;
|
||||
|
||||
+ if (full_name.find('\0') != std::string::npos) {
|
||||
+ AddError(full_name, proto, DescriptorPool::ErrorCollector::NAME,
|
||||
+ "\"" + full_name + "\" contains null character.");
|
||||
+ return false;
|
||||
+ }
|
||||
if (tables_->AddSymbol(full_name, symbol)) {
|
||||
if (!file_tables_->AddAliasUnderParent(parent, name, symbol)) {
|
||||
// This is only possible if there was already an error adding something of
|
||||
@@ -4020,6 +4029,11 @@
|
||||
|
||||
void DescriptorBuilder::AddPackage(
|
||||
const string& name, const Message& proto, const FileDescriptor* file) {
|
||||
+ if (name.find('\0') != std::string::npos) {
|
||||
+ AddError(name, proto, DescriptorPool::ErrorCollector::NAME,
|
||||
+ "\"" + name + "\" contains null character.");
|
||||
+ return;
|
||||
+ }
|
||||
if (tables_->AddSymbol(name, Symbol(file))) {
|
||||
// Success. Also add parent package, if any.
|
||||
string::size_type dot_pos = name.find_last_of('.');
|
||||
@@ -4288,6 +4302,12 @@
|
||||
}
|
||||
result->pool_ = pool_;
|
||||
|
||||
+ if (result->name().find('\0') != std::string::npos) {
|
||||
+ AddError(result->name(), proto, DescriptorPool::ErrorCollector::NAME,
|
||||
+ "\"" + result->name() + "\" contains null character.");
|
||||
+ return nullptr;
|
||||
+ }
|
||||
+
|
||||
// Add to tables.
|
||||
if (!tables_->AddFile(result)) {
|
||||
AddError(proto.name(), proto, DescriptorPool::ErrorCollector::OTHER,
|
||||
@ -1,646 +0,0 @@
|
||||
# Build -python2 subpackage
|
||||
%bcond_with python2
|
||||
# Build -python3 subpackage
|
||||
%bcond_without python3
|
||||
# Build -java subpackage
|
||||
%bcond_with java
|
||||
|
||||
%global emacs_version %(pkg-config emacs --modversion)
|
||||
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
||||
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
||||
|
||||
#global rcver rc2
|
||||
|
||||
Summary: Protocol Buffers - Google's data interchange format
|
||||
Name: protobuf
|
||||
Version: 3.5.0
|
||||
Release: 15%{?dist}
|
||||
License: BSD
|
||||
URL: https://github.com/google/protobuf
|
||||
Source: https://github.com/google/protobuf/archive/v%{version}%{?rcver}/%{name}-%{version}%{?rcver}.tar.gz
|
||||
Source1: ftdetect-proto.vim
|
||||
Source2: protobuf-init.el
|
||||
# For tests
|
||||
Source3: https://github.com/google/googlemock/archive/release-1.7.0.tar.gz#/googlemock-1.7.0.tar.gz
|
||||
Source4: https://github.com/google/googletest/archive/release-1.7.0.tar.gz#/googletest-1.7.0.tar.gz
|
||||
# Might be upstreamable, but for now temporary workaround
|
||||
Patch0: 0001-fix-build-on-s390x.patch
|
||||
Patch1: CVE-2021-22570.rhel-8.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: emacs(bin)
|
||||
BuildRequires: emacs-el >= 24.1
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%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.
|
||||
|
||||
Protocol buffers are a flexible, efficient, automated mechanism for
|
||||
serializing structured data – think XML, but smaller, faster, and
|
||||
simpler. You define how you want your data to be structured once, then
|
||||
you can use special generated source code to easily write and read
|
||||
your structured data to and from a variety of data streams and using a
|
||||
variety of languages. You can even update your data structure without
|
||||
breaking deployed programs that are compiled against the "old" format.
|
||||
|
||||
%package compiler
|
||||
Summary: Protocol Buffers compiler
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description compiler
|
||||
This package contains Protocol Buffers compiler for all programming
|
||||
languages
|
||||
|
||||
%package devel
|
||||
Summary: Protocol Buffers C++ headers and libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-compiler = %{version}-%{release}
|
||||
Requires: zlib-devel
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
This package contains Protocol Buffers compiler for all languages and
|
||||
C++ headers and libraries
|
||||
|
||||
%package static
|
||||
Summary: Static development files for %{name}
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
Static libraries for Protocol Buffers
|
||||
|
||||
%package lite
|
||||
Summary: Protocol Buffers LITE_RUNTIME libraries
|
||||
|
||||
%description lite
|
||||
Protocol Buffers built with optimize_for = LITE_RUNTIME.
|
||||
|
||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||
lacks descriptors, reflection, and some other features.
|
||||
|
||||
%package lite-devel
|
||||
Summary: Protocol Buffers LITE_RUNTIME development libraries
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
Requires: %{name}-lite = %{version}-%{release}
|
||||
|
||||
%description lite-devel
|
||||
This package contains development libraries built with
|
||||
optimize_for = LITE_RUNTIME.
|
||||
|
||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||
lacks descriptors, reflection, and some other features.
|
||||
|
||||
%package lite-static
|
||||
Summary: Static development files for %{name}-lite
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description lite-static
|
||||
This package contains static development libraries built with
|
||||
optimize_for = LITE_RUNTIME.
|
||||
|
||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||
lacks descriptors, reflection, and some other features.
|
||||
|
||||
%if %{with python2}
|
||||
%package -n python2-%{name}
|
||||
Summary: Python 2 bindings for Google Protocol Buffers
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python-setuptools
|
||||
%if 0%{?fedora}
|
||||
# For tests
|
||||
BuildRequires: python-google-apputils
|
||||
%endif
|
||||
Requires: python-six >= 1.9
|
||||
Conflicts: %{name}-compiler > %{version}
|
||||
Conflicts: %{name}-compiler < %{version}
|
||||
Obsoletes: %{name}-python < 3.1.0-4
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
|
||||
%description -n python2-%{name}
|
||||
This package contains Python 2 libraries for Google Protocol Buffers
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%package -n python%{python3_pkgversion}-%{name}
|
||||
Summary: Python 3 bindings for Google Protocol Buffers
|
||||
BuildArch: noarch
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
%if 0%{?fedora}
|
||||
# For tests
|
||||
BuildRequires: python%{python3_pkgversion}-google-apputils
|
||||
%endif
|
||||
Requires: python%{python3_pkgversion}-six >= 1.9
|
||||
Conflicts: %{name}-compiler > %{version}
|
||||
Conflicts: %{name}-compiler < %{version}
|
||||
Provides: %{name}-python3 = %{version}-%{release}
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{name}
|
||||
This package contains Python 3 libraries for Google Protocol Buffers
|
||||
%endif
|
||||
|
||||
%package vim
|
||||
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
|
||||
BuildArch: noarch
|
||||
Requires: vim-enhanced
|
||||
|
||||
%description vim
|
||||
This package contains syntax highlighting for Google Protocol Buffers
|
||||
descriptions in Vim editor
|
||||
|
||||
%package emacs
|
||||
Summary: Emacs mode for Google Protocol Buffers descriptions
|
||||
BuildArch: noarch
|
||||
Requires: emacs(bin) >= 0%{emacs_version}
|
||||
|
||||
%description emacs
|
||||
This package contains syntax highlighting for Google Protocol Buffers
|
||||
descriptions in the Emacs editor.
|
||||
|
||||
%package emacs-el
|
||||
Summary: Elisp source files for Google protobuf Emacs mode
|
||||
BuildArch: noarch
|
||||
Requires: protobuf-emacs = %{version}
|
||||
|
||||
%description emacs-el
|
||||
This package contains the elisp source files for %{name}-emacs
|
||||
under GNU Emacs. You do not need to install this package to use
|
||||
%{name}-emacs.
|
||||
|
||||
|
||||
%if %{with java}
|
||||
%package java
|
||||
Summary: Java Protocol Buffers runtime library
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.google.code.gson:gson)
|
||||
BuildRequires: mvn(com.google.guava:guava)
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(org.easymock:easymock)
|
||||
Conflicts: %{name}-compiler > %{version}
|
||||
Conflicts: %{name}-compiler < %{version}
|
||||
|
||||
%description java
|
||||
This package contains Java Protocol Buffers runtime library.
|
||||
|
||||
%package java-util
|
||||
Summary: Utilities for Protocol Buffers
|
||||
BuildArch: noarch
|
||||
|
||||
%description java-util
|
||||
Utilities to work with protos. It contains JSON support
|
||||
as well as utilities to work with proto3 well-known types.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}-java
|
||||
BuildArch: noarch
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}-java.
|
||||
|
||||
%package javanano
|
||||
Summary: Protocol Buffer JavaNano API
|
||||
BuildArch: noarch
|
||||
|
||||
%description javanano
|
||||
JavaNano is a special code generator and runtime
|
||||
library designed specially for resource-restricted
|
||||
systems, like Android.
|
||||
|
||||
%package parent
|
||||
Summary: Protocol Buffer Parent POM
|
||||
BuildArch: noarch
|
||||
|
||||
%description parent
|
||||
Protocol Buffer Parent POM.
|
||||
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}%{?rcver} -a 3 -a 4
|
||||
%autopatch -p1
|
||||
mv googlemock-release-1.7.0 gmock
|
||||
mv googletest-release-1.7.0 gmock/gtest
|
||||
find -name \*.cc -o -name \*.h | xargs chmod -x
|
||||
chmod 644 examples/*
|
||||
%if %{with java}
|
||||
%pom_remove_parent java/pom.xml
|
||||
%pom_remove_dep org.easymock:easymockclassextension java/pom.xml java/*/pom.xml
|
||||
# These use easymockclassextension
|
||||
rm java/core/src/test/java/com/google/protobuf/ServiceTest.java
|
||||
#rm -r java/core/src/test
|
||||
|
||||
# used by https://github.com/googlei18n/libphonenumber
|
||||
%pom_xpath_inject "pom:project/pom:modules" "<module>../javanano</module>" java
|
||||
%pom_remove_parent javanano
|
||||
%pom_remove_dep org.easymock:easymockclassextension javanano
|
||||
|
||||
# Make OSGi dependency on sun.misc package optional
|
||||
%pom_xpath_inject "pom:configuration/pom:instructions" "<Import-Package>sun.misc;resolution:=optional,*</Import-Package>" java/core
|
||||
|
||||
# Backward compatibility symlink
|
||||
%mvn_file :protobuf-java:jar: %{name}/%{name}-java %{name}
|
||||
|
||||
# This test is incredibly slow on arm
|
||||
# https://github.com/google/protobuf/issues/2389
|
||||
%ifarch %{arm}
|
||||
mv java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java \
|
||||
java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java.slow
|
||||
%endif
|
||||
%endif
|
||||
|
||||
rm -f src/solaris/libstdc++.la
|
||||
|
||||
%build
|
||||
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
||||
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
||||
export PTHREAD_LIBS="-lpthread"
|
||||
./autogen.sh
|
||||
%configure
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if %{with python2}
|
||||
pushd python
|
||||
%py2_build
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
pushd python
|
||||
%py3_build
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %{with java}
|
||||
%mvn_build -s -- -f java/pom.xml
|
||||
%endif
|
||||
|
||||
emacs -batch -f batch-byte-compile editors/protobuf-mode.el
|
||||
|
||||
%check
|
||||
# TODO: failures; get them fixed and remove || :
|
||||
# https://github.com/google/protobuf/issues/631
|
||||
make %{?_smp_mflags} check || :
|
||||
|
||||
%install
|
||||
make %{?_smp_mflags} install DESTDIR=%{buildroot} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p"
|
||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} \;
|
||||
|
||||
%if %{with python2}
|
||||
pushd python
|
||||
#python ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
|
||||
%py2_install
|
||||
find %{buildroot}%{python2_sitelib} -name \*.py |
|
||||
xargs sed -i -e '1{\@^#!@d}'
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
pushd python
|
||||
#python ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
|
||||
%py3_install
|
||||
find %{buildroot}%{python3_sitelib} -name \*.py |
|
||||
xargs sed -i -e '1{\@^#!@d}'
|
||||
popd
|
||||
%endif
|
||||
|
||||
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
||||
install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim
|
||||
|
||||
%if %{with java}
|
||||
%mvn_install
|
||||
%endif
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
|
||||
install -p -m 0644 editors/protobuf-mode.el $RPM_BUILD_ROOT%{emacs_lispdir}
|
||||
install -p -m 0644 editors/protobuf-mode.elc $RPM_BUILD_ROOT%{emacs_lispdir}
|
||||
install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%ldconfig_scriptlets lite
|
||||
%ldconfig_scriptlets compiler
|
||||
|
||||
%files
|
||||
%{_libdir}/libprotobuf.so.15*
|
||||
%doc CHANGES.txt CONTRIBUTORS.txt README.md
|
||||
%license LICENSE
|
||||
|
||||
%files compiler
|
||||
%{_bindir}/protoc
|
||||
%{_libdir}/libprotoc.so.15*
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/google
|
||||
%{_includedir}/google/protobuf/
|
||||
%{_libdir}/libprotobuf.so
|
||||
%{_libdir}/libprotoc.so
|
||||
%{_libdir}/pkgconfig/protobuf.pc
|
||||
%doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.md
|
||||
|
||||
%files static
|
||||
%{_libdir}/libprotobuf.a
|
||||
%{_libdir}/libprotoc.a
|
||||
|
||||
%files lite
|
||||
%{_libdir}/libprotobuf-lite.so.15*
|
||||
|
||||
%files lite-devel
|
||||
%{_libdir}/libprotobuf-lite.so
|
||||
%{_libdir}/pkgconfig/protobuf-lite.pc
|
||||
|
||||
%files lite-static
|
||||
%{_libdir}/libprotobuf-lite.a
|
||||
|
||||
%if %{with python2}
|
||||
%files -n python2-protobuf
|
||||
%dir %{python2_sitelib}/google
|
||||
%{python2_sitelib}/google/protobuf/
|
||||
%{python2_sitelib}/protobuf-%{version}%{?rcver}-py2.?.egg-info/
|
||||
%{python2_sitelib}/protobuf-%{version}%{?rcver}-py2.?-nspkg.pth
|
||||
%doc python/README.md
|
||||
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
||||
%endif
|
||||
|
||||
%if %{with python3}
|
||||
%files -n python%{python3_pkgversion}-protobuf
|
||||
%dir %{python3_sitelib}/google
|
||||
%{python3_sitelib}/google/protobuf/
|
||||
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.?.egg-info/
|
||||
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.?-nspkg.pth
|
||||
%doc python/README.md
|
||||
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
||||
%endif
|
||||
|
||||
%files vim
|
||||
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
||||
%{_datadir}/vim/vimfiles/syntax/proto.vim
|
||||
|
||||
%files emacs
|
||||
%{emacs_startdir}/protobuf-init.el
|
||||
%{emacs_lispdir}/protobuf-mode.elc
|
||||
|
||||
%files emacs-el
|
||||
%{emacs_lispdir}/protobuf-mode.el
|
||||
|
||||
%if %{with java}
|
||||
%files java -f .mfiles-protobuf-java
|
||||
%doc examples/AddPerson.java examples/ListPeople.java
|
||||
%doc java/README.md
|
||||
%license LICENSE
|
||||
|
||||
%files java-util -f .mfiles-protobuf-java-util
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%files javanano -f .mfiles-protobuf-javanano
|
||||
%doc javanano/README.md
|
||||
%license LICENSE
|
||||
|
||||
%files parent -f .mfiles-protobuf-parent
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Mar 21 2022 Adrian Reber <areber@redhat.com> - 3.5.0-15
|
||||
- Applied patch for for CVE-2021-22570 (#2050494)
|
||||
|
||||
* Thu May 28 2020 Adrian Reber <areber@redhat.com> - 3.5.0-13
|
||||
- Rebuild
|
||||
|
||||
* Tue May 26 2020 Adrian Reber <areber@redhat.com> - 3.5.0-10
|
||||
- Rebuild
|
||||
|
||||
* Thu Apr 09 2020 Adrian Reber <areber@redhat.com> - 3.5.0-8
|
||||
- Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Adrian Reber <areber@redhat.com> - 3.5.0-7
|
||||
- Build without python2 subpackage
|
||||
|
||||
* Wed Jun 20 2018 Adrian Reber <areber@redhat.com> - 3.5.0-6
|
||||
- Only BR python-google-apputils on Fedora
|
||||
|
||||
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.0-5
|
||||
- Build without -java supbackage
|
||||
|
||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-4
|
||||
- Escape macros in %%changelog
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-2
|
||||
- Switch to %%ldconfig_scriptlets
|
||||
|
||||
* Thu Nov 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-1
|
||||
- Update to 3.5.0
|
||||
|
||||
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.1-1
|
||||
- Update to 3.4.1
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Jun 27 2017 Mat Booth <mat.booth@redhat.com> - 3.3.1-2
|
||||
- Make OSGi dependency on sun.misc package optional. This package is not
|
||||
available in all execution environments and will not be available in Java 9.
|
||||
|
||||
* Mon Jun 12 2017 Orion Poplawski <orion@cora.nwra.com> - 3.3.1-1
|
||||
- Update to 3.3.1
|
||||
|
||||
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Jan 27 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-1
|
||||
- Update to 3.2.0 final
|
||||
|
||||
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-0.1.rc2
|
||||
- Update to 3.2.0rc2
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-5
|
||||
- Disable slow test on arm
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-4
|
||||
- Ship python 3 module
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-3
|
||||
- Fix jar file compat symlink
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
||||
- Add needed python requirement
|
||||
|
||||
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
||||
- Make various sub-packages noarch
|
||||
|
||||
* Fri Nov 04 2016 gil cattaneo <puntogil@libero.it> 3.1.0-2
|
||||
- enable javanano
|
||||
- minor changes to adapt to current guidelines
|
||||
|
||||
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-1
|
||||
- Update to 3.1.0
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-5
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jan 20 2016 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-3
|
||||
- Tests no longer segfaulting on arm
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Apr 6 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-1
|
||||
- Update to 2.6.1
|
||||
- New URL
|
||||
- Cleanup spec
|
||||
- Add patch to fix emacs compilation with emacs 24.4
|
||||
- Drop java-fixes patch, use pom macros instead
|
||||
- Add BR on python-google-apputils and mvn(org.easymock:easymock)
|
||||
- Run make check
|
||||
- Make -static require -devel (bug #1067475)
|
||||
|
||||
* Thu Mar 26 2015 Kalev Lember <kalevlember@gmail.com> - 2.6.0-4
|
||||
- Rebuilt for GCC 5 ABI change
|
||||
|
||||
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.6.0-3
|
||||
- Rebuilt for Fedora 23 Change
|
||||
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||
|
||||
* Wed Dec 17 2014 Peter Lemenkov <lemenkov@gmail.com> - 2.6.0-2
|
||||
- Added missing Requires zlib-devel to protobuf-devel (see rhbz #1173343). See
|
||||
also rhbz #732087.
|
||||
|
||||
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.6.0-1
|
||||
- Bump to upstream release 2.6.0 (rh# 1154474).
|
||||
- Rebase 'java fixes' patch on 2.6.0 pom.xml.
|
||||
- Drop patch #3 (fall back to generic GCC atomics if no specialized atomics
|
||||
exist, e.g. AArch64 GCC); this has been upstreamed.
|
||||
|
||||
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-11
|
||||
- protobuf-emacs requires emacs(bin), not emacs (rh# 1154456)
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Mon Jun 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.0-9
|
||||
- Update to current Java packaging guidelines
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-7
|
||||
- Use Requires: java-headless rebuild (#1067528)
|
||||
|
||||
* Thu Dec 12 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-6
|
||||
- BR python-setuptools-devel -> python-setuptools
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Thu May 16 2013 Dan Horák <dan[at]danny.cz> - 2.5.0-4
|
||||
- export the new generic atomics header (rh #926374)
|
||||
|
||||
* Mon May 6 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-3
|
||||
- Add support for generic gcc atomic operations (rh #926374)
|
||||
|
||||
* Sat Apr 27 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-2
|
||||
- Remove changelog history from before 2010
|
||||
- This spec already runs autoreconf -fi during %%build, but bump build for
|
||||
rhbz #926374
|
||||
|
||||
* Sat Mar 9 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-1
|
||||
- Bump to latest upstream (#883822)
|
||||
- Rebase gtest, maven patches on 2.5.0
|
||||
|
||||
* Tue Feb 26 2013 Conrad Meyer <cemeyer@uw.edu> - 2.4.1-12
|
||||
- Nuke BR on maven-doxia, maven-doxia-sitetools (#915620)
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.1-10
|
||||
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
||||
- Replace maven BuildRequires with maven-local
|
||||
|
||||
* Sun Jan 20 2013 Conrad Meyer <konrad@tylerc.org> - 2.4.1-9
|
||||
- Fix packaging bug, -emacs-el subpackage should depend on -emacs subpackage of
|
||||
the same version (%%version), not the emacs version number...
|
||||
|
||||
* Thu Jan 17 2013 Tim Niemueller <tim@niemueller.de> - 2.4.1-8
|
||||
- Added sub-package for Emacs editing mode
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Mar 19 2012 Dan Horák <dan[at]danny.cz> - 2.4.1-6
|
||||
- disable test-suite until g++ 4.7 issues are resolved
|
||||
|
||||
* Mon Mar 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.1-5
|
||||
- Update to latest java packaging guidelines
|
||||
|
||||
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
||||
- Rebuilt for c++ ABI breakage
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Sep 27 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.4.1-2
|
||||
- Adding zlib-devel as BR (rhbz: #732087)
|
||||
|
||||
* Thu Jun 09 2011 BJ Dierkes <wdierkes@rackspace.com> - 2.4.1-1
|
||||
- Latest sources from upstream.
|
||||
- Rewrote Patch2 as protobuf-2.4.1-java-fixes.patch
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.0-6
|
||||
- Fix java subpackage bugs #669345 and #669346
|
||||
- Use new maven plugin names
|
||||
- Use mavenpomdir macro for pom installation
|
||||
|
||||
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-5
|
||||
- generalize hardcoded reference to 2.6 in python subpackage %%files manifest
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Thu Jul 15 2010 James Laska <jlaska@redhat.com> - 2.3.0-3
|
||||
- Correct use of %%bcond macros
|
||||
|
||||
* Wed Jul 14 2010 James Laska <jlaska@redhat.com> - 2.3.0-2
|
||||
- Enable python and java sub-packages
|
||||
|
||||
* Tue May 4 2010 Conrad Meyer <konrad@tylerc.org> - 2.3.0-1
|
||||
- bump to 2.3.0
|
||||
76
disable-tests-on-32-bit-systems.patch
Normal file
76
disable-tests-on-32-bit-systems.patch
Normal file
@ -0,0 +1,76 @@
|
||||
--- src/google/protobuf/any_test.cc 2021-10-22 08:52:03.604280348 +0200
|
||||
+++ src/google/protobuf/any_test.cc.orig 2021-10-22 08:51:46.935156306 +0200
|
||||
@@ -60,13 +60,6 @@
|
||||
EXPECT_EQ(12345, submessage.int32_value());
|
||||
}
|
||||
|
||||
-TEST(AnyTest, TestPackFromSerializationExceedsSizeLimit) {
|
||||
- protobuf_unittest::TestAny submessage;
|
||||
- submessage.mutable_text()->resize(INT_MAX, 'a');
|
||||
- protobuf_unittest::TestAny message;
|
||||
- EXPECT_FALSE(message.mutable_any_value()->PackFrom(submessage));
|
||||
-}
|
||||
-
|
||||
TEST(AnyTest, TestUnpackWithTypeMismatch) {
|
||||
protobuf_unittest::TestAny payload;
|
||||
payload.set_int32_value(13);
|
||||
--- src/google/protobuf/arena_unittest.cc 2021-10-22 08:52:37.804534886 +0200
|
||||
+++ src/google/protobuf/arena_unittest.cc.orig 2021-10-22 08:51:55.150217437 +0200
|
||||
@@ -1341,34 +1341,6 @@
|
||||
// Align n to next multiple of 8
|
||||
uint64_t Align8(uint64_t n) { return (n + 7) & -8; }
|
||||
|
||||
-TEST(ArenaTest, SpaceAllocated_and_Used) {
|
||||
- Arena arena_1;
|
||||
- EXPECT_EQ(0, arena_1.SpaceAllocated());
|
||||
- EXPECT_EQ(0, arena_1.SpaceUsed());
|
||||
- EXPECT_EQ(0, arena_1.Reset());
|
||||
- Arena::CreateArray<char>(&arena_1, 320);
|
||||
- // Arena will allocate slightly more than 320 for the block headers.
|
||||
- EXPECT_LE(320, arena_1.SpaceAllocated());
|
||||
- EXPECT_EQ(Align8(320), arena_1.SpaceUsed());
|
||||
- EXPECT_LE(320, arena_1.Reset());
|
||||
-
|
||||
- // Test with initial block.
|
||||
- std::vector<char> arena_block(1024);
|
||||
- ArenaOptions options;
|
||||
- options.start_block_size = 256;
|
||||
- options.max_block_size = 8192;
|
||||
- options.initial_block = &arena_block[0];
|
||||
- options.initial_block_size = arena_block.size();
|
||||
- Arena arena_2(options);
|
||||
- EXPECT_EQ(1024, arena_2.SpaceAllocated());
|
||||
- EXPECT_EQ(0, arena_2.SpaceUsed());
|
||||
- EXPECT_EQ(1024, arena_2.Reset());
|
||||
- Arena::CreateArray<char>(&arena_2, 55);
|
||||
- EXPECT_EQ(1024, arena_2.SpaceAllocated());
|
||||
- EXPECT_EQ(Align8(55), arena_2.SpaceUsed());
|
||||
- EXPECT_EQ(1024, arena_2.Reset());
|
||||
-}
|
||||
-
|
||||
TEST(ArenaTest, BlockSizeDoubling) {
|
||||
Arena arena;
|
||||
EXPECT_EQ(0, arena.SpaceUsed());
|
||||
@@ -1368,22 +1396,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
-TEST(ArenaTest, BlockSizeSmallerThanAllocation) {
|
||||
- for (size_t i = 0; i <= 8; ++i) {
|
||||
- ArenaOptions opt;
|
||||
- opt.start_block_size = opt.max_block_size = i;
|
||||
- Arena arena(opt);
|
||||
-
|
||||
- *Arena::Create<int64_t>(&arena) = 42;
|
||||
- EXPECT_GE(arena.SpaceAllocated(), 8);
|
||||
- EXPECT_EQ(8, arena.SpaceUsed());
|
||||
-
|
||||
- *Arena::Create<int64_t>(&arena) = 42;
|
||||
- EXPECT_GE(arena.SpaceAllocated(), 16);
|
||||
- EXPECT_EQ(16, arena.SpaceUsed());
|
||||
- }
|
||||
-}
|
||||
-
|
||||
TEST(ArenaTest, GetArenaShouldReturnTheArenaForArenaAllocatedMessages) {
|
||||
Arena arena;
|
||||
ArenaMessage* message = Arena::CreateMessage<ArenaMessage>(&arena);
|
||||
25
protobuf-3.14-disable-IoTest.LargeOutput.patch
Normal file
25
protobuf-3.14-disable-IoTest.LargeOutput.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- a/src/google/protobuf/io/zero_copy_stream_unittest.cc.orig 2021-01-12 12:25:18.471517830 +0100
|
||||
+++ b/src/google/protobuf/io/zero_copy_stream_unittest.cc 2021-01-12 12:25:42.022696126 +0100
|
||||
@@ -712,22 +712,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
-// Verifies that outputs up to kint32max can be created.
|
||||
-TEST_F(IoTest, LargeOutput) {
|
||||
- std::string str;
|
||||
- StringOutputStream output(&str);
|
||||
- void* unused_data;
|
||||
- int size;
|
||||
- // Repeatedly calling Next should eventually grow the buffer to kint32max.
|
||||
- do {
|
||||
- EXPECT_TRUE(output.Next(&unused_data, &size));
|
||||
- } while (str.size() < std::numeric_limits<int>::max());
|
||||
- // Further increases should be possible.
|
||||
- output.Next(&unused_data, &size);
|
||||
- EXPECT_GT(size, 0);
|
||||
-}
|
||||
-
|
||||
-
|
||||
// To test files, we create a temporary file, write, read, truncate, repeat.
|
||||
TEST_F(IoTest, FileIo) {
|
||||
std::string filename = TestTempDir() + "/zero_copy_stream_test_file";
|
||||
10
protobuf-3.19.4-jre17-add-opens.patch
Normal file
10
protobuf-3.19.4-jre17-add-opens.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- protobuf-3.19.4/java/pom.xml.jre17 2022-02-13 11:45:39.367028268 +0900
|
||||
+++ protobuf-3.19.4/java/pom.xml 2022-02-13 12:43:18.212542147 +0900
|
||||
@@ -37,6 +37,7 @@
|
||||
<test.proto.dir>src/test/proto</test.proto.dir>
|
||||
<generated.sources.dir>${project.build.directory}/generated-sources</generated.sources.dir>
|
||||
<generated.testsources.dir>${project.build.directory}/generated-test-sources</generated.testsources.dir>
|
||||
+ <argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
135
protobuf-3.19.4-python3.11.patch
Normal file
135
protobuf-3.19.4-python3.11.patch
Normal file
@ -0,0 +1,135 @@
|
||||
From 5576f98f5d6aa0cc1e845a5fe5d00c034ef51f30 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Shadchin <alexandr.shadchin@gmail.com>
|
||||
Date: Sun, 14 Aug 2022 21:13:49 +0300
|
||||
Subject: [PATCH] Fix build with Python 3.11
|
||||
|
||||
The PyFrameObject structure members have been removed from the public C API.
|
||||
---
|
||||
python/google/protobuf/pyext/descriptor.cc | 75 ++++++++++++++++++----
|
||||
1 file changed, 62 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/python/google/protobuf/pyext/descriptor.cc b/python/google/protobuf/pyext/descriptor.cc
|
||||
index a2993d908..44d811923 100644
|
||||
--- a/python/google/protobuf/pyext/descriptor.cc
|
||||
+++ b/python/google/protobuf/pyext/descriptor.cc
|
||||
@@ -57,6 +57,37 @@
|
||||
: 0) \
|
||||
: PyBytes_AsStringAndSize(ob, (charpp), (sizep)))
|
||||
|
||||
+#if PY_VERSION_HEX < 0x030900B1 && !defined(PYPY_VERSION)
|
||||
+static PyCodeObject* PyFrame_GetCode(PyFrameObject *frame)
|
||||
+{
|
||||
+ Py_INCREF(frame->f_code);
|
||||
+ return frame->f_code;
|
||||
+}
|
||||
+
|
||||
+static PyFrameObject* PyFrame_GetBack(PyFrameObject *frame)
|
||||
+{
|
||||
+ Py_XINCREF(frame->f_back);
|
||||
+ return frame->f_back;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
+#if PY_VERSION_HEX < 0x030B00A7 && !defined(PYPY_VERSION)
|
||||
+static PyObject* PyFrame_GetLocals(PyFrameObject *frame)
|
||||
+{
|
||||
+ if (PyFrame_FastToLocalsWithError(frame) < 0) {
|
||||
+ return NULL;
|
||||
+ }
|
||||
+ Py_INCREF(frame->f_locals);
|
||||
+ return frame->f_locals;
|
||||
+}
|
||||
+
|
||||
+static PyObject* PyFrame_GetGlobals(PyFrameObject *frame)
|
||||
+{
|
||||
+ Py_INCREF(frame->f_globals);
|
||||
+ return frame->f_globals;
|
||||
+}
|
||||
+#endif
|
||||
+
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
namespace python {
|
||||
@@ -95,48 +126,66 @@ bool _CalledFromGeneratedFile(int stacklevel) {
|
||||
// This check is not critical and is somewhat difficult to implement correctly
|
||||
// in PyPy.
|
||||
PyFrameObject* frame = PyEval_GetFrame();
|
||||
+ PyCodeObject* frame_code = nullptr;
|
||||
+ PyObject* frame_globals = nullptr;
|
||||
+ PyObject* frame_locals = nullptr;
|
||||
+ bool result = false;
|
||||
+
|
||||
if (frame == NULL) {
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
+ Py_INCREF(frame);
|
||||
while (stacklevel-- > 0) {
|
||||
- frame = frame->f_back;
|
||||
+ PyFrameObject* next_frame = PyFrame_GetBack(frame);
|
||||
+ Py_DECREF(frame);
|
||||
+ frame = next_frame;
|
||||
if (frame == NULL) {
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
- if (frame->f_code->co_filename == NULL) {
|
||||
- return false;
|
||||
+ frame_code = PyFrame_GetCode(frame);
|
||||
+ if (frame_code->co_filename == NULL) {
|
||||
+ goto exit;
|
||||
}
|
||||
char* filename;
|
||||
Py_ssize_t filename_size;
|
||||
- if (PyString_AsStringAndSize(frame->f_code->co_filename,
|
||||
+ if (PyString_AsStringAndSize(frame_code->co_filename,
|
||||
&filename, &filename_size) < 0) {
|
||||
// filename is not a string.
|
||||
PyErr_Clear();
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
if ((filename_size < 3) ||
|
||||
(strcmp(&filename[filename_size - 3], ".py") != 0)) {
|
||||
// Cython's stack does not have .py file name and is not at global module
|
||||
// scope.
|
||||
- return true;
|
||||
+ result = true;
|
||||
+ goto exit;
|
||||
}
|
||||
if (filename_size < 7) {
|
||||
// filename is too short.
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
if (strcmp(&filename[filename_size - 7], "_pb2.py") != 0) {
|
||||
// Filename is not ending with _pb2.
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
|
||||
- if (frame->f_globals != frame->f_locals) {
|
||||
+ frame_globals = PyFrame_GetGlobals(frame);
|
||||
+ frame_locals = PyFrame_GetLocals(frame);
|
||||
+ if (frame_globals != frame_locals) {
|
||||
// Not at global module scope
|
||||
- return false;
|
||||
+ goto exit;
|
||||
}
|
||||
#endif
|
||||
- return true;
|
||||
+ result = true;
|
||||
+exit:
|
||||
+ Py_XDECREF(frame_globals);
|
||||
+ Py_XDECREF(frame_locals);
|
||||
+ Py_XDECREF(frame_code);
|
||||
+ Py_XDECREF(frame);
|
||||
+ return result;
|
||||
}
|
||||
|
||||
// If the calling code is not a _pb2.py file, raise AttributeError.
|
||||
--
|
||||
2.38.1
|
||||
|
||||
860
protobuf.spec
Normal file
860
protobuf.spec
Normal file
@ -0,0 +1,860 @@
|
||||
# Build -python subpackage
|
||||
%bcond_without python
|
||||
# Build -python subpackage with C++. This significantly improves performance
|
||||
# compared to the pure-Python implementation.
|
||||
%bcond_without python_cpp
|
||||
# Build -java subpackage
|
||||
%if %{defined rhel}
|
||||
%bcond_with java
|
||||
%else
|
||||
%bcond_without java
|
||||
%endif
|
||||
|
||||
#global rcver rc2
|
||||
|
||||
Summary: Protocol Buffers - Google's data interchange format
|
||||
Name: protobuf
|
||||
# NOTE: perl-Alien-ProtoBuf has an exact-version dependency on the version of
|
||||
# protobuf with which it was built; it therefore needs to be rebuilt even for
|
||||
# “patch” updates of protobuf.
|
||||
Version: 3.19.6
|
||||
%global so_version 30
|
||||
Release: 11%{?dist}
|
||||
|
||||
# The entire source is BSD-3-Clause, except the following files, which belong
|
||||
# to the build system; are unpackaged maintainer utility scripts; or are used
|
||||
# only for building tests that are not packaged—and so they do not affect the
|
||||
# licenses of the binary RPMs:
|
||||
#
|
||||
# FSFAP:
|
||||
# m4/ax_cxx_compile_stdcxx.m4
|
||||
# m4/ax_prog_cc_for_build.m4
|
||||
# m4/ax_prog_cxx_for_build.m4
|
||||
# Apache-2.0:
|
||||
# python/mox.py
|
||||
# python/stubout.py
|
||||
# third_party/googletest/
|
||||
# except the following, which are BSD-3-Clause:
|
||||
# third_party/googletest/googletest/test/gtest_pred_impl_unittest.cc
|
||||
# third_party/googletest/googletest/include/gtest/gtest-param-test.h
|
||||
# third_party/googletest/googletest/include/gtest/gtest-param-test.h.pump
|
||||
# third_party/googletest/googletest/include/gtest/internal/gtest-param-util-generated.h
|
||||
# third_party/googletest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump
|
||||
# third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h
|
||||
# third_party/googletest/googletest/include/gtest/internal/gtest-type-util.h.pump
|
||||
# MIT:
|
||||
# conformance/third_party/jsoncpp/json.h
|
||||
# conformance/third_party/jsoncpp/jsoncpp.cpp
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/protocolbuffers/protobuf
|
||||
Source0: %{url}/archive/v%{version}%{?rcver}/protobuf-%{version}%{?rcver}-all.tar.gz
|
||||
|
||||
Source1: ftdetect-proto.vim
|
||||
Source2: protobuf-init.el
|
||||
|
||||
# We bundle a copy of the exact version of gtest that is used by upstream in
|
||||
# the source RPM rather than using the system copy. This is to be discouraged,
|
||||
# but necessary in this case. It is not treated as a bundled library because
|
||||
# it is used only at build time, and contributes nothing to the installed
|
||||
# files. We take measures to verify this in %%check. See
|
||||
# https://github.com/protocolbuffers/protobuf/tree/v%%{version}/third_party to
|
||||
# check the correct commit hash.
|
||||
%global gtest_url https://github.com/google/googletest
|
||||
%global gtest_commit 5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081
|
||||
%global gtest_dir googletest-%{gtest_commit}
|
||||
# For tests (using exactly the same version as the release)
|
||||
Source3: %{gtest_url}/archive/%{gtest_commit}/%{gtest_dir}.tar.gz
|
||||
|
||||
# Man page hand-written for Fedora in groff_man(7) format based on “protoc
|
||||
# --help” output.
|
||||
Source4: protoc.1
|
||||
|
||||
# https://github.com/protocolbuffers/protobuf/issues/8082
|
||||
Patch1: protobuf-3.14-disable-IoTest.LargeOutput.patch
|
||||
# Disable tests that are failing on 32bit systems
|
||||
Patch2: disable-tests-on-32-bit-systems.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2051202
|
||||
# java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
|
||||
# throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @12d5624a
|
||||
# at com.google.protobuf.ServiceTest.testGetPrototype(ServiceTest.java:107)
|
||||
Patch3: protobuf-3.19.4-jre17-add-opens.patch
|
||||
# Backport upstream commit da973aff2adab60a9e516d3202c111dbdde1a50f:
|
||||
# Fix build with Python 3.11
|
||||
#
|
||||
# The PyFrameObject structure members have been removed from the public C API.
|
||||
Patch4: protobuf-3.19.4-python3.11.patch
|
||||
|
||||
# A bundled copy of jsoncpp is included in the conformance tests, but the
|
||||
# result is not packaged, so we do not treat it as a formal bundled
|
||||
# dependency—thus the virtual Provides below is commented out. The bundling is
|
||||
# removed in a later release:
|
||||
# Make jsoncpp a formal dependency
|
||||
# https://github.com/protocolbuffers/protobuf/pull/10739
|
||||
# The bundled version number is obtained from JSONCPP_VERSION_STRING in
|
||||
# conformance/third_party/jsoncpp/json.h.
|
||||
# Provides: bundled(jsoncpp) = 1.6.5
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
BuildRequires: emacs
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
%if %{with java}
|
||||
%ifnarch %{java_arches}
|
||||
Obsoletes: protobuf-java-util < 3.19.4-4
|
||||
Obsoletes: protobuf-javadoc < 3.19.4-4
|
||||
Obsoletes: protobuf-parent < 3.19.4-4
|
||||
Obsoletes: protobuf-bom < 3.19.4-4
|
||||
Obsoletes: protobuf-javalite < 3.19.4-4
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%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.
|
||||
|
||||
Protocol buffers are a flexible, efficient, automated mechanism for
|
||||
serializing structured data – think XML, but smaller, faster, and
|
||||
simpler. You define how you want your data to be structured once, then
|
||||
you can use special generated source code to easily write and read
|
||||
your structured data to and from a variety of data streams and using a
|
||||
variety of languages. You can even update your data structure without
|
||||
breaking deployed programs that are compiled against the "old" format.
|
||||
|
||||
%package compiler
|
||||
Summary: Protocol Buffers compiler
|
||||
Requires: protobuf = %{version}-%{release}
|
||||
|
||||
%description compiler
|
||||
This package contains Protocol Buffers compiler for all programming
|
||||
languages
|
||||
|
||||
%package devel
|
||||
Summary: Protocol Buffers C++ headers and libraries
|
||||
Requires: protobuf = %{version}-%{release}
|
||||
Requires: protobuf-compiler = %{version}-%{release}
|
||||
Requires: zlib-devel
|
||||
|
||||
Obsoletes: protobuf-static < 3.19.6-4
|
||||
|
||||
%description devel
|
||||
This package contains Protocol Buffers compiler for all languages and
|
||||
C++ headers and libraries
|
||||
|
||||
%package lite
|
||||
Summary: Protocol Buffers LITE_RUNTIME libraries
|
||||
|
||||
%description lite
|
||||
Protocol Buffers built with optimize_for = LITE_RUNTIME.
|
||||
|
||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||
lacks descriptors, reflection, and some other features.
|
||||
|
||||
%package lite-devel
|
||||
Summary: Protocol Buffers LITE_RUNTIME development libraries
|
||||
Requires: protobuf-devel = %{version}-%{release}
|
||||
Requires: protobuf-lite = %{version}-%{release}
|
||||
|
||||
Obsoletes: protobuf-lite-static < 3.19.6-4
|
||||
|
||||
%description lite-devel
|
||||
This package contains development libraries built with
|
||||
optimize_for = LITE_RUNTIME.
|
||||
|
||||
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
||||
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
||||
lacks descriptors, reflection, and some other features.
|
||||
|
||||
%if %{with python}
|
||||
%package -n python3-protobuf
|
||||
Summary: Python bindings for Google Protocol Buffers
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(setuptools)
|
||||
BuildRequires: python3dist(wheel)
|
||||
%if %{with python_cpp}
|
||||
Requires: protobuf%{?_isa} = %{version}-%{release}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
Conflicts: protobuf-compiler > %{version}
|
||||
Conflicts: protobuf-compiler < %{version}
|
||||
Provides: protobuf-python3 = %{version}-%{release}
|
||||
|
||||
%description -n python3-protobuf
|
||||
This package contains Python libraries for Google Protocol Buffers
|
||||
%endif
|
||||
|
||||
%package vim
|
||||
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
|
||||
BuildArch: noarch
|
||||
# We don’t really need vim or vim-enhanced to be already installed in order to
|
||||
# install a plugin for it. We do need to depend on vim-filesystem, which
|
||||
# provides the necessary directory structure.
|
||||
Requires: vim-filesystem
|
||||
|
||||
%description vim
|
||||
This package contains syntax highlighting for Google Protocol Buffers
|
||||
descriptions in Vim editor
|
||||
|
||||
|
||||
%if %{with java}
|
||||
%ifarch %{java_arches}
|
||||
|
||||
%package java
|
||||
Summary: Java Protocol Buffers runtime library
|
||||
BuildArch: noarch
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.google.code.gson:gson)
|
||||
BuildRequires: mvn(com.google.guava:guava)
|
||||
BuildRequires: mvn(com.google.guava:guava-testlib)
|
||||
BuildRequires: mvn(com.google.truth:truth)
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(org.easymock:easymock)
|
||||
Conflicts: protobuf-compiler > %{version}
|
||||
Conflicts: protobuf-compiler < %{version}
|
||||
Obsoletes: protobuf-javanano < 3.6.0
|
||||
|
||||
%description java
|
||||
This package contains Java Protocol Buffers runtime library.
|
||||
|
||||
%package javalite
|
||||
Summary: Java Protocol Buffers lite runtime library
|
||||
BuildArch: noarch
|
||||
|
||||
%description javalite
|
||||
This package contains Java Protocol Buffers lite runtime library.
|
||||
|
||||
%package java-util
|
||||
Summary: Utilities for Protocol Buffers
|
||||
BuildArch: noarch
|
||||
|
||||
%description java-util
|
||||
Utilities to work with protos. It contains JSON support
|
||||
as well as utilities to work with proto3 well-known types.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for protobuf-java
|
||||
BuildArch: noarch
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for protobuf-java.
|
||||
|
||||
%package parent
|
||||
Summary: Protocol Buffer Parent POM
|
||||
BuildArch: noarch
|
||||
|
||||
%description parent
|
||||
Protocol Buffer Parent POM.
|
||||
|
||||
%package bom
|
||||
Summary: Protocol Buffer BOM POM
|
||||
BuildArch: noarch
|
||||
|
||||
%description bom
|
||||
Protocol Buffer BOM POM.
|
||||
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%package emacs
|
||||
Summary: Emacs mode for Google Protocol Buffers descriptions
|
||||
BuildArch: noarch
|
||||
Requires: emacs-filesystem >= %{_emacs_version}
|
||||
Obsoletes: protobuf-emacs-el < 3.6.1-4
|
||||
|
||||
%description emacs
|
||||
This package contains syntax highlighting for Google Protocol Buffers
|
||||
descriptions in the Emacs editor.
|
||||
|
||||
%prep
|
||||
%setup -q -n protobuf-%{version}%{?rcver} -a 3
|
||||
%ifarch %{ix86}
|
||||
# IoTest.LargeOutput fails on 32bit arches
|
||||
# https://github.com/protocolbuffers/protobuf/issues/8082
|
||||
%patch 1 -p1
|
||||
# Need to disable more tests that fail on 32bit arches only
|
||||
%patch 2 -p0
|
||||
%endif
|
||||
%patch 3 -p1 -b .jre17
|
||||
%patch 4 -p1 -b .python311
|
||||
|
||||
# Copy in the needed gtest/gmock implementations.
|
||||
%setup -q -T -D -b 3 -n protobuf-%{version}%{?rcver}
|
||||
rm -rvf 'third_party/googletest'
|
||||
mv '../%{gtest_dir}' 'third_party/googletest'
|
||||
|
||||
find -name \*.cc -o -name \*.h | xargs chmod -x
|
||||
chmod 644 examples/*
|
||||
%if %{with java}
|
||||
%ifarch %{java_arches}
|
||||
%pom_remove_dep com.google.errorprone:error_prone_annotations java/util/pom.xml
|
||||
%pom_remove_dep com.google.j2objc:j2objc-annotations java/util/pom.xml
|
||||
|
||||
# Remove annotation libraries we don't have
|
||||
annotations=$(
|
||||
find -name '*.java' |
|
||||
xargs grep -h -e '^import com\.google\.errorprone\.annotation' \
|
||||
-e '^import com\.google\.j2objc\.annotations' |
|
||||
sort -u | sed 's/.*\.\([^.]*\);/\1/' | paste -sd\|
|
||||
)
|
||||
find -name '*.java' | xargs sed -ri \
|
||||
"s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//g'
|
||||
|
||||
# Make OSGi dependency on sun.misc package optional
|
||||
%pom_xpath_inject "pom:configuration/pom:instructions" "<Import-Package>sun.misc;resolution:=optional,*</Import-Package>" java/core
|
||||
|
||||
# Backward compatibility symlink
|
||||
%mvn_file :protobuf-java:jar: protobuf/protobuf-java protobuf
|
||||
%endif
|
||||
%endif
|
||||
|
||||
rm -f src/solaris/libstdc++.la
|
||||
|
||||
%build
|
||||
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
||||
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
||||
export PTHREAD_LIBS="-lpthread"
|
||||
./autogen.sh
|
||||
%configure --disable-static
|
||||
|
||||
# -Wno-error=type-limits:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1838470
|
||||
# https://github.com/protocolbuffers/protobuf/issues/7514
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95148
|
||||
# (also set in %%check)
|
||||
%make_build CXXFLAGS="%{build_cxxflags} -Wno-error=type-limits"
|
||||
|
||||
%if %{with python}
|
||||
pushd python
|
||||
%py3_build %{?with_python_cpp:-- --cpp_implementation}
|
||||
popd
|
||||
%endif
|
||||
|
||||
%if %{with java}
|
||||
%ifarch %{java_arches}
|
||||
%ifarch %{ix86} s390x
|
||||
export MAVEN_OPTS=-Xmx1024m
|
||||
%endif
|
||||
%pom_disable_module kotlin java/pom.xml
|
||||
%pom_disable_module kotlin-lite java/pom.xml
|
||||
%mvn_build -s -- -f java/pom.xml
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%{_emacs_bytecompile} editors/protobuf-mode.el
|
||||
|
||||
|
||||
%check
|
||||
%make_build check CXXFLAGS="%{build_cxxflags} -Wno-error=type-limits"
|
||||
|
||||
|
||||
%install
|
||||
%make_install %{?_smp_mflags} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p"
|
||||
find %{buildroot} -type f -name "*.la" -exec rm -f {} +
|
||||
|
||||
# protoc.1 man page
|
||||
install -p -m 0644 -D -t '%{buildroot}%{_mandir}/man1' '%{SOURCE4}'
|
||||
|
||||
%if %{with python}
|
||||
pushd python
|
||||
%py3_install %{?with_python_cpp:-- --cpp_implementation}
|
||||
%if %{without python_cpp}
|
||||
find %{buildroot}%{python3_sitelib} -name \*.py -exec sed -i -e '1{\@^#!@d}' {} +
|
||||
%endif
|
||||
popd
|
||||
%endif
|
||||
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
||||
install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim
|
||||
|
||||
%if %{with java}
|
||||
%ifarch %{java_arches}
|
||||
%mvn_install
|
||||
%endif
|
||||
%endif
|
||||
|
||||
mkdir -p %{buildroot}%{_emacs_sitelispdir}/protobuf
|
||||
install -p -m 0644 editors/protobuf-mode.el %{buildroot}%{_emacs_sitelispdir}/protobuf
|
||||
install -p -m 0644 editors/protobuf-mode.elc %{buildroot}%{_emacs_sitelispdir}/protobuf
|
||||
mkdir -p %{buildroot}%{_emacs_sitestartdir}
|
||||
install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
|
||||
|
||||
%files
|
||||
%doc CHANGES.txt CONTRIBUTORS.txt README.md
|
||||
%license LICENSE
|
||||
%{_libdir}/libprotobuf.so.%{so_version}{,.*}
|
||||
|
||||
%files compiler
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_bindir}/protoc
|
||||
%{_mandir}/man1/protoc.1*
|
||||
%{_libdir}/libprotoc.so.%{so_version}{,.*}
|
||||
|
||||
%files devel
|
||||
%dir %{_includedir}/google
|
||||
%{_includedir}/google/protobuf/
|
||||
%{_libdir}/libprotobuf.so
|
||||
%{_libdir}/libprotoc.so
|
||||
%{_libdir}/pkgconfig/protobuf.pc
|
||||
%doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.md
|
||||
|
||||
%files emacs
|
||||
%license LICENSE
|
||||
%{_emacs_sitelispdir}/protobuf/
|
||||
%{_emacs_sitestartdir}/protobuf-init.el
|
||||
|
||||
%files lite
|
||||
%license LICENSE
|
||||
%{_libdir}/libprotobuf-lite.so.%{so_version}{,.*}
|
||||
|
||||
%files lite-devel
|
||||
%{_libdir}/libprotobuf-lite.so
|
||||
%{_libdir}/pkgconfig/protobuf-lite.pc
|
||||
|
||||
%if %{with python}
|
||||
%files -n python3-protobuf
|
||||
%if %{with python_cpp}
|
||||
%dir %{python3_sitearch}/google
|
||||
%{python3_sitearch}/google/protobuf/
|
||||
%{python3_sitearch}/protobuf-%{version}%{?rcver}-py3.*.egg-info/
|
||||
%{python3_sitearch}/protobuf-%{version}%{?rcver}-py3.*-nspkg.pth
|
||||
%else
|
||||
%license LICENSE
|
||||
%dir %{python3_sitelib}/google
|
||||
%{python3_sitelib}/google/protobuf/
|
||||
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.*.egg-info/
|
||||
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.*-nspkg.pth
|
||||
%endif
|
||||
%doc python/README.md
|
||||
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
||||
%endif
|
||||
|
||||
%files vim
|
||||
%license LICENSE
|
||||
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
||||
%{_datadir}/vim/vimfiles/syntax/proto.vim
|
||||
|
||||
%if %{with java}
|
||||
%ifarch %{java_arches}
|
||||
|
||||
%files java -f .mfiles-protobuf-java
|
||||
%doc examples/AddPerson.java examples/ListPeople.java
|
||||
%doc java/README.md
|
||||
%license LICENSE
|
||||
|
||||
%files java-util -f .mfiles-protobuf-java-util
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%files parent -f .mfiles-protobuf-parent
|
||||
%license LICENSE
|
||||
|
||||
%files bom -f .mfiles-protobuf-bom
|
||||
%license LICENSE
|
||||
|
||||
%files javalite -f .mfiles-protobuf-javalite
|
||||
%license LICENSE
|
||||
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.19.6-11
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Tue Aug 06 2024 Adrian Reber <areber@redhat.com> - 3.19.6-10
|
||||
- copy gating.yaml from c9s
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.19.6-9
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.6-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.6-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.6-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.19.6-5
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Wed Apr 26 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-4
|
||||
- Stop packaging static libraries
|
||||
- Stop using deprecated %%patchN syntax
|
||||
|
||||
* Tue Apr 25 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-3
|
||||
- Remove unnecessary explicit pkgconfig dependencies
|
||||
- Remove an obsolete workaround for failing Java tests
|
||||
- Remove conditionals for retired 32-bit ARM architecture
|
||||
- Remove a slow-test workaround on s390x
|
||||
- Reduce macro indirection in the spec file
|
||||
|
||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Dec 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.6-1
|
||||
- Update to 3.19.6; fix CVE-2022-3171
|
||||
|
||||
* Wed Dec 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.5-1
|
||||
- Update to 3.19.5; fix CVE-2022-1941
|
||||
|
||||
* Sun Dec 04 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.4-7
|
||||
- Update License to SPDX
|
||||
- Improved handling of gtest sources
|
||||
- Update/correct gtest commit hash to match upstream
|
||||
- Simplify the Source0 URL with a macro
|
||||
- Drop manual dependency on python3-six, no longer needed
|
||||
- Drop obsolete python_provide macro
|
||||
- Drop python3_pkgversion macro
|
||||
- Update summary and description to refer to “Python” instead of “Python 3”
|
||||
- Re-enable compiled Python extension on Python 3.11
|
||||
- Ensure all subpackages always have LICENSE, or depend on something that does
|
||||
- Remove obsolete ldconfig_scriptlets macros
|
||||
- The -vim subpackage now depends on vim-filesystem, no longer on vim-enhanced
|
||||
- Add a man page for protoc
|
||||
- Use a macro to avoid repeating the .so version, and improve .so globs
|
||||
|
||||
* Sun Aug 14 2022 Orion Poplawski <orion@nwra.com> - 3.19.4-6
|
||||
- Build python support with C++ (bz#2107921)
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.4-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jul 06 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 3.19.4-4
|
||||
- Exclude java subpackages on non-java arches (fix RHBZ#2104092)
|
||||
- Obsolete java subpackages on non-java arches
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.19.4-3
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Sun Feb 13 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.19.4-2
|
||||
- Add some --add-opens option for java17
|
||||
- Restrict heap usage for mvn also on %%ix86
|
||||
|
||||
* Mon Feb 07 2022 Orion Poplawski <orion@nwra.com> - 3.19.4-1
|
||||
- Update to 3.19.4
|
||||
|
||||
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.19.0-4
|
||||
- Rebuilt for java-17-openjdk as system jdk
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Nov 10 2021 Orion Poplawski <orion@nwra.com> - 3.19.0-2
|
||||
- Re-enable java
|
||||
|
||||
* Wed Oct 27 2021 Major Hayden <major@mhtx.net> - 3.19.0-1
|
||||
- Update to 3.19.1
|
||||
|
||||
* Fri Oct 22 2021 Adrian Reber <adrian@lisas.de> - 3.18.1-2
|
||||
- Disable tests that fail on 32bit arches
|
||||
|
||||
* Thu Oct 14 2021 Orion Poplawski <orion@nwra.com> - 3.18.1-1
|
||||
- Update to 3.18.1
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.14.0-5
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Thu May 06 2021 Adrian Reber <adrian@lisas.de> - 3.14.0-4
|
||||
- Reintroduce the emacs subpackage to avoid file conflicts between
|
||||
protobuf-compiler.x86_64 and protobuf-compiler.i686
|
||||
|
||||
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 3.14.0-3
|
||||
- Rebuilt for removed libstdc++ symbol (#1937698)
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.14.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jan 04 2021 Adrian Reber <adrian@lisas.de> - 3.14.0-1
|
||||
- Update to 3.14.0
|
||||
|
||||
* Wed Aug 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.13.0-1
|
||||
- Update to 3.13.0
|
||||
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.3-4
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 3.12.3-2
|
||||
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||
|
||||
* Fri Jun 19 2020 Adrian Reber <adrian@lisas.de> - 3.12.3-2
|
||||
- Update to 3.12.3
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.11.4-2
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Tue Mar 31 2020 Adrian Reber <adrian@lisas.de> - 3.11.4-1
|
||||
- Update to 3.11.4
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Dec 18 2019 Adrian Reber <adrian@lisas.de> - 3.11.2-1
|
||||
- Update to 3.11.2
|
||||
|
||||
* Tue Nov 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-9
|
||||
- Drop python2-protobuf (#1765879)
|
||||
|
||||
* Sat Oct 26 2019 Orion Poplawski <orion@nwra.com> - 3.6.1-8
|
||||
- Drop obsolete BR on python-google-apputils
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-7
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.6.1-6
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Wed May 8 2019 Orion Poplawski <orion@nwra.com> - 3.6.1-4
|
||||
- Update emacs packaging to comply with guidelines
|
||||
|
||||
* Wed Feb 27 2019 Orion Poplawski <orion@nwra.com> - 3.6.1-3
|
||||
- Update googletest to 1.8.1 to re-enable tests
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Oct 23 2018 Felix Kaechele <heffer@fedoraproject.org> - 3.6.1-1
|
||||
- update to 3.6.1
|
||||
- obsolete javanano subpackage; discontinued upstream
|
||||
|
||||
* Fri Jul 27 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-8
|
||||
- Rebuild for new binutils
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-6
|
||||
- Rebuilt for Python 3.7
|
||||
|
||||
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 3.5.0-5
|
||||
- Update Python 2 dependency declarations to new packaging standards
|
||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||
|
||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-4
|
||||
- Escape macros in %%changelog
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-2
|
||||
- Switch to %%ldconfig_scriptlets
|
||||
|
||||
* Thu Nov 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-1
|
||||
- Update to 3.5.0
|
||||
|
||||
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.1-1
|
||||
- Update to 3.4.1
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Jun 27 2017 Mat Booth <mat.booth@redhat.com> - 3.3.1-2
|
||||
- Make OSGi dependency on sun.misc package optional. This package is not
|
||||
available in all execution environments and will not be available in Java 9.
|
||||
|
||||
* Mon Jun 12 2017 Orion Poplawski <orion@cora.nwra.com> - 3.3.1-1
|
||||
- Update to 3.3.1
|
||||
|
||||
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Jan 27 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-1
|
||||
- Update to 3.2.0 final
|
||||
|
||||
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-0.1.rc2
|
||||
- Update to 3.2.0rc2
|
||||
|
||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
|
||||
- Rebuild for Python 3.6
|
||||
|
||||
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-5
|
||||
- Disable slow test on arm
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-4
|
||||
- Ship python 3 module
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-3
|
||||
- Fix jar file compat symlink
|
||||
|
||||
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
||||
- Add needed python requirement
|
||||
|
||||
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
||||
- Make various sub-packages noarch
|
||||
|
||||
* Fri Nov 04 2016 gil cattaneo <puntogil@libero.it> 3.1.0-2
|
||||
- enable javanano
|
||||
- minor changes to adapt to current guidelines
|
||||
|
||||
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-1
|
||||
- Update to 3.1.0
|
||||
|
||||
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-5
|
||||
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jan 20 2016 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-3
|
||||
- Tests no longer segfaulting on arm
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Apr 6 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-1
|
||||
- Update to 2.6.1
|
||||
- New URL
|
||||
- Cleanup spec
|
||||
- Add patch to fix emacs compilation with emacs 24.4
|
||||
- Drop java-fixes patch, use pom macros instead
|
||||
- Add BR on python-google-apputils and mvn(org.easymock:easymock)
|
||||
- Run make check
|
||||
- Make -static require -devel (bug #1067475)
|
||||
|
||||
* Thu Mar 26 2015 Kalev Lember <kalevlember@gmail.com> - 2.6.0-4
|
||||
- Rebuilt for GCC 5 ABI change
|
||||
|
||||
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.6.0-3
|
||||
- Rebuilt for Fedora 23 Change
|
||||
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||
|
||||
* Wed Dec 17 2014 Peter Lemenkov <lemenkov@gmail.com> - 2.6.0-2
|
||||
- Added missing Requires zlib-devel to protobuf-devel (see rhbz #1173343). See
|
||||
also rhbz #732087.
|
||||
|
||||
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.6.0-1
|
||||
- Bump to upstream release 2.6.0 (rh# 1154474).
|
||||
- Rebase 'java fixes' patch on 2.6.0 pom.xml.
|
||||
- Drop patch #3 (fall back to generic GCC atomics if no specialized atomics
|
||||
exist, e.g. AArch64 GCC); this has been upstreamed.
|
||||
|
||||
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-11
|
||||
- protobuf-emacs requires emacs(bin), not emacs (rh# 1154456)
|
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Mon Jun 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.0-9
|
||||
- Update to current Java packaging guidelines
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-7
|
||||
- Use Requires: java-headless rebuild (#1067528)
|
||||
|
||||
* Thu Dec 12 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-6
|
||||
- BR python-setuptools-devel -> python-setuptools
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Thu May 16 2013 Dan Horák <dan[at]danny.cz> - 2.5.0-4
|
||||
- export the new generic atomics header (rh #926374)
|
||||
|
||||
* Mon May 6 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-3
|
||||
- Add support for generic gcc atomic operations (rh #926374)
|
||||
|
||||
* Sat Apr 27 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-2
|
||||
- Remove changelog history from before 2010
|
||||
- This spec already runs autoreconf -fi during %%build, but bump build for
|
||||
rhbz #926374
|
||||
|
||||
* Sat Mar 9 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-1
|
||||
- Bump to latest upstream (#883822)
|
||||
- Rebase gtest, maven patches on 2.5.0
|
||||
|
||||
* Tue Feb 26 2013 Conrad Meyer <cemeyer@uw.edu> - 2.4.1-12
|
||||
- Nuke BR on maven-doxia, maven-doxia-sitetools (#915620)
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.1-10
|
||||
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
||||
- Replace maven BuildRequires with maven-local
|
||||
|
||||
* Sun Jan 20 2013 Conrad Meyer <konrad@tylerc.org> - 2.4.1-9
|
||||
- Fix packaging bug, -emacs-el subpackage should depend on -emacs subpackage of
|
||||
the same version (%%version), not the emacs version number...
|
||||
|
||||
* Thu Jan 17 2013 Tim Niemueller <tim@niemueller.de> - 2.4.1-8
|
||||
- Added sub-package for Emacs editing mode
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Mon Mar 19 2012 Dan Horák <dan[at]danny.cz> - 2.4.1-6
|
||||
- disable test-suite until g++ 4.7 issues are resolved
|
||||
|
||||
* Mon Mar 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.1-5
|
||||
- Update to latest java packaging guidelines
|
||||
|
||||
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
||||
- Rebuilt for c++ ABI breakage
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Sep 27 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.4.1-2
|
||||
- Adding zlib-devel as BR (rhbz: #732087)
|
||||
|
||||
* Thu Jun 09 2011 BJ Dierkes <wdierkes@rackspace.com> - 2.4.1-1
|
||||
- Latest sources from upstream.
|
||||
- Rewrote Patch2 as protobuf-2.4.1-java-fixes.patch
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.0-6
|
||||
- Fix java subpackage bugs #669345 and #669346
|
||||
- Use new maven plugin names
|
||||
- Use mavenpomdir macro for pom installation
|
||||
|
||||
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-5
|
||||
- generalize hardcoded reference to 2.6 in python subpackage %%files manifest
|
||||
|
||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||
|
||||
* Thu Jul 15 2010 James Laska <jlaska@redhat.com> - 2.3.0-3
|
||||
- Correct use of %%bcond macros
|
||||
|
||||
* Wed Jul 14 2010 James Laska <jlaska@redhat.com> - 2.3.0-2
|
||||
- Enable python and java sub-packages
|
||||
|
||||
* Tue May 4 2010 Conrad Meyer <konrad@tylerc.org> - 2.3.0-1
|
||||
- bump to 2.3.0
|
||||
193
protoc.1
Normal file
193
protoc.1
Normal file
@ -0,0 +1,193 @@
|
||||
.TH protoc "1" "December 2022" protoc "User Commands"
|
||||
.SH NAME
|
||||
protoc \- Protobuf compiler
|
||||
.SH SYNOPSIS
|
||||
protoc
|
||||
.RI [ OPTION ]
|
||||
.I PROTO_FILES
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Parse
|
||||
.I PROTO_FILES
|
||||
and generate output based on the options given.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.B \-I\fIPATH\fR, \fB\-\-proto_path=\fIPATH
|
||||
Specify the directory in which to search for imports.
|
||||
May be specified multiple times; directories will be searched in order.
|
||||
If not given, the current working directory is used.
|
||||
If not found in any of the these directories, the
|
||||
.B \-\-descriptor_set_in
|
||||
descriptors will be checked for required proto file.
|
||||
.TP
|
||||
.B \-\-version
|
||||
Show version info and exit.
|
||||
.TP
|
||||
.B \-h\fR, \fB\-\-help
|
||||
Show a help message and exit.
|
||||
.TP
|
||||
.BI \-\-encode= MESSAGE_TYPE
|
||||
Read a text-format message of the given type
|
||||
from standard input and write it in binary
|
||||
to standard output.
|
||||
The message type must be defined in
|
||||
.I PROTO_FILES
|
||||
or their imports.
|
||||
.TP
|
||||
.B \-\-deterministic_output
|
||||
When using
|
||||
.BR \-\-encode ,
|
||||
ensure map fields are deterministically ordered.
|
||||
Note that this order is not canonical,
|
||||
and changes across builds or releases of
|
||||
.BR protoc (1).
|
||||
.TP
|
||||
.BI \-\-decode= MESSAGE_TYPE
|
||||
Read a binary message of the given type
|
||||
from standard input and write it in text format
|
||||
to standard output.
|
||||
The message type must be defined in
|
||||
.I PROTO_FILES
|
||||
or their imports.
|
||||
.TP
|
||||
.B \-\-decode_raw
|
||||
Read an arbitrary protocol message
|
||||
from standard input and write the raw tag/value pairs in text format
|
||||
to standard output.
|
||||
No
|
||||
.I PROTO_FILES
|
||||
should be given when using this flag.
|
||||
.TP
|
||||
.BI \-\-descriptor_set_in= FILES
|
||||
Specifies a delimited list of
|
||||
.I FILES
|
||||
each containing a
|
||||
.B FileDescriptorSet
|
||||
(a protocol buffer defined in
|
||||
.BR descriptor.proto ).
|
||||
The
|
||||
.B FileDescriptor
|
||||
for each of the
|
||||
.I PROTO_FILES
|
||||
provided will be loaded from these
|
||||
.BR FileDescriptorSets .
|
||||
If a
|
||||
.B FileDescriptor
|
||||
appears multiple times, the first occurrence will be used.
|
||||
.TP
|
||||
.B \-o\fIFILE\fR, \fB\-\-descriptor_set_out=\fIFILE
|
||||
Writes a
|
||||
.B FileDescriptorSet
|
||||
(a protocol buffer, defined in
|
||||
.BR descriptor.proto )
|
||||
containing all of the input files to
|
||||
.IR FILE .
|
||||
.TP
|
||||
.B \-\-include_imports
|
||||
When using
|
||||
.BR \-\-descriptor_set_out ,
|
||||
also include all dependencies of the input files in the set,
|
||||
so that the set is self-contained.
|
||||
.TP
|
||||
.B \-\-include_source_info
|
||||
When using
|
||||
.BR \-\-descriptor_set_out ,
|
||||
do not strip
|
||||
.B SourceCodeInfo
|
||||
from the
|
||||
.BR FileDescriptorProto .
|
||||
This results in vastly larger descriptors
|
||||
that include information about the original location
|
||||
of each decl in the source file
|
||||
as well as surrounding comments.
|
||||
.TP
|
||||
.BI \-\-dependency_out= FILE
|
||||
Write a dependency output file in the format expected by
|
||||
.BR make (1).
|
||||
This writes the transitive set of input file paths to
|
||||
.I FILE
|
||||
.TP
|
||||
.BI \-\-error_format= FORMAT
|
||||
Set the format in which to print errors.
|
||||
.I FORMAT
|
||||
may be
|
||||
.RB \(oq gcc \(cq
|
||||
(the default) or
|
||||
.RP \(oq msvs \(cq
|
||||
(Microsoft Visual Studio format).
|
||||
.TP
|
||||
.B \-\-fatal_warnings
|
||||
Make warnings be fatal (similar to
|
||||
.B \-Werr
|
||||
in
|
||||
.BR gcc (1)).
|
||||
This flag will make
|
||||
.BR protoc (1)
|
||||
return with a non-zero exit code
|
||||
if any warnings are generated.
|
||||
.TP
|
||||
.B \-\-print_free_field_numbers
|
||||
Print the free field numbers of the messages
|
||||
defined in the given proto files.
|
||||
Groups share the same field number space with the parent message.
|
||||
Extension ranges are counted as occupied fields numbers.
|
||||
.TP
|
||||
.BI \-\-plugin= EXECUTABLE
|
||||
Specifies a plugin executable to use.
|
||||
Normally,
|
||||
.BR protoc (1)
|
||||
searches the
|
||||
.B PATH
|
||||
for plugins, but you may specify additional executables
|
||||
not in the path using this flag.
|
||||
Additionally,
|
||||
.I EXECUTABLE
|
||||
may be of the form
|
||||
.BR NAME=\fIPATH ,
|
||||
in which case the given plugin name
|
||||
is mapped to the given executable
|
||||
even if the executable\(cqs own name differs.
|
||||
.TP
|
||||
.BI \-\-cpp_out= OUT_DIR
|
||||
Generate C++ header and source.
|
||||
.TP
|
||||
.BI \-\-csharp_out= OUT_DIR
|
||||
Generate C# source file.
|
||||
.TP
|
||||
.BI \-\-java_out= OUT_DIR
|
||||
Generate Java source file.
|
||||
.TP
|
||||
.BI \-\-js_out= OUT_DIR
|
||||
Generate JavaScript source.
|
||||
.TP
|
||||
.BI \-\-kotlin_out= OUT_DIR
|
||||
Generate Kotlin file.
|
||||
.TP
|
||||
.BI \-\-objc_out= OUT_DIR
|
||||
Generate Objective-C header and source.
|
||||
.TP
|
||||
.BI \-\-php_out= OUT_DIR
|
||||
Generate PHP source file.
|
||||
.TP
|
||||
.BI \-\-python_out= OUT_DIR
|
||||
Generate Python source file.
|
||||
.TP
|
||||
.BI \-\-ruby_out= OUT_DIR
|
||||
Generate Ruby source file.
|
||||
.TP
|
||||
.BI @ <filename>
|
||||
Read options and filenames from file.
|
||||
If a relative file path is specified,
|
||||
the file will be searched in the working directory.
|
||||
The
|
||||
.B \-\-proto_path
|
||||
option will not affect how this argument file is searched.
|
||||
Content of the file will be expanded in the position of
|
||||
.BI @ <filename>
|
||||
as in the argument list.
|
||||
Note that shell expansion is not applied to the content of the file
|
||||
(i.e., you cannot use quotes, wildcards, escapes, commands, etc.).
|
||||
Each line corresponds to a single argument, even if it contains spaces.
|
||||
.SH "SEE ALSO"
|
||||
.BR make (1),
|
||||
.BR gcc (1)
|
||||
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (googletest-5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081.tar.gz) = 623b077b3334958fafcbc34aa85891883277994af33be530efd903f47738a3e3562001cbf3b6da1a5e7d03803c5bd51bcc1fab81490db85d5a4f2b15e7de1495
|
||||
SHA512 (protobuf-3.19.6-all.tar.gz) = 8f92242f2be8e1bbfba41341c87709ad91ad83b8b3e3df88bb430411541d3399295f49291fd52b50e3487b0fce33181cb4d175685fd25aac72adfaee26a612d4
|
||||
Loading…
Reference in New Issue
Block a user