From 271ebad31efa115b1e2c4355f46d9f313f13e71a Mon Sep 17 00:00:00 2001 From: zke <19966422680@163.com> Date: Fri, 8 Mar 2024 12:16:46 +0800 Subject: [PATCH] update spec for RISCV64 --- lucene.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lucene.spec b/lucene.spec index 5bc84f4..e7a87d4 100644 --- a/lucene.spec +++ b/lucene.spec @@ -2,7 +2,7 @@ Summary: High-performance, full-featured text search engine Name: lucene Version: 7.7.0 -Release: 1 +Release: 2 Epoch: 0 License: ASL 2.0 URL: http://lucene.apache.org/ @@ -218,6 +218,9 @@ sed -i 's/-filter-pom-templates/filter-pom-templates/' lucene/common-build.xml %mvn_package ":{*}-aggregator" @1 %build +%if "%{_arch}" == "riscv64" +export JAVA_TOOL_OPTIONS="-Xmx4096m" +%endif pushd %{name} find -maxdepth 2 -type d -exec mkdir -p '{}/lib' \; ant -f common-build.xml filter-pom-templates -Divy.mode=local -Dversion=%{version} -Divy.available=true @@ -362,6 +365,9 @@ popd %license lucene/LICENSE.txt lucene/NOTICE.txt %changelog +* Fri Mar 8 2024 zke_012020 - 0:7.7.0-2 +- Update spec for RISCV64 due to OOM compilation error + * Tue Aug 18 2020 Sunguoshuai - 0:7.7.0-1 - Upgrade to 7.7.0 -- Gitee