[avro] No hadoop on ARM (yet)

Peter Robinson pbrobinson at fedoraproject.org
Fri Sep 12 11:18:49 UTC 2014


commit 2bd728133874a9546031fbfd90d28b018ca438a2
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Fri Sep 12 12:18:35 2014 +0100

    No hadoop on ARM (yet)

 avro.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/avro.spec b/avro.spec
index 11e8bf9..c99be6f 100644
--- a/avro.spec
+++ b/avro.spec
@@ -1,6 +1,6 @@
 Name:             avro
 Version:          1.7.5
-Release:          8%{?dist}
+Release:          9%{?dist}
 Summary:          Data serialization system
 Group:            Development/Libraries
 License:          ASL 2.0
@@ -31,8 +31,10 @@ BuildRequires:    jackson
 BuildRequires:    snappy-java
 BuildRequires:    paranamer
 BuildRequires:    slf4j
+%ifnarch %{arm} aarch64
 BuildRequires:    hadoop-client
 BuildRequires:    hadoop-mapreduce
+%endif
 BuildRequires:    libthrift-java
 BuildRequires:    mvn(io.netty:netty:3)
 
@@ -70,17 +72,17 @@ Summary:          Apache Avro IPC
 %description  ipc
 Avro inter-process communication components
 
+# Hadoop is not available on ARM (yet)
+# https://bugzilla.redhat.com/show_bug.cgi?id=999971
+%ifnarch %{arm} aarch64
 %package mapred
 Summary:          Apache Avro Mapred API
 Requires:         hadoop-client
 Requires:         hadoop-mapreduce
 
-# Hadoop is not available on ARM (yet)
-# https://bugzilla.redhat.com/show_bug.cgi?id=999971
-ExcludeArch:      %{arm}
-
 %description  mapred
 An org.apache.hadoop.mapred compatible API for using Avro Serialization in Hadoop
+%endif
 
 %package protobuf
 Summary:          Apache Avro Protobuf Compatibility
@@ -157,8 +159,10 @@ sed -i "s|>3.4.0.Final<|>3<|" lang/java/pom.xml
 %files ipc -f .mfiles-ipc
 %doc LICENSE.txt NOTICE.txt
 
+%ifnarch %{arm} aarch64
 %files mapred -f .mfiles-mapred
 %doc LICENSE.txt NOTICE.txt
+%endif
 
 %files protobuf -f .mfiles-protobuf
 %doc LICENSE.txt NOTICE.txt
@@ -170,6 +174,9 @@ sed -i "s|>3.4.0.Final<|>3<|" lang/java/pom.xml
 %doc LICENSE.txt NOTICE.txt
 
 %changelog
+* Fri Sep 12 2014 Peter Robinson <pbrobinson at fedoraproject.org> 1.7.5-9
+- No hadoop on ARM (yet)
+
 * Sun Jun 29 2014 Ricardo Arguello <ricardo at fedoraproject.org> - 1.7.5-8
 - Fix to compile with OpenJDK 8
 


More information about the scm-commits mailing list