!5 [sync] PR-3: Fix not stripped problem

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-03-07 02:29:02 +00:00 committed by Gitee
commit 35efe4e2be
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
Name: leveldbjni
Version: 1.8
Release: 20
Release: 21
Summary: A Java Native Interface to LevelDB
License: BSD
URL: https://github.com/fusesource/leveldbjni/
@ -71,6 +71,7 @@ cp -f /usr/lib/rpm/config.{sub,guess} /usr/share/automake-*/compile leveldbjni/s
%mvn_file :leveldbjni-all leveldbjni-all
%mvn_file :leveldbjni-linux64 leveldbjni-linux
export JAVA_HOME=%{_jvmdir}/java LEVELDB_HOME=%{_prefix} SNAPPY_HOME=%{_prefix}
export CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS -Wl,-s"
%mvn_build -- -Plinux64,all -Dleveldb=%{_prefix} -Dsnappy=%{_prefix}
%install
@ -84,5 +85,8 @@ export JAVA_HOME=%{_jvmdir}/java LEVELDB_HOME=%{_prefix} SNAPPY_HOME=%{_prefix}
%doc readme.md
%changelog
* Tue Mar 07 2023 wulei <wulei80@h-partners.com> - 1.8-21
- Fix not stripped problem
* Fri Dec 20 2019 yangjian<yangjian79@huawei.com> - 1.8-20
- Package init