|
|
114fe9 |
# Build -python2 subpackage
|
|
|
114fe9 |
%bcond_with python2
|
|
|
114fe9 |
# Build -python3 subpackage
|
|
|
114fe9 |
%bcond_without python3
|
|
|
114fe9 |
# Build -java subpackage
|
|
|
114fe9 |
%bcond_with java
|
|
|
114fe9 |
|
|
|
114fe9 |
%global emacs_version %(pkg-config emacs --modversion)
|
|
|
114fe9 |
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
|
|
114fe9 |
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
|
|
114fe9 |
|
|
|
114fe9 |
#global rcver rc2
|
|
|
114fe9 |
|
|
|
114fe9 |
Summary: Protocol Buffers - Google's data interchange format
|
|
|
114fe9 |
Name: protobuf
|
|
|
114fe9 |
Version: 3.5.0
|
|
|
4a17f5 |
Release: 13%{?dist}
|
|
|
114fe9 |
License: BSD
|
|
|
114fe9 |
URL: https://github.com/google/protobuf
|
|
|
114fe9 |
Source: https://github.com/google/protobuf/archive/v%{version}%{?rcver}/%{name}-%{version}%{?rcver}.tar.gz
|
|
|
114fe9 |
Source1: ftdetect-proto.vim
|
|
|
114fe9 |
Source2: protobuf-init.el
|
|
|
114fe9 |
# For tests
|
|
|
114fe9 |
Source3: https://github.com/google/googlemock/archive/release-1.7.0.tar.gz#/googlemock-1.7.0.tar.gz
|
|
|
114fe9 |
Source4: https://github.com/google/googletest/archive/release-1.7.0.tar.gz#/googletest-1.7.0.tar.gz
|
|
|
114fe9 |
# Might be upstreamable, but for now temporary workaround
|
|
|
114fe9 |
Patch0: 0001-fix-build-on-s390x.patch
|
|
|
114fe9 |
|
|
|
114fe9 |
BuildRequires: autoconf
|
|
|
114fe9 |
BuildRequires: automake
|
|
|
114fe9 |
BuildRequires: emacs(bin)
|
|
|
114fe9 |
BuildRequires: emacs-el >= 24.1
|
|
|
114fe9 |
BuildRequires: gcc-c++
|
|
|
114fe9 |
BuildRequires: libtool
|
|
|
114fe9 |
BuildRequires: pkgconfig
|
|
|
114fe9 |
BuildRequires: zlib-devel
|
|
|
114fe9 |
|
|
|
114fe9 |
%description
|
|
|
114fe9 |
Protocol Buffers are a way of encoding structured data in an efficient
|
|
|
114fe9 |
yet extensible format. Google uses Protocol Buffers for almost all of
|
|
|
114fe9 |
its internal RPC protocols and file formats.
|
|
|
114fe9 |
|
|
|
114fe9 |
Protocol buffers are a flexible, efficient, automated mechanism for
|
|
|
114fe9 |
serializing structured data – think XML, but smaller, faster, and
|
|
|
114fe9 |
simpler. You define how you want your data to be structured once, then
|
|
|
114fe9 |
you can use special generated source code to easily write and read
|
|
|
114fe9 |
your structured data to and from a variety of data streams and using a
|
|
|
114fe9 |
variety of languages. You can even update your data structure without
|
|
|
114fe9 |
breaking deployed programs that are compiled against the "old" format.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package compiler
|
|
|
114fe9 |
Summary: Protocol Buffers compiler
|
|
|
114fe9 |
Requires: %{name} = %{version}-%{release}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description compiler
|
|
|
114fe9 |
This package contains Protocol Buffers compiler for all programming
|
|
|
114fe9 |
languages
|
|
|
114fe9 |
|
|
|
114fe9 |
%package devel
|
|
|
114fe9 |
Summary: Protocol Buffers C++ headers and libraries
|
|
|
114fe9 |
Requires: %{name} = %{version}-%{release}
|
|
|
114fe9 |
Requires: %{name}-compiler = %{version}-%{release}
|
|
|
114fe9 |
Requires: zlib-devel
|
|
|
114fe9 |
Requires: pkgconfig
|
|
|
114fe9 |
|
|
|
114fe9 |
%description devel
|
|
|
114fe9 |
This package contains Protocol Buffers compiler for all languages and
|
|
|
114fe9 |
C++ headers and libraries
|
|
|
114fe9 |
|
|
|
114fe9 |
%package static
|
|
|
114fe9 |
Summary: Static development files for %{name}
|
|
|
114fe9 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description static
|
|
|
114fe9 |
Static libraries for Protocol Buffers
|
|
|
114fe9 |
|
|
|
114fe9 |
%package lite
|
|
|
114fe9 |
Summary: Protocol Buffers LITE_RUNTIME libraries
|
|
|
114fe9 |
|
|
|
114fe9 |
%description lite
|
|
|
114fe9 |
Protocol Buffers built with optimize_for = LITE_RUNTIME.
|
|
|
114fe9 |
|
|
|
114fe9 |
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
|
|
114fe9 |
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
|
|
114fe9 |
lacks descriptors, reflection, and some other features.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package lite-devel
|
|
|
114fe9 |
Summary: Protocol Buffers LITE_RUNTIME development libraries
|
|
|
114fe9 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
114fe9 |
Requires: %{name}-lite = %{version}-%{release}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description lite-devel
|
|
|
114fe9 |
This package contains development libraries built with
|
|
|
114fe9 |
optimize_for = LITE_RUNTIME.
|
|
|
114fe9 |
|
|
|
114fe9 |
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
|
|
114fe9 |
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
|
|
114fe9 |
lacks descriptors, reflection, and some other features.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package lite-static
|
|
|
114fe9 |
Summary: Static development files for %{name}-lite
|
|
|
114fe9 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description lite-static
|
|
|
114fe9 |
This package contains static development libraries built with
|
|
|
114fe9 |
optimize_for = LITE_RUNTIME.
|
|
|
114fe9 |
|
|
|
114fe9 |
The "optimize_for = LITE_RUNTIME" option causes the compiler to generate code
|
|
|
114fe9 |
which only depends libprotobuf-lite, which is much smaller than libprotobuf but
|
|
|
114fe9 |
lacks descriptors, reflection, and some other features.
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python2}
|
|
|
114fe9 |
%package -n python2-%{name}
|
|
|
114fe9 |
Summary: Python 2 bindings for Google Protocol Buffers
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
BuildRequires: python2-devel
|
|
|
114fe9 |
BuildRequires: python-setuptools
|
|
|
114fe9 |
%if 0%{?fedora}
|
|
|
114fe9 |
# For tests
|
|
|
114fe9 |
BuildRequires: python-google-apputils
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
Requires: python-six >= 1.9
|
|
|
114fe9 |
Conflicts: %{name}-compiler > %{version}
|
|
|
114fe9 |
Conflicts: %{name}-compiler < %{version}
|
|
|
114fe9 |
Obsoletes: %{name}-python < 3.1.0-4
|
|
|
114fe9 |
Provides: %{name}-python = %{version}-%{release}
|
|
|
114fe9 |
%{?python_provide:%python_provide python2-%{name}}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description -n python2-%{name}
|
|
|
114fe9 |
This package contains Python 2 libraries for Google Protocol Buffers
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python3}
|
|
|
114fe9 |
%package -n python%{python3_pkgversion}-%{name}
|
|
|
114fe9 |
Summary: Python 3 bindings for Google Protocol Buffers
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
114fe9 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
114fe9 |
%if 0%{?fedora}
|
|
|
114fe9 |
# For tests
|
|
|
114fe9 |
BuildRequires: python%{python3_pkgversion}-google-apputils
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
Requires: python%{python3_pkgversion}-six >= 1.9
|
|
|
114fe9 |
Conflicts: %{name}-compiler > %{version}
|
|
|
114fe9 |
Conflicts: %{name}-compiler < %{version}
|
|
|
114fe9 |
Provides: %{name}-python3 = %{version}-%{release}
|
|
|
114fe9 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description -n python%{python3_pkgversion}-%{name}
|
|
|
114fe9 |
This package contains Python 3 libraries for Google Protocol Buffers
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%package vim
|
|
|
114fe9 |
Summary: Vim syntax highlighting for Google Protocol Buffers descriptions
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
Requires: vim-enhanced
|
|
|
114fe9 |
|
|
|
114fe9 |
%description vim
|
|
|
114fe9 |
This package contains syntax highlighting for Google Protocol Buffers
|
|
|
114fe9 |
descriptions in Vim editor
|
|
|
114fe9 |
|
|
|
114fe9 |
%package emacs
|
|
|
114fe9 |
Summary: Emacs mode for Google Protocol Buffers descriptions
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
Requires: emacs(bin) >= 0%{emacs_version}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description emacs
|
|
|
114fe9 |
This package contains syntax highlighting for Google Protocol Buffers
|
|
|
114fe9 |
descriptions in the Emacs editor.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package emacs-el
|
|
|
114fe9 |
Summary: Elisp source files for Google protobuf Emacs mode
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
Requires: protobuf-emacs = %{version}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description emacs-el
|
|
|
114fe9 |
This package contains the elisp source files for %{name}-emacs
|
|
|
114fe9 |
under GNU Emacs. You do not need to install this package to use
|
|
|
114fe9 |
%{name}-emacs.
|
|
|
114fe9 |
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with java}
|
|
|
114fe9 |
%package java
|
|
|
114fe9 |
Summary: Java Protocol Buffers runtime library
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
BuildRequires: maven-local
|
|
|
114fe9 |
BuildRequires: mvn(com.google.code.gson:gson)
|
|
|
114fe9 |
BuildRequires: mvn(com.google.guava:guava)
|
|
|
114fe9 |
BuildRequires: mvn(junit:junit)
|
|
|
114fe9 |
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
114fe9 |
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
|
|
114fe9 |
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
114fe9 |
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
114fe9 |
BuildRequires: mvn(org.easymock:easymock)
|
|
|
114fe9 |
Conflicts: %{name}-compiler > %{version}
|
|
|
114fe9 |
Conflicts: %{name}-compiler < %{version}
|
|
|
114fe9 |
|
|
|
114fe9 |
%description java
|
|
|
114fe9 |
This package contains Java Protocol Buffers runtime library.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package java-util
|
|
|
114fe9 |
Summary: Utilities for Protocol Buffers
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
|
|
|
114fe9 |
%description java-util
|
|
|
114fe9 |
Utilities to work with protos. It contains JSON support
|
|
|
114fe9 |
as well as utilities to work with proto3 well-known types.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package javadoc
|
|
|
114fe9 |
Summary: Javadoc for %{name}-java
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
|
|
|
114fe9 |
%description javadoc
|
|
|
114fe9 |
This package contains the API documentation for %{name}-java.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package javanano
|
|
|
114fe9 |
Summary: Protocol Buffer JavaNano API
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
|
|
|
114fe9 |
%description javanano
|
|
|
114fe9 |
JavaNano is a special code generator and runtime
|
|
|
114fe9 |
library designed specially for resource-restricted
|
|
|
114fe9 |
systems, like Android.
|
|
|
114fe9 |
|
|
|
114fe9 |
%package parent
|
|
|
114fe9 |
Summary: Protocol Buffer Parent POM
|
|
|
114fe9 |
BuildArch: noarch
|
|
|
114fe9 |
|
|
|
114fe9 |
%description parent
|
|
|
114fe9 |
Protocol Buffer Parent POM.
|
|
|
114fe9 |
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%prep
|
|
|
114fe9 |
%setup -q -n %{name}-%{version}%{?rcver} -a 3 -a 4
|
|
|
114fe9 |
%autopatch -p1
|
|
|
114fe9 |
mv googlemock-release-1.7.0 gmock
|
|
|
114fe9 |
mv googletest-release-1.7.0 gmock/gtest
|
|
|
114fe9 |
find -name \*.cc -o -name \*.h | xargs chmod -x
|
|
|
114fe9 |
chmod 644 examples/*
|
|
|
114fe9 |
%if %{with java}
|
|
|
114fe9 |
%pom_remove_parent java/pom.xml
|
|
|
114fe9 |
%pom_remove_dep org.easymock:easymockclassextension java/pom.xml java/*/pom.xml
|
|
|
114fe9 |
# These use easymockclassextension
|
|
|
114fe9 |
rm java/core/src/test/java/com/google/protobuf/ServiceTest.java
|
|
|
114fe9 |
#rm -r java/core/src/test
|
|
|
114fe9 |
|
|
|
114fe9 |
# used by https://github.com/googlei18n/libphonenumber
|
|
|
114fe9 |
%pom_xpath_inject "pom:project/pom:modules" "<module>../javanano</module>" java
|
|
|
114fe9 |
%pom_remove_parent javanano
|
|
|
114fe9 |
%pom_remove_dep org.easymock:easymockclassextension javanano
|
|
|
114fe9 |
|
|
|
114fe9 |
# Make OSGi dependency on sun.misc package optional
|
|
|
114fe9 |
%pom_xpath_inject "pom:configuration/pom:instructions" "<Import-Package>sun.misc;resolution:=optional,*</Import-Package>" java/core
|
|
|
114fe9 |
|
|
|
114fe9 |
# Backward compatibility symlink
|
|
|
114fe9 |
%mvn_file :protobuf-java:jar: %{name}/%{name}-java %{name}
|
|
|
114fe9 |
|
|
|
114fe9 |
# This test is incredibly slow on arm
|
|
|
114fe9 |
# https://github.com/google/protobuf/issues/2389
|
|
|
114fe9 |
%ifarch %{arm}
|
|
|
114fe9 |
mv java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java \
|
|
|
114fe9 |
java/core/src/test/java/com/google/protobuf/IsValidUtf8Test.java.slow
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
rm -f src/solaris/libstdc++.la
|
|
|
114fe9 |
|
|
|
114fe9 |
%build
|
|
|
114fe9 |
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
|
|
114fe9 |
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
|
|
114fe9 |
export PTHREAD_LIBS="-lpthread"
|
|
|
114fe9 |
./autogen.sh
|
|
|
114fe9 |
%configure
|
|
|
114fe9 |
|
|
|
114fe9 |
make %{?_smp_mflags}
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python2}
|
|
|
114fe9 |
pushd python
|
|
|
114fe9 |
%py2_build
|
|
|
114fe9 |
popd
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python3}
|
|
|
114fe9 |
pushd python
|
|
|
114fe9 |
%py3_build
|
|
|
114fe9 |
popd
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with java}
|
|
|
114fe9 |
%mvn_build -s -- -f java/pom.xml
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
emacs -batch -f batch-byte-compile editors/protobuf-mode.el
|
|
|
114fe9 |
|
|
|
114fe9 |
%check
|
|
|
114fe9 |
# TODO: failures; get them fixed and remove || :
|
|
|
114fe9 |
# https://github.com/google/protobuf/issues/631
|
|
|
114fe9 |
make %{?_smp_mflags} check || :
|
|
|
114fe9 |
|
|
|
114fe9 |
%install
|
|
|
114fe9 |
make %{?_smp_mflags} install DESTDIR=%{buildroot} STRIPBINARIES=no INSTALL="%{__install} -p" CPPROG="cp -p"
|
|
|
114fe9 |
find %{buildroot} -type f -name "*.la" -exec rm -f {} \;
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python2}
|
|
|
114fe9 |
pushd python
|
|
|
114fe9 |
#python ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
|
|
|
114fe9 |
%py2_install
|
|
|
114fe9 |
find %{buildroot}%{python2_sitelib} -name \*.py |
|
|
|
114fe9 |
xargs sed -i -e '1{\@^#!@d}'
|
|
|
114fe9 |
popd
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python3}
|
|
|
114fe9 |
pushd python
|
|
|
114fe9 |
#python ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
|
|
|
114fe9 |
%py3_install
|
|
|
114fe9 |
find %{buildroot}%{python3_sitelib} -name \*.py |
|
|
|
114fe9 |
xargs sed -i -e '1{\@^#!@d}'
|
|
|
114fe9 |
popd
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
install -p -m 644 -D %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
|
|
114fe9 |
install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with java}
|
|
|
114fe9 |
%mvn_install
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
mkdir -p $RPM_BUILD_ROOT%{emacs_lispdir}
|
|
|
114fe9 |
mkdir -p $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
114fe9 |
install -p -m 0644 editors/protobuf-mode.el $RPM_BUILD_ROOT%{emacs_lispdir}
|
|
|
114fe9 |
install -p -m 0644 editors/protobuf-mode.elc $RPM_BUILD_ROOT%{emacs_lispdir}
|
|
|
114fe9 |
install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|
|
114fe9 |
|
|
|
114fe9 |
%ldconfig_scriptlets
|
|
|
114fe9 |
%ldconfig_scriptlets lite
|
|
|
114fe9 |
%ldconfig_scriptlets compiler
|
|
|
114fe9 |
|
|
|
114fe9 |
%files
|
|
|
114fe9 |
%{_libdir}/libprotobuf.so.15*
|
|
|
114fe9 |
%doc CHANGES.txt CONTRIBUTORS.txt README.md
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
|
|
|
114fe9 |
%files compiler
|
|
|
114fe9 |
%{_bindir}/protoc
|
|
|
114fe9 |
%{_libdir}/libprotoc.so.15*
|
|
|
114fe9 |
%doc README.md
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
|
|
|
114fe9 |
%files devel
|
|
|
114fe9 |
%dir %{_includedir}/google
|
|
|
114fe9 |
%{_includedir}/google/protobuf/
|
|
|
114fe9 |
%{_libdir}/libprotobuf.so
|
|
|
114fe9 |
%{_libdir}/libprotoc.so
|
|
|
114fe9 |
%{_libdir}/pkgconfig/protobuf.pc
|
|
|
114fe9 |
%doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.md
|
|
|
114fe9 |
|
|
|
114fe9 |
%files static
|
|
|
114fe9 |
%{_libdir}/libprotobuf.a
|
|
|
114fe9 |
%{_libdir}/libprotoc.a
|
|
|
114fe9 |
|
|
|
114fe9 |
%files lite
|
|
|
114fe9 |
%{_libdir}/libprotobuf-lite.so.15*
|
|
|
114fe9 |
|
|
|
114fe9 |
%files lite-devel
|
|
|
114fe9 |
%{_libdir}/libprotobuf-lite.so
|
|
|
114fe9 |
%{_libdir}/pkgconfig/protobuf-lite.pc
|
|
|
114fe9 |
|
|
|
114fe9 |
%files lite-static
|
|
|
114fe9 |
%{_libdir}/libprotobuf-lite.a
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python2}
|
|
|
114fe9 |
%files -n python2-protobuf
|
|
|
114fe9 |
%dir %{python2_sitelib}/google
|
|
|
114fe9 |
%{python2_sitelib}/google/protobuf/
|
|
|
114fe9 |
%{python2_sitelib}/protobuf-%{version}%{?rcver}-py2.?.egg-info/
|
|
|
114fe9 |
%{python2_sitelib}/protobuf-%{version}%{?rcver}-py2.?-nspkg.pth
|
|
|
114fe9 |
%doc python/README.md
|
|
|
114fe9 |
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with python3}
|
|
|
114fe9 |
%files -n python%{python3_pkgversion}-protobuf
|
|
|
114fe9 |
%dir %{python3_sitelib}/google
|
|
|
114fe9 |
%{python3_sitelib}/google/protobuf/
|
|
|
114fe9 |
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.?.egg-info/
|
|
|
114fe9 |
%{python3_sitelib}/protobuf-%{version}%{?rcver}-py3.?-nspkg.pth
|
|
|
114fe9 |
%doc python/README.md
|
|
|
114fe9 |
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%files vim
|
|
|
114fe9 |
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
|
|
114fe9 |
%{_datadir}/vim/vimfiles/syntax/proto.vim
|
|
|
114fe9 |
|
|
|
114fe9 |
%files emacs
|
|
|
114fe9 |
%{emacs_startdir}/protobuf-init.el
|
|
|
114fe9 |
%{emacs_lispdir}/protobuf-mode.elc
|
|
|
114fe9 |
|
|
|
114fe9 |
%files emacs-el
|
|
|
114fe9 |
%{emacs_lispdir}/protobuf-mode.el
|
|
|
114fe9 |
|
|
|
114fe9 |
%if %{with java}
|
|
|
114fe9 |
%files java -f .mfiles-protobuf-java
|
|
|
114fe9 |
%doc examples/AddPerson.java examples/ListPeople.java
|
|
|
114fe9 |
%doc java/README.md
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
|
|
|
114fe9 |
%files java-util -f .mfiles-protobuf-java-util
|
|
|
114fe9 |
|
|
|
114fe9 |
%files javadoc -f .mfiles-javadoc
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
|
|
|
114fe9 |
%files javanano -f .mfiles-protobuf-javanano
|
|
|
114fe9 |
%doc javanano/README.md
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
|
|
|
114fe9 |
%files parent -f .mfiles-protobuf-parent
|
|
|
114fe9 |
%license LICENSE
|
|
|
114fe9 |
%endif
|
|
|
114fe9 |
|
|
|
114fe9 |
%changelog
|
|
|
4a17f5 |
* Thu May 28 2020 Adrian Reber <areber@redhat.com> - 3.5.0-13
|
|
|
4a17f5 |
- Rebuild
|
|
|
4a17f5 |
|
|
|
4a17f5 |
* Tue May 26 2020 Adrian Reber <areber@redhat.com> - 3.5.0-10
|
|
|
4a17f5 |
- Rebuild
|
|
|
4a17f5 |
|
|
|
4a17f5 |
* Thu Apr 09 2020 Adrian Reber <areber@redhat.com> - 3.5.0-8
|
|
|
4a17f5 |
- Rebuild
|
|
|
4a17f5 |
|
|
|
114fe9 |
* Thu Jul 12 2018 Adrian Reber <areber@redhat.com> - 3.5.0-7
|
|
|
114fe9 |
- Build without python2 subpackage
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Jun 20 2018 Adrian Reber <areber@redhat.com> - 3.5.0-6
|
|
|
114fe9 |
- Only BR python-google-apputils on Fedora
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.5.0-5
|
|
|
114fe9 |
- Build without -java supbackage
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-4
|
|
|
114fe9 |
- Escape macros in %%changelog
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-3
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-2
|
|
|
114fe9 |
- Switch to %%ldconfig_scriptlets
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Nov 23 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.5.0-1
|
|
|
114fe9 |
- Update to 3.5.0
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.4.1-1
|
|
|
114fe9 |
- Update to 3.4.1
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-4
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-3
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Jun 27 2017 Mat Booth <mat.booth@redhat.com> - 3.3.1-2
|
|
|
114fe9 |
- Make OSGi dependency on sun.misc package optional. This package is not
|
|
|
114fe9 |
available in all execution environments and will not be available in Java 9.
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Jun 12 2017 Orion Poplawski <orion@cora.nwra.com> - 3.3.1-1
|
|
|
114fe9 |
- Update to 3.3.1
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.0-3
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Jan 27 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-1
|
|
|
114fe9 |
- Update to 3.2.0 final
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 3.2.0-0.1.rc2
|
|
|
114fe9 |
- Update to 3.2.0rc2
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-6
|
|
|
114fe9 |
- Rebuild for Python 3.6
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-5
|
|
|
114fe9 |
- Disable slow test on arm
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-4
|
|
|
114fe9 |
- Ship python 3 module
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-3
|
|
|
114fe9 |
- Fix jar file compat symlink
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 18 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
|
|
114fe9 |
- Add needed python requirement
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-2
|
|
|
114fe9 |
- Make various sub-packages noarch
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 04 2016 gil cattaneo <puntogil@libero.it> 3.1.0-2
|
|
|
114fe9 |
- enable javanano
|
|
|
114fe9 |
- minor changes to adapt to current guidelines
|
|
|
114fe9 |
|
|
|
114fe9 |
* Fri Nov 04 2016 Orion Poplawski <orion@cora.nwra.com> - 3.1.0-1
|
|
|
114fe9 |
- Update to 3.1.0
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-5
|
|
|
114fe9 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-4
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Jan 20 2016 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-3
|
|
|
114fe9 |
- Tests no longer segfaulting on arm
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.1-2
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Apr 6 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.1-1
|
|
|
114fe9 |
- Update to 2.6.1
|
|
|
114fe9 |
- New URL
|
|
|
114fe9 |
- Cleanup spec
|
|
|
114fe9 |
- Add patch to fix emacs compilation with emacs 24.4
|
|
|
114fe9 |
- Drop java-fixes patch, use pom macros instead
|
|
|
114fe9 |
- Add BR on python-google-apputils and mvn(org.easymock:easymock)
|
|
|
114fe9 |
- Run make check
|
|
|
114fe9 |
- Make -static require -devel (bug #1067475)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Mar 26 2015 Kalev Lember <kalevlember@gmail.com> - 2.6.0-4
|
|
|
114fe9 |
- Rebuilt for GCC 5 ABI change
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 2.6.0-3
|
|
|
114fe9 |
- Rebuilt for Fedora 23 Change
|
|
|
114fe9 |
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Dec 17 2014 Peter Lemenkov <lemenkov@gmail.com> - 2.6.0-2
|
|
|
114fe9 |
- Added missing Requires zlib-devel to protobuf-devel (see rhbz #1173343). See
|
|
|
114fe9 |
also rhbz #732087.
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.6.0-1
|
|
|
114fe9 |
- Bump to upstream release 2.6.0 (rh# 1154474).
|
|
|
114fe9 |
- Rebase 'java fixes' patch on 2.6.0 pom.xml.
|
|
|
114fe9 |
- Drop patch #3 (fall back to generic GCC atomics if no specialized atomics
|
|
|
114fe9 |
exist, e.g. AArch64 GCC); this has been upstreamed.
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-11
|
|
|
114fe9 |
- protobuf-emacs requires emacs(bin), not emacs (rh# 1154456)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-10
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Jun 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.5.0-9
|
|
|
114fe9 |
- Update to current Java packaging guidelines
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-8
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-7
|
|
|
114fe9 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Dec 12 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-6
|
|
|
114fe9 |
- BR python-setuptools-devel -> python-setuptools
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-5
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu May 16 2013 Dan Horák <dan[at]danny.cz> - 2.5.0-4
|
|
|
114fe9 |
- export the new generic atomics header (rh #926374)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon May 6 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.5.0-3
|
|
|
114fe9 |
- Add support for generic gcc atomic operations (rh #926374)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Apr 27 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-2
|
|
|
114fe9 |
- Remove changelog history from before 2010
|
|
|
114fe9 |
- This spec already runs autoreconf -fi during %%build, but bump build for
|
|
|
114fe9 |
rhbz #926374
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Mar 9 2013 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-1
|
|
|
114fe9 |
- Bump to latest upstream (#883822)
|
|
|
114fe9 |
- Rebase gtest, maven patches on 2.5.0
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Feb 26 2013 Conrad Meyer <cemeyer@uw.edu> - 2.4.1-12
|
|
|
114fe9 |
- Nuke BR on maven-doxia, maven-doxia-sitetools (#915620)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-11
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.1-10
|
|
|
114fe9 |
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
114fe9 |
- Replace maven BuildRequires with maven-local
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sun Jan 20 2013 Conrad Meyer <konrad@tylerc.org> - 2.4.1-9
|
|
|
114fe9 |
- Fix packaging bug, -emacs-el subpackage should depend on -emacs subpackage of
|
|
|
114fe9 |
the same version (%%version), not the emacs version number...
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jan 17 2013 Tim Niemueller <tim@niemueller.de> - 2.4.1-8
|
|
|
114fe9 |
- Added sub-package for Emacs editing mode
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-7
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Mar 19 2012 Dan Horák <dan[at]danny.cz> - 2.4.1-6
|
|
|
114fe9 |
- disable test-suite until g++ 4.7 issues are resolved
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Mar 19 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.4.1-5
|
|
|
114fe9 |
- Update to latest java packaging guidelines
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
|
|
114fe9 |
- Rebuilt for c++ ABI breakage
|
|
|
114fe9 |
|
|
|
114fe9 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue Sep 27 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.4.1-2
|
|
|
114fe9 |
- Adding zlib-devel as BR (rhbz: #732087)
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jun 09 2011 BJ Dierkes <wdierkes@rackspace.com> - 2.4.1-1
|
|
|
114fe9 |
- Latest sources from upstream.
|
|
|
114fe9 |
- Rewrote Patch2 as protobuf-2.4.1-java-fixes.patch
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.0-7
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jan 13 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.0-6
|
|
|
114fe9 |
- Fix java subpackage bugs #669345 and #669346
|
|
|
114fe9 |
- Use new maven plugin names
|
|
|
114fe9 |
- Use mavenpomdir macro for pom installation
|
|
|
114fe9 |
|
|
|
114fe9 |
* Mon Jul 26 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-5
|
|
|
114fe9 |
- generalize hardcoded reference to 2.6 in python subpackage %%files manifest
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.3.0-4
|
|
|
114fe9 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
114fe9 |
|
|
|
114fe9 |
* Thu Jul 15 2010 James Laska <jlaska@redhat.com> - 2.3.0-3
|
|
|
114fe9 |
- Correct use of %%bcond macros
|
|
|
114fe9 |
|
|
|
114fe9 |
* Wed Jul 14 2010 James Laska <jlaska@redhat.com> - 2.3.0-2
|
|
|
114fe9 |
- Enable python and java sub-packages
|
|
|
114fe9 |
|
|
|
114fe9 |
* Tue May 4 2010 Conrad Meyer <konrad@tylerc.org> - 2.3.0-1
|
|
|
114fe9 |
- bump to 2.3.0
|