From 874b4afe451d1ea6530afa418bb56dc72c59d297 Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Fri, 18 Aug 2023 15:06:50 +0800 Subject: [PATCH] fix build Signed-off-by: cherry530 <707078654@qq.com> --- avro.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/avro.spec b/avro.spec index 09e8e3c..65ec4c1 100644 --- a/avro.spec +++ b/avro.spec @@ -3,7 +3,7 @@ Name: avro Version: 1.10.2 -Release: 2 +Release: 3 Summary: Data serialization system License: Apache-2.0 URL: http://avro.apache.org @@ -12,6 +12,8 @@ Source0: https://github.com/apache/avro/archive/refs/tags/release-1.10. # file xmvn-reactor required by mvn_install to specify which jar package should be put in rpm Source1: xmvn-reactor +ExclusiveArch: aarch64 x86_64 + BuildRequires: maven maven-local java-1.8.0-openjdk-devel Requires: java-1.8.0-openjdk @@ -75,6 +77,18 @@ pushd lang/java/tools/target rm -rf org/xerial/snappy/native/Linux/android-arm rm -rf linux/aarch64 rm -rf linux/arm +%endif +%ifarch aarch64 + rm -rf freebsd/i386 + rm -rf linux/mips64 + rm -rf linux/i386 + rm -rf linux/amd64 + rm -rf freebsd/amd64 + rm -rf org/xerial/snappy/native/SunOS/x86_64 + rm -rf org/xerial/snappy/native/SunOS/x86 + rm -rf org/xerial/snappy/native/Linux/x86_64 + rm -rf org/xerial/snappy/native/Linux/x86 + rm -rf org/xerial/snappy/native/FreeBSD/x86_64 %endif find . -name *.so | for line in `xargs`;do strip $line;done rm -rf avro-tools-%{version}.jar @@ -95,6 +109,9 @@ install -m 0755 lang/java/tools/target/avro-tools-1.10.2-nodeps.jar %{buildroot} %{_datadir}/java/avro/avro-tools-nodeps.jar %changelog +* Mon Aug 21 2023 xu_ping <707078654@qq.com> - 1.10.2-3 +- Fix aarch64 strip failure. + * Sat Mar 04 2023 Ge Wang - 1.10.2-2 - Fix check strip failure