fix build
Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
parent
9c73931b2a
commit
874b4afe45
19
avro.spec
19
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 <wangge20@h-partners.com> - 1.10.2-2
|
||||
- Fix check strip failure
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user