This commit is contained in:
parent
d41c5cee8b
commit
685e2ef902
@ -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.
22
scala.spec
22
scala.spec
@ -40,7 +40,6 @@ Source0: %{base_name}-%{version}.tar.xz
|
||||
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'
|
||||
Source3: scala.gitinfo
|
||||
Source4: http://www.scala-lang.org/files/archive/%{base_name}-%{version}.tgz
|
||||
Source23: scala-mime-info.xml
|
||||
Source24: scala.ant.d
|
||||
# Change the default classpath (SCALA_HOME)
|
||||
@ -80,6 +79,11 @@ Requires: javapackages-tools
|
||||
Requires: jline >= 2.10
|
||||
BuildArch: noarch
|
||||
%if %{with bootstrap}
|
||||
Source100: scala-compiler.jar
|
||||
Source101: scala-library.jar
|
||||
Source102: scala-reflect.jar
|
||||
%endif
|
||||
%if %{with bootstrap}
|
||||
Name: %{base_name}-bootstrap
|
||||
%else
|
||||
Name: %{base_name}
|
||||
@ -98,9 +102,7 @@ is also interoperable with Java.
|
||||
%package apidoc
|
||||
Summary: Documentation for the Scala programming language
|
||||
Group: Documentation/HTML
|
||||
%if %{without bootstrap}
|
||||
Obsoletes: %{base_name}-bootstrap-apidoc
|
||||
%endif
|
||||
|
||||
%description apidoc
|
||||
Scala is a general purpose programming language for the JVM that blends
|
||||
@ -162,7 +164,6 @@ sed -i '/exec.*pull-binary-libs.sh/d' build.xml
|
||||
%if %{with bootstrap}
|
||||
%global do_bootstrap -DdoBootstrapBuild=yes
|
||||
%global docs_target %{nil}
|
||||
tar -xzvf %{SOURCE4} --strip-components=1 %{base_name}-%{version}/lib
|
||||
%else
|
||||
%global do_bootstrap %{nil}
|
||||
%global docs_target docs
|
||||
@ -176,6 +177,10 @@ pushd lib
|
||||
ln -s $(find-jar scala/scala-library) scala-library.jar
|
||||
rm -rf 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
|
||||
pushd ant
|
||||
rm -rf ant.jar
|
||||
@ -193,8 +198,13 @@ chmod 755 tools/get-scala-*
|
||||
|
||||
%build
|
||||
|
||||
%{ant} %{do_bootstrap} \
|
||||
build %{docs_target} || exit 1
|
||||
export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}"
|
||||
|
||||
# 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} \
|
||||
build %{docs_target} || exit 1
|
||||
pushd build/pack/lib
|
||||
mv scala-library.jar scala-library.jar.no
|
||||
bnd wrap --properties %{SOURCE1} --output scala-library.jar \
|
||||
|
Loading…
x
Reference in New Issue
Block a user