SHA256
1
0
forked from pool/protobuf

Accepting request 171248 from devel:tools:building

- Upstream update to 2.5.0
  * New construct "import public"
  * New enum option "allow_alias"
  * C++: New generated method set_allocated_foo(Type* foo)
  * C++: Added SetAllocatedExtension() and ReleaseExtension()
    to extensions API
  * Java: Added getters/setters to access the underlying ByteString
    of a string field
  * Java: New operations for substring(), prepend(), and append()
  * Java: New method findInitializationErrors()
  * Python: Support for dynamic message creation
  * Python: Fixed custom options were not correctly populated
  * Python: Added EnumTypeWrapper
  * Python: Added ParseMessage(descriptor, bytes)
  * Various bug fixes and optimazations
- Drop gtest-1.5, which is now included by the archive from
  the upstream

OBS-URL: https://build.opensuse.org/request/show/171248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/protobuf?expand=0&rev=15
This commit is contained in:
Stephan Kulow
2013-04-17 21:16:21 +00:00
committed by Git OBS Bridge
6 changed files with 38 additions and 34 deletions

View File

@@ -1,3 +1,3 @@
libprotobuf7
libprotobuf-lite7
libprotoc7
libprotobuf8
libprotobuf-lite8
libprotoc8

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a7350a56d9536d83e41931d4300ca934f71cf09700542191b6267f4a466f20b
size 592328

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cf8452347330834bbf9c65c2e68b5562ba10c95fa40d4f7ec0d2cb332674b0bf
size 1440188

3
protobuf-2.5.0.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677
size 1866763

View File

@@ -1,4 +1,24 @@
-------------------------------------------------------------------
Fri Apr 12 18:35:09 UTC 2013 - ftake@geeko.jp
- Upstream update to 2.5.0
* New construct "import public"
* New enum option "allow_alias"
* C++: New generated method set_allocated_foo(Type* foo)
* C++: Added SetAllocatedExtension() and ReleaseExtension()
to extensions API
* Java: Added getters/setters to access the underlying ByteString
of a string field
* Java: New operations for substring(), prepend(), and append()
* Java: New method findInitializationErrors()
* Python: Support for dynamic message creation
* Python: Fixed custom options were not correctly populated
* Python: Added EnumTypeWrapper
* Python: Added ParseMessage(descriptor, bytes)
* Various bug fixes and optimazations
- Drop gtest-1.5, which is now included by the archive from
the upstream
-------------------------------------------------------------------
Sat May 19 18:25:52 UTC 2012 - crrodriguez@opensuse.org
- BuildRequire zlib-devel otherwise gzip_stream is not built

View File

@@ -1,7 +1,7 @@
#
# spec file for package protobuf
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
#
%define soname 7
%define soname 8
%bcond_without check
@@ -36,20 +36,13 @@ Name: protobuf
Summary: Protocol Buffers - Google's data interchange format
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Version: 2.4.1
Version: 2.5.0
Release: 0
# Reminder: Remove gtest 1.5.0 injected tarball.
Url: http://code.google.com/p/protobuf/
Url: http://code.google.com/p/protobuf/
Source0: http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
Source1: manifest.txt.in
# gtest 1.5.0 is just there to fuix the build with gcc 4.7... newer version of protobuf includes this.
Source2: gtest-1.5.0.tar.bz2
Patch0: protobuf-setuptools-2.4.1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Needed to rebootstrap with gtest 1.5.0
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: zlib-devel
%if 0%{?suse_version} > 1010
BuildRequires: fdupes
%endif
@@ -57,15 +50,17 @@ BuildRequires: fdupes
BuildRequires: java-devel >= 1.6.0
%endif
%if %{with protobuf_python}
BuildRequires: gcc-c++
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: zlib-devel
%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.
RPC protocols and file formats.
%package -n libprotobuf%{soname}
Summary: Protocol Buffers - Google's data interchange format
@@ -74,7 +69,7 @@ Group: System/Libraries
%description -n libprotobuf%{soname}
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.
RPC protocols and file formats.
%package -n libprotoc%{soname}
Summary: Protocol Buffers - Google's data interchange format
@@ -83,7 +78,7 @@ Group: System/Libraries
%description -n libprotoc%{soname}
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.
RPC protocols and file formats.
%package -n libprotobuf-lite%{soname}
Summary: Protocol Buffers - Google's data interchange format
@@ -92,7 +87,7 @@ Group: System/Libraries
%description -n libprotobuf-lite%{soname}
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.
RPC protocols and file formats.
%package devel
Summary: Header files, libraries and development documentation for %{name}
@@ -138,21 +133,13 @@ This package contains the Python bindings for Google Protocol Buffers.
%setup -q
%patch0 -p0
%if "%{version}" == "2.4.1"
rm -rf gtest
tar xf %{S:2}
%else
echo "Drop this gtest injection hack... any newer version than protobuf 2.4.1 should have gtest 1.5.0 included."
false
%endif
%build
%if 0%{?mandriva_version}
#XXX something wents wrong with detecting this
export PTHREAD_LIBS=-lpthread
%endif
# Needed due to gtest 1.5.0 injection
autoreconf -fiv
#
%configure --disable-static
%{__make} %{?jobs:-j%jobs}
#
@@ -185,7 +172,7 @@ popd
%install
%makeinstall
%__install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
%__install -Dm 0644 editors/proto.vim %{buildroot}%{_datadir}/vim/site/syntax/proto.vim
# no need for that
/bin/rm %{buildroot}%{_libdir}/*.la
#