Update spec for RISCV64 due to OOM compilation error

(cherry picked from commit 6d227ebed793e05e1cd0188ed469fca6585e1add)
This commit is contained in:
Dingli Zhang 2024-04-08 16:35:25 +08:00 committed by openeuler-sync-bot
parent 1f5a274e5b
commit f05dd4fcac

View File

@ -2,7 +2,7 @@
Summary: High-performance, full-featured text search engine Summary: High-performance, full-featured text search engine
Name: lucene Name: lucene
Version: 7.7.0 Version: 7.7.0
Release: 1 Release: 2
Epoch: 0 Epoch: 0
License: ASL 2.0 License: ASL 2.0
URL: http://lucene.apache.org/ URL: http://lucene.apache.org/
@ -15,6 +15,7 @@ BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%if %{without jp_minimal} %if %{without jp_minimal}
BuildRequires: mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner) BuildRequires: mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner)
BuildRequires: mvn(com.ibm.icu:icu4j) mvn(commons-codec:commons-codec) BuildRequires: mvn(com.ibm.icu:icu4j) mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-logging:commons-logging) mvn(junit:junit)
BuildRequires: mvn(commons-logging:commons-logging) mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(commons-logging:commons-logging) mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.servlet:servlet-api) mvn(junit:junit) BuildRequires: mvn(javax.servlet:servlet-api) mvn(junit:junit)
BuildRequires: mvn(net.sourceforge.nekohtml:nekohtml) mvn(org.antlr:antlr4-runtime) BuildRequires: mvn(net.sourceforge.nekohtml:nekohtml) mvn(org.antlr:antlr4-runtime)
@ -90,11 +91,13 @@ Lucene Sandbox Module.
%package parent %package parent
Summary: Parent POM for Lucene Summary: Parent POM for Lucene
Requires: glassfish-servlet-api < 4.0.0
%description parent %description parent
Parent POM for Lucene. Parent POM for Lucene.
%package solr-grandparent %package solr-grandparent
Summary: Lucene Solr grandparent POM Summary: Lucene Solr grandparent POM
Requires: glassfish-servlet-api < 4.0.0
%description solr-grandparent %description solr-grandparent
Lucene Solr grandparent POM. Lucene Solr grandparent POM.
@ -105,6 +108,7 @@ Codecs for older versions of Lucene.
%package benchmark %package benchmark
Summary: Lucene Benchmarking Module Summary: Lucene Benchmarking Module
Requires: glassfish-servlet-api < 4.0.0
%description benchmark %description benchmark
Lucene Benchmarking Module. Lucene Benchmarking Module.
@ -120,12 +124,14 @@ Apache Lucene Java Test Framework.
%package expressions %package expressions
Summary: Lucene Expressions Module Summary: Lucene Expressions Module
Requires: glassfish-servlet-api < 4.0.0
%description expressions %description expressions
Dynamically computed values to sort/facet/search on based on a pluggable Dynamically computed values to sort/facet/search on based on a pluggable
grammar. grammar.
%package demo %package demo
Summary: Lucene Demo Module Summary: Lucene Demo Module
Requires: glassfish-servlet-api < 4.0.0
%description demo %description demo
Demo for Apache Lucene Java. Demo for Apache Lucene Java.
@ -283,6 +289,9 @@ popd
pushd lucene pushd lucene
%pom_disable_module opennlp analysis %pom_disable_module opennlp analysis
popd popd
%if "%{_arch}" == "riscv64"
export JAVA_TOOL_OPTIONS="-Xmx4096m"
%endif
%mvn_build -s -f %mvn_build -s -f
%install %install
@ -362,6 +371,10 @@ popd
%license lucene/LICENSE.txt lucene/NOTICE.txt %license lucene/LICENSE.txt lucene/NOTICE.txt
%changelog %changelog
* Fri May 10 2024 Dingli Zhang <dingli@iscas.ac.cn> - 0:7.7.0-2
- Update spec for RISCV64 due to OOM compilation error
- Add Requires of several packages to resolve conflicts during installation
* Tue Aug 18 2020 Sunguoshuai <sunguoshuai@huawei.com> - 0:7.7.0-1 * Tue Aug 18 2020 Sunguoshuai <sunguoshuai@huawei.com> - 0:7.7.0-1
- Upgrade to 7.7.0 - Upgrade to 7.7.0