This commit is contained in:
parent
ab14ebb086
commit
b1ee24d914
15
scala.spec
15
scala.spec
@ -22,6 +22,9 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%endif
|
%endif
|
||||||
|
%{!?aarch64:%global aarch64 aarch64 arm64 armv8}
|
||||||
|
# Sync the list of jit architectures with java-1_8_0-openjdk package
|
||||||
|
%global jit_arches %{ix86} x86_64 ppc64 ppc64le %{aarch64} %{arm}
|
||||||
%global fullversion %{version}
|
%global fullversion %{version}
|
||||||
%global release_repository http://nexus.scala-tools.org/content/repositories/releases
|
%global release_repository http://nexus.scala-tools.org/content/repositories/releases
|
||||||
%global snapshot_repository http://nexus.scala-tools.org/content/repositories/snapshots
|
%global snapshot_repository http://nexus.scala-tools.org/content/repositories/snapshots
|
||||||
@ -93,6 +96,7 @@ Name: %{base_name}-bootstrap
|
|||||||
%else
|
%else
|
||||||
Name: %{base_name}
|
Name: %{base_name}
|
||||||
BuildRequires: %{base_name}-bootstrap
|
BuildRequires: %{base_name}-bootstrap
|
||||||
|
Provides: %{base_name}-bootstrap
|
||||||
Obsoletes: %{base_name}-bootstrap
|
Obsoletes: %{base_name}-bootstrap
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -167,7 +171,7 @@ sed -i '/is not supported by/d' build.xml
|
|||||||
sed -i '/exec.*pull-binary-libs.sh/d' build.xml
|
sed -i '/exec.*pull-binary-libs.sh/d' build.xml
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
%global do_bootstrap -DdoBootstrapBuild=yes -Dlocker.skip=1 -Dscalac.args=-verbose
|
%global do_bootstrap -DdoBootstrapBuild=yes
|
||||||
%global docs_target %{nil}
|
%global docs_target %{nil}
|
||||||
tar -xzvf %{SOURCE2}
|
tar -xzvf %{SOURCE2}
|
||||||
%if %{want_jdk8}
|
%if %{want_jdk8}
|
||||||
@ -207,7 +211,14 @@ chmod 755 tools/get-scala-*
|
|||||||
|
|
||||||
export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}"
|
export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}"
|
||||||
|
|
||||||
%ant build %{docs_target} || exit 1
|
# Add the -verbose flag to scalac on zero architectures. The build
|
||||||
|
# is slow, OBS thinks it is stuck and kills it before it has chance
|
||||||
|
# to finish
|
||||||
|
%ant \
|
||||||
|
%ifnarch %{jit_arches}
|
||||||
|
-Dscalac.args=-verbose \
|
||||||
|
%endif
|
||||||
|
build %{docs_target} || exit 1
|
||||||
pushd build/pack/lib
|
pushd build/pack/lib
|
||||||
mv scala-library.jar scala-library.jar.no
|
mv scala-library.jar scala-library.jar.no
|
||||||
bnd wrap --properties %{SOURCE1} --output scala-library.jar \
|
bnd wrap --properties %{SOURCE1} --output scala-library.jar \
|
||||||
|
Loading…
Reference in New Issue
Block a user