From c7021ba634ac6ae127722853ac1447ffe71741e9 Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Wed, 24 Aug 2022 17:39:27 +0800 Subject: [PATCH] Fix binary not striped problem (cherry picked from commit 6fed036954718275db81d356c33564ab73532444) --- rocksdb.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rocksdb.spec b/rocksdb.spec index 02c7e60..0e30fc6 100644 --- a/rocksdb.spec +++ b/rocksdb.spec @@ -1,6 +1,6 @@ Name: rocksdb Version: 6.8.1 -Release: 3 +Release: 4 Summary: A Persistent Key-Value Store for Flash and RAM Storage License: GPLv2 and Apache 2.0 License @@ -65,6 +65,7 @@ export EXTRA_CXXFLAGS=" -std=c++11 %{optflags} -ldl" export JAVA_HOME=%{_jvmdir}/java-1.8.0-openjdk export EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux" sed -i 's#\(^DEBUG_LEVEL.*=\).*$#\10#' Makefile +sed -i '2057 a\ $(AM_V_at)cd java/target;strip $(ROCKSDBJNILIB)' Makefile PORTABLE=1 %make_build rocksdbjava %install @@ -98,6 +99,9 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja %{_javadir}/%{name}jni/%{name}jni.jar %changelog +* Tue Aug 23 2022 wulei - 6.8.1-4 +- Fix binary not striped problem + * Thu 01 Jul 2021 sunguoshuai - 6.8.1-3 - Some jar packs should provides local in case of build error -- Gitee