Accepting request 909398 from Java:packages
bootstrap from our own binaries + build with java 8 OBS-URL: https://build.opensuse.org/request/show/909398 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/scala?expand=0&rev=7
This commit is contained in:
commit
f4902b1a18
@ -1,10 +1,10 @@
|
|||||||
<constraints>
|
<constraints>
|
||||||
<hardware>
|
<hardware>
|
||||||
<physicalmemory>
|
<physicalmemory>
|
||||||
<size unit="G">3</size>
|
<size unit="G">4</size>
|
||||||
</physicalmemory>
|
</physicalmemory>
|
||||||
<disk>
|
<disk>
|
||||||
<size unit="G">3</size>
|
<size unit="G">4</size>
|
||||||
</disk>
|
</disk>
|
||||||
</hardware>
|
</hardware>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9283119916f6bb7714e076a2840ccf22d58819b355228ed1591ae6f76929f111
|
|
||||||
size 29993772
|
|
BIN
scala-compiler.jar
(Stored with Git LFS)
Normal file
BIN
scala-compiler.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
scala-library.jar
(Stored with Git LFS)
Normal file
BIN
scala-library.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
scala-reflect.jar
(Stored with Git LFS)
Normal file
BIN
scala-reflect.jar
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 29 21:25:14 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Bootstrap the build with our own built jar instead of downloading
|
||||||
|
prebuilt binaries from www.scala-lang.org
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 26 12:30:08 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
Fri Jun 26 12:30:08 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
24
scala.spec
24
scala.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package scala
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -35,12 +35,11 @@ Release: 0
|
|||||||
Summary: A hybrid functional/object-oriented language for the JVM
|
Summary: A hybrid functional/object-oriented language for the JVM
|
||||||
License: BSD-3-Clause AND CC0-1.0 AND SUSE-Public-Domain
|
License: BSD-3-Clause AND CC0-1.0 AND SUSE-Public-Domain
|
||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://www.scala-lang.org/
|
URL: https://www.scala-lang.org/
|
||||||
Source0: %{base_name}-%{version}.tar.xz
|
Source0: %{base_name}-%{version}.tar.xz
|
||||||
Source1: scala-library-2.10.0-bnd.properties
|
Source1: scala-library-2.10.0-bnd.properties
|
||||||
# git log --pretty=format:"%H%n%ci" v%{version} | head -n 2 | sed -e 's/\-//g' -e 's/\s\+.*//g'
|
# git log --pretty=format:"%H%n%ci" v%{version} | head -n 2 | sed -e 's/\-//g' -e 's/\s\+.*//g'
|
||||||
Source3: scala.gitinfo
|
Source3: scala.gitinfo
|
||||||
Source4: http://www.scala-lang.org/files/archive/%{base_name}-%{version}.tgz
|
|
||||||
Source23: scala-mime-info.xml
|
Source23: scala-mime-info.xml
|
||||||
Source24: scala.ant.d
|
Source24: scala.ant.d
|
||||||
# Change the default classpath (SCALA_HOME)
|
# Change the default classpath (SCALA_HOME)
|
||||||
@ -69,6 +68,9 @@ BuildRequires: java-devel >= 1.7
|
|||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
BuildRequires: jline >= 2.10
|
BuildRequires: jline >= 2.10
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
|
BuildConflicts: java >= 9
|
||||||
|
BuildConflicts: java-devel >= 9
|
||||||
|
BuildConflicts: java-headless >= 9
|
||||||
Requires: jansi
|
Requires: jansi
|
||||||
Requires: java-headless >= 1.7
|
Requires: java-headless >= 1.7
|
||||||
# Require full javapackages-tools since scripts use
|
# Require full javapackages-tools since scripts use
|
||||||
@ -77,6 +79,11 @@ Requires: javapackages-tools
|
|||||||
Requires: jline >= 2.10
|
Requires: jline >= 2.10
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
|
Source100: scala-compiler.jar
|
||||||
|
Source101: scala-library.jar
|
||||||
|
Source102: scala-reflect.jar
|
||||||
|
%endif
|
||||||
|
%if %{with bootstrap}
|
||||||
Name: %{base_name}-bootstrap
|
Name: %{base_name}-bootstrap
|
||||||
%else
|
%else
|
||||||
Name: %{base_name}
|
Name: %{base_name}
|
||||||
@ -95,9 +102,7 @@ is also interoperable with Java.
|
|||||||
%package apidoc
|
%package apidoc
|
||||||
Summary: Documentation for the Scala programming language
|
Summary: Documentation for the Scala programming language
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
%if %{without bootstrap}
|
|
||||||
Obsoletes: %{base_name}-bootstrap-apidoc
|
Obsoletes: %{base_name}-bootstrap-apidoc
|
||||||
%endif
|
|
||||||
|
|
||||||
%description apidoc
|
%description apidoc
|
||||||
Scala is a general purpose programming language for the JVM that blends
|
Scala is a general purpose programming language for the JVM that blends
|
||||||
@ -159,7 +164,6 @@ sed -i '/exec.*pull-binary-libs.sh/d' build.xml
|
|||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
%global do_bootstrap -DdoBootstrapBuild=yes
|
%global do_bootstrap -DdoBootstrapBuild=yes
|
||||||
%global docs_target %{nil}
|
%global docs_target %{nil}
|
||||||
tar -xzvf %{SOURCE4} --strip-components=1 %{base_name}-%{version}/lib
|
|
||||||
%else
|
%else
|
||||||
%global do_bootstrap %{nil}
|
%global do_bootstrap %{nil}
|
||||||
%global docs_target docs
|
%global docs_target docs
|
||||||
@ -173,6 +177,10 @@ pushd lib
|
|||||||
ln -s $(find-jar scala/scala-library) scala-library.jar
|
ln -s $(find-jar scala/scala-library) scala-library.jar
|
||||||
rm -rf scala-reflect.jar
|
rm -rf scala-reflect.jar
|
||||||
ln -s $(find-jar scala/scala-reflect) scala-reflect.jar
|
ln -s $(find-jar scala/scala-reflect) scala-reflect.jar
|
||||||
|
%else
|
||||||
|
cp %{SOURCE100} scala-compiler.jar
|
||||||
|
cp %{SOURCE101} scala-library.jar
|
||||||
|
cp %{SOURCE102} scala-reflect.jar
|
||||||
%endif
|
%endif
|
||||||
pushd ant
|
pushd ant
|
||||||
rm -rf ant.jar
|
rm -rf ant.jar
|
||||||
@ -195,7 +203,7 @@ export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}"
|
|||||||
# Add the -verbose flag to scalac on zero architectures. The build
|
# 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
|
# is slow, OBS thinks it is stuck and kills it before it has chance
|
||||||
# to finish
|
# to finish
|
||||||
%ant \
|
%{ant} \
|
||||||
build %{docs_target} || exit 1
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user