Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Orion Poplawski | 69526c747b | |
Orion Poplawski | 01de9c8289 |
|
@ -0,0 +1,209 @@
|
|||
From d099ec11fc8c2eb97df2bf2fbb6996066eefca46 Mon Sep 17 00:00:00 2001
|
||||
From: Stanislav Ochotnicky <sochotnicky@redhat.com>
|
||||
Date: Thu, 2 May 2013 10:43:47 +0200
|
||||
Subject: [PATCH] Add generic GCC support for atomic operations
|
||||
|
||||
This is useful for architectures where no specialized code has been
|
||||
written.
|
||||
---
|
||||
src/google/protobuf/stubs/atomicops.h | 2 +-
|
||||
.../stubs/atomicops_internals_generic_gcc.h | 139 +++++++++++++++++++++
|
||||
src/google/protobuf/stubs/platform_macros.h | 14 ++-
|
||||
3 files changed, 153 insertions(+), 2 deletions(-)
|
||||
create mode 100644 src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
|
||||
|
||||
diff --git a/src/google/protobuf/stubs/atomicops.h b/src/google/protobuf/stubs/atomicops.h
|
||||
index b8581fa..883b125 100644
|
||||
--- a/src/google/protobuf/stubs/atomicops.h
|
||||
+++ b/src/google/protobuf/stubs/atomicops.h
|
||||
@@ -185,7 +185,7 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
|
||||
#elif defined(__pnacl__)
|
||||
#include <google/protobuf/stubs/atomicops_internals_pnacl.h>
|
||||
#else
|
||||
-GOOGLE_PROTOBUF_ATOMICOPS_ERROR
|
||||
+#include <google/protobuf/stubs/atomicops_internals_generic_gcc.h>
|
||||
#endif
|
||||
|
||||
// Unknown.
|
||||
diff --git a/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h b/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
|
||||
new file mode 100644
|
||||
index 0000000..3fc2a9b
|
||||
--- /dev/null
|
||||
+++ b/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
|
||||
@@ -0,0 +1,139 @@
|
||||
+// Protocol Buffers - Google's data interchange format
|
||||
+// Copyright 2013 Red Hat Inc. All rights reserved.
|
||||
+// http://code.google.com/p/protobuf/
|
||||
+//
|
||||
+// Redistribution and use in source and binary forms, with or without
|
||||
+// modification, are permitted provided that the following conditions are
|
||||
+// met:
|
||||
+//
|
||||
+// * Redistributions of source code must retain the above copyright
|
||||
+// notice, this list of conditions and the following disclaimer.
|
||||
+// * Redistributions in binary form must reproduce the above
|
||||
+// copyright notice, this list of conditions and the following disclaimer
|
||||
+// in the documentation and/or other materials provided with the
|
||||
+// distribution.
|
||||
+// * Neither the name of Red Hat Inc. nor the names of its
|
||||
+// contributors may be used to endorse or promote products derived from
|
||||
+// this software without specific prior written permission.
|
||||
+//
|
||||
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
+
|
||||
+// This file is an internal atomic implementation, use atomicops.h instead.
|
||||
+
|
||||
+#ifndef GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_GENERIC_GCC_H_
|
||||
+#define GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_GENERIC_GCC_H_
|
||||
+
|
||||
+namespace google {
|
||||
+namespace protobuf {
|
||||
+namespace internal {
|
||||
+
|
||||
+inline Atomic32 NoBarrier_CompareAndSwap(volatile Atomic32* ptr,
|
||||
+ Atomic32 old_value,
|
||||
+ Atomic32 new_value) {
|
||||
+ __atomic_compare_exchange_n(ptr, &old_value, new_value, true,
|
||||
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED);
|
||||
+ return old_value;
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr,
|
||||
+ Atomic32 new_value) {
|
||||
+ return __atomic_exchange_n(ptr, new_value, __ATOMIC_RELAXED);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr,
|
||||
+ Atomic32 increment) {
|
||||
+ return __atomic_add_fetch(ptr, increment, __ATOMIC_RELAXED);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 Barrier_AtomicIncrement(volatile Atomic32* ptr,
|
||||
+ Atomic32 increment) {
|
||||
+ return __atomic_add_fetch(ptr, increment, __ATOMIC_SEQ_CST);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 Acquire_CompareAndSwap(volatile Atomic32* ptr,
|
||||
+ Atomic32 old_value,
|
||||
+ Atomic32 new_value) {
|
||||
+ __atomic_compare_exchange(ptr, &old_value, &new_value, true,
|
||||
+ __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);
|
||||
+ return old_value;
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 Release_CompareAndSwap(volatile Atomic32* ptr,
|
||||
+ Atomic32 old_value,
|
||||
+ Atomic32 new_value) {
|
||||
+ __atomic_compare_exchange_n(ptr, &old_value, new_value, true,
|
||||
+ __ATOMIC_RELEASE, __ATOMIC_ACQUIRE);
|
||||
+ return old_value;
|
||||
+}
|
||||
+
|
||||
+inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {
|
||||
+ __atomic_store_n(ptr, value, __ATOMIC_RELAXED);
|
||||
+}
|
||||
+
|
||||
+inline void MemoryBarrier() {
|
||||
+ __sync_synchronize();
|
||||
+}
|
||||
+
|
||||
+inline void Acquire_Store(volatile Atomic32* ptr, Atomic32 value) {
|
||||
+ __atomic_store_n(ptr, value, __ATOMIC_ACQUIRE);
|
||||
+}
|
||||
+
|
||||
+inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
|
||||
+ __atomic_store_n(ptr, value, __ATOMIC_RELEASE);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
|
||||
+ return __atomic_load_n(ptr, __ATOMIC_RELAXED);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
|
||||
+ return __atomic_load_n(ptr, __ATOMIC_ACQUIRE);
|
||||
+}
|
||||
+
|
||||
+inline Atomic32 Release_Load(volatile const Atomic32* ptr) {
|
||||
+ return __atomic_load_n(ptr, __ATOMIC_RELEASE);
|
||||
+}
|
||||
+
|
||||
+#ifdef __LP64__
|
||||
+
|
||||
+inline void Release_Store(volatile Atomic64* ptr, Atomic64 value) {
|
||||
+ __atomic_store_n(ptr, value, __ATOMIC_RELEASE);
|
||||
+}
|
||||
+
|
||||
+inline Atomic64 Acquire_Load(volatile const Atomic64* ptr) {
|
||||
+ return __atomic_load_n(ptr, __ATOMIC_ACQUIRE);
|
||||
+}
|
||||
+
|
||||
+inline Atomic64 Acquire_CompareAndSwap(volatile Atomic64* ptr,
|
||||
+ Atomic64 old_value,
|
||||
+ Atomic64 new_value) {
|
||||
+ __atomic_compare_exchange_n(ptr, &old_value, new_value, true,
|
||||
+ __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);
|
||||
+ return old_value;
|
||||
+}
|
||||
+
|
||||
+inline Atomic64 NoBarrier_CompareAndSwap(volatile Atomic64* ptr,
|
||||
+ Atomic64 old_value,
|
||||
+ Atomic64 new_value) {
|
||||
+ __atomic_compare_exchange_n(ptr, &old_value, new_value, true,
|
||||
+ __ATOMIC_RELAXED, __ATOMIC_RELAXED);
|
||||
+ return old_value;
|
||||
+}
|
||||
+
|
||||
+#endif // defined(__LP64__)
|
||||
+
|
||||
+} // namespace internal
|
||||
+} // namespace protobuf
|
||||
+} // namespace google
|
||||
+
|
||||
+#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_GENERIC_GCC_H_
|
||||
diff --git a/src/google/protobuf/stubs/platform_macros.h b/src/google/protobuf/stubs/platform_macros.h
|
||||
index b1df60e..db691d8 100644
|
||||
--- a/src/google/protobuf/stubs/platform_macros.h
|
||||
+++ b/src/google/protobuf/stubs/platform_macros.h
|
||||
@@ -43,6 +43,9 @@
|
||||
#elif defined(_M_IX86) || defined(__i386__)
|
||||
#define GOOGLE_PROTOBUF_ARCH_IA32 1
|
||||
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
+#elif defined(__aarch64__)
|
||||
+#define GOOGLE_PROTOBUF_ARCH_AARCH64 1
|
||||
+#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
|
||||
#elif defined(__QNX__)
|
||||
#define GOOGLE_PROTOBUF_ARCH_ARM_QNX 1
|
||||
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
@@ -54,9 +57,18 @@
|
||||
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
#elif defined(__pnacl__)
|
||||
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
-#elif defined(__ppc__)
|
||||
+#elif defined(__ppc64__) || defined(__PPC64__)
|
||||
+#define GOOGLE_PROTOBUF_ARCH_PPC64 1
|
||||
+#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
|
||||
+#elif defined(__ppc__) || defined(__PPC__)
|
||||
#define GOOGLE_PROTOBUF_ARCH_PPC 1
|
||||
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
+#elif defined(__s390x__)
|
||||
+#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
|
||||
+#define GOOGLE_PROTOBUF_ARCH_S390X 1
|
||||
+#elif defined(__s390__)
|
||||
+#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
|
||||
+#define GOOGLE_PROTOBUF_ARCH_S390 1
|
||||
#else
|
||||
#error Host architecture was not detected as supported by protobuf
|
||||
#endif
|
||||
--
|
||||
1.8.1.4
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
Fix build with emacs-24.4.
|
||||
|
||||
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18845
|
||||
|
||||
--- protobuf-2.5.0/editors/protobuf-mode.el
|
||||
+++ protobuf-2.5.0/editors/protobuf-mode.el
|
||||
@@ -66,6 +66,10 @@
|
||||
(require 'cc-mode)
|
||||
|
||||
(eval-when-compile
|
||||
+ (and (= emacs-major-version 24)
|
||||
+ (>= emacs-minor-version 4)
|
||||
+ (null emacs-repository-version)
|
||||
+ (require 'cl))
|
||||
(require 'cc-langs)
|
||||
(require 'cc-fonts))
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
--- protobuf-2.6.0/java/pom.xml.orig 2014-08-25 15:52:36.000000000 -0400
|
||||
+++ protobuf-2.6.0/java/pom.xml 2014-11-06 13:12:04.459524614 -0500
|
||||
@@ -1,160 +1,79 @@
|
||||
--- protobuf-2.5.0/java/pom.xml.orig 2013-02-26 09:58:21.000000000 -0800
|
||||
+++ protobuf-2.5.0/java/pom.xml 2013-03-09 19:16:29.581904896 -0800
|
||||
@@ -1,152 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
@ -13,7 +13,7 @@
|
|||
- </parent>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-java</artifactId>
|
||||
<version>2.6.0</version>
|
||||
<version>2.5.0</version>
|
||||
<packaging>bundle</packaging>
|
||||
<name>Protocol Buffer Java API</name>
|
||||
<description>
|
||||
|
@ -107,8 +107,6 @@
|
|||
- <arg value="../src/google/protobuf/unittest_import.proto" />
|
||||
- <arg value="../src/google/protobuf/unittest_import_public.proto" />
|
||||
- <arg value="../src/google/protobuf/unittest_mset.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/lazy_fields_lite.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/lite_equals_and_hash.proto" />
|
||||
- <arg
|
||||
- value="src/test/java/com/google/protobuf/multiple_files_test.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/nested_builders_test.proto" />
|
||||
|
@ -116,13 +114,7 @@
|
|||
- <arg value="src/test/java/com/google/protobuf/nested_extension_lite.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/non_nested_extension.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/non_nested_extension_lite.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/outer_class_name_test.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/outer_class_name_test2.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/outer_class_name_test3.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/test_bad_identifiers.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/test_check_utf8.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/test_check_utf8_size.proto" />
|
||||
- <arg value="src/test/java/com/google/protobuf/test_custom_options.proto" />
|
||||
- <arg
|
||||
- value="../src/google/protobuf/unittest_optimize_for.proto" />
|
||||
- <arg
|
||||
|
@ -149,9 +141,7 @@
|
|||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-DocURL>http://code.google.com/p/protobuf</Bundle-DocURL>
|
||||
<Bundle-SymbolicName>com.google.protobuf</Bundle-SymbolicName>
|
||||
<Export-Package>com.google.protobuf;version=2.5.0</Export-Package>
|
||||
<Export-Package>*</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
@ -161,7 +151,11 @@
|
|||
<profile>
|
||||
<id>lite</id>
|
||||
<build>
|
||||
@@ -173,45 +92,33 @@
|
||||
<plugins>
|
||||
<plugin>
|
||||
@@ -161,45 +88,33 @@
|
||||
<include>**/FieldSet.java</include>
|
||||
<include>**/GeneratedMessageLite.java</include>
|
||||
<include>**/Internal.java</include>
|
||||
<include>**/InvalidProtocolBufferException.java</include>
|
||||
<include>**/LazyStringArrayList.java</include>
|
||||
|
@ -179,8 +173,6 @@
|
|||
<include>**/RopeByteString.java</include>
|
||||
<include>**/Utf8.java</include>
|
||||
<include>**/LazyField.java</include>
|
||||
<include>**/LazyFieldLite.java</include>
|
||||
<include>**/ProtocolStringList.java</include>
|
||||
</includes>
|
||||
- <testIncludes>
|
||||
- <testInclude>**/LiteTest.java</testInclude>
|
|
@ -0,0 +1,30 @@
|
|||
diff -up protobuf-2.5.0/src/Makefile.am.generic protobuf-2.5.0/src/Makefile.am
|
||||
--- protobuf-2.5.0/src/Makefile.am.generic 2013-05-16 10:25:07.000000000 +0200
|
||||
+++ protobuf-2.5.0/src/Makefile.am 2013-05-16 10:26:15.000000000 +0200
|
||||
@@ -42,6 +42,7 @@ nobase_include_HEADERS =
|
||||
google/protobuf/stubs/atomicops_internals_arm_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_arm_qnx.h \
|
||||
google/protobuf/stubs/atomicops_internals_atomicword_compat.h \
|
||||
+ google/protobuf/stubs/atomicops_internals_generic_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_macosx.h \
|
||||
google/protobuf/stubs/atomicops_internals_mips_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_pnacl.h \
|
||||
diff -up protobuf-2.5.0/src/Makefile.in.generic protobuf-2.5.0/src/Makefile.in
|
||||
--- protobuf-2.5.0/src/Makefile.in.generic 2013-05-16 10:25:14.000000000 +0200
|
||||
+++ protobuf-2.5.0/src/Makefile.in 2013-05-16 10:27:00.000000000 +0200
|
||||
@@ -309,6 +309,7 @@ am__nobase_include_HEADERS_DIST = google
|
||||
google/protobuf/stubs/atomicops_internals_arm_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_arm_qnx.h \
|
||||
google/protobuf/stubs/atomicops_internals_atomicword_compat.h \
|
||||
+ google/protobuf/stubs/atomicops_internals_generic_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_macosx.h \
|
||||
google/protobuf/stubs/atomicops_internals_mips_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_pnacl.h \
|
||||
@@ -518,6 +519,7 @@ nobase_include_HEADERS = \
|
||||
google/protobuf/stubs/atomicops_internals_arm_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_arm_qnx.h \
|
||||
google/protobuf/stubs/atomicops_internals_atomicword_compat.h \
|
||||
+ google/protobuf/stubs/atomicops_internals_generic_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_macosx.h \
|
||||
google/protobuf/stubs/atomicops_internals_mips_gcc.h \
|
||||
google/protobuf/stubs/atomicops_internals_pnacl.h \
|
|
@ -5,26 +5,25 @@
|
|||
# Don't require gtest
|
||||
%bcond_with gtest
|
||||
|
||||
%if %{with python}
|
||||
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||
%endif
|
||||
|
||||
%global emacs_version %(pkg-config emacs --modversion)
|
||||
%global emacs_lispdir %(pkg-config emacs --variable sitepkglispdir)
|
||||
%global emacs_startdir %(pkg-config emacs --variable sitestartdir)
|
||||
|
||||
Summary: Protocol Buffers - Google's data interchange format
|
||||
Name: protobuf
|
||||
Version: 2.6.0
|
||||
Release: 2%{?dist}
|
||||
Version: 2.5.0
|
||||
Release: 12%{?dist}
|
||||
License: BSD
|
||||
Group: Development/Libraries
|
||||
Source: http://protobuf.googlecode.com/files/protobuf-%{version}.tar.bz2
|
||||
Source1: ftdetect-proto.vim
|
||||
Source2: protobuf-init.el
|
||||
Patch0: protobuf-2.5.0-emacs-24.4.patch
|
||||
Patch1: protobuf-2.5.0-fedora-gtest.patch
|
||||
Patch2: protobuf-2.6.0-java-fixes.patch
|
||||
URL: http://code.google.com/p/protobuf/
|
||||
Patch2: protobuf-2.5.0-java-fixes.patch
|
||||
Patch3: 0001-Add-generic-GCC-support-for-atomic-operations.patch
|
||||
Patch4: protobuf-2.5.0-makefile.patch
|
||||
URL: https://github.com/google/protobuf
|
||||
BuildRequires: automake autoconf libtool pkgconfig zlib-devel
|
||||
BuildRequires: emacs(bin)
|
||||
BuildRequires: emacs-el >= 24.1
|
||||
|
@ -59,7 +58,6 @@ Summary: Protocol Buffers C++ headers and libraries
|
|||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-compiler = %{version}-%{release}
|
||||
Requires: zlib-devel
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
|
@ -69,7 +67,7 @@ C++ headers and libraries
|
|||
%package static
|
||||
Summary: Static development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
Static libraries for Protocol Buffers
|
||||
|
@ -178,6 +176,7 @@ This package contains the API documentation for %{name}-java.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .emacs
|
||||
%if %{with gtest}
|
||||
rm -rf gtest
|
||||
%patch1 -p1 -b .gtest
|
||||
|
@ -188,6 +187,9 @@ chmod 644 examples/*
|
|||
rm -rf java/src/test
|
||||
%endif
|
||||
|
||||
%patch3 -p1 -b .generic-atomics
|
||||
%patch4 -p1 -b .generic-atomics-makefile
|
||||
|
||||
%build
|
||||
iconv -f iso8859-1 -t utf-8 CONTRIBUTORS.txt > CONTRIBUTORS.txt.utf8
|
||||
mv CONTRIBUTORS.txt.utf8 CONTRIBUTORS.txt
|
||||
|
@ -252,18 +254,17 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||
%postun compiler -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/libprotobuf.so.*
|
||||
%doc CHANGES.txt CONTRIBUTORS.txt COPYING.txt README.txt
|
||||
%doc CHANGES.txt CONTRIBUTORS.txt README.txt
|
||||
%license COPYING.txt
|
||||
|
||||
%files compiler
|
||||
%defattr(-, root, root, -)
|
||||
%{_bindir}/protoc
|
||||
%{_libdir}/libprotoc.so.*
|
||||
%doc COPYING.txt README.txt
|
||||
%doc README.txt
|
||||
%license COPYING.txt
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root, -)
|
||||
%dir %{_includedir}/google
|
||||
%{_includedir}/google/protobuf/
|
||||
%{_libdir}/libprotobuf.so
|
||||
|
@ -272,26 +273,21 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||
%doc examples/add_person.cc examples/addressbook.proto examples/list_people.cc examples/Makefile examples/README.txt
|
||||
|
||||
%files static
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/libprotobuf.a
|
||||
%{_libdir}/libprotoc.a
|
||||
|
||||
%files lite
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/libprotobuf-lite.so.*
|
||||
|
||||
%files lite-devel
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/libprotobuf-lite.so
|
||||
%{_libdir}/pkgconfig/protobuf-lite.pc
|
||||
|
||||
%files lite-static
|
||||
%defattr(-, root, root, -)
|
||||
%{_libdir}/libprotobuf-lite.a
|
||||
|
||||
%if %{with python}
|
||||
%files python
|
||||
%defattr(-, root, root, -)
|
||||
%dir %{python_sitelib}/google
|
||||
%{python_sitelib}/google/protobuf/
|
||||
%{python_sitelib}/protobuf-%{version}-py2.?.egg-info/
|
||||
|
@ -301,38 +297,29 @@ install -p -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{emacs_startdir}
|
|||
%endif
|
||||
|
||||
%files vim
|
||||
%defattr(-, root, root, -)
|
||||
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
|
||||
%{_datadir}/vim/vimfiles/syntax/proto.vim
|
||||
|
||||
%files emacs
|
||||
%defattr(-,root,root,-)
|
||||
%{emacs_startdir}/protobuf-init.el
|
||||
%{emacs_lispdir}/protobuf-mode.elc
|
||||
|
||||
%files emacs-el
|
||||
%defattr(-,root,root,-)
|
||||
%{emacs_lispdir}/protobuf-mode.el
|
||||
|
||||
%if %{with java}
|
||||
%files java -f java/.mfiles
|
||||
%defattr(-, root, root, -)
|
||||
%doc examples/AddPerson.java examples/ListPeople.java
|
||||
|
||||
%files javadoc -f java/.mfiles-javadoc
|
||||
%defattr(-, root, root, -)
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* 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.
|
||||
* Tue May 19 2015 Orion Poplawski <orion@cora.nwra.com> - 2.5.0-12
|
||||
- New URL
|
||||
- Cleanup spec
|
||||
- Add patch to fix emacs compilation with emacs 24.4
|
||||
- Make -static require -devel (bug #1067475)
|
||||
|
||||
* Sun Oct 19 2014 Conrad Meyer <cemeyer@uw.edu> - 2.5.0-11
|
||||
- protobuf-emacs requires emacs(bin), not emacs (rh# 1154456)
|
||||
|
|
Loading…
Reference in New Issue