diff --git a/_service b/_service new file mode 100644 index 0000000..f6b6bb1 --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + git + git://github.com/scala/scala.git + v2.10.7 + 2.10.7 + scala + lib/*.jar + lib/ant/*.jar + test + tools/*jar + src/compiler/scala/tools/nsc/doc/html/resource/lib + + + *.tar + xz + + + diff --git a/generate-tarball.sh b/generate-tarball.sh deleted file mode 100644 index 88fbb28..0000000 --- a/generate-tarball.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -set -e - -name=scala -version="$(sed -n 's/Version:\s*//p' *.spec)" - -# RETRIEVE -wget "https://github.com/scala/scala/archive/v${version}.tar.gz" -O "${name}-${version}.orig.tar.gz" - -rm -rf tarball-tmp -mkdir tarball-tmp -cd tarball-tmp -tar xf "../${name}-${version}.orig.tar.gz" - -# CLEAN TARBALL -find -name '*.jar' -delete -find -name '*.class' -delete -# Possibly proprietary code -find -name '*.dll' -delete -find -name '*.so' -delete -# Contains minified js of uncertain origin -rm -r */src/compiler/scala/tools/nsc/doc/html/resource/lib - -tar czf "../${name}-${version}.tar.gz" * -cd .. -rm -r tarball-tmp "${name}-${version}.orig.tar.gz" diff --git a/get-source.sh b/get-source.sh deleted file mode 100644 index 1280c66..0000000 --- a/get-source.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -set -x - -VER="$(sed -n 's/Version:\s*//p' *.spec)" - -FNS=scala-$VER - -rm -rf $FNS/ -git clone git://github.com/scala/scala.git $FNS -cd $FNS -git checkout v$VER -git log --pretty=format:"%H%n%ci" v$VER | head -n 2 | \ - sed -e 's/\-//g' -e 's/\s\+.*//g' >../scala.gitinfo -cd .. -tar -zcf $FNS.tgz --exclude $FNS/.git $FNS/ -cd $FNS -./pull-binary-libs.sh -rm -rf lib/jline.jar -tar -zcf ../$FNS-bootstrap.tgz --exclude .git lib/*.jar -cd .. -rm -rf $FNS/ diff --git a/scala-2.10-jline.patch b/scala-2.10-jline.patch index eff11a7..bb84b27 100644 --- a/scala-2.10-jline.patch +++ b/scala-2.10-jline.patch @@ -1,8 +1,6 @@ -diff --git a/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala b/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala -index 10f9724..2970276 100644 ---- a/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala -+++ b/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala -@@ -42,7 +42,7 @@ class JLineReader(_completion: => Completion) extends InteractiveReader { +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala 2019-11-27 16:04:03.141644641 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/JLineReader.scala 2019-11-27 16:04:24.461764259 +0100 +@@ -45,7 +45,7 @@ def readOneKey(prompt: String) = { this.print(prompt) this.flush() @@ -11,24 +9,20 @@ index 10f9724..2970276 100644 } def eraseLine() = consoleReader.resetPromptLine("", "", 0) def redrawLineAndFlush(): Unit = { flush() ; drawLine() ; flush() } -diff --git a/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala b/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala -index dddfb1b..e598ac5 100644 ---- a/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala -+++ b/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala -@@ -13,7 +13,7 @@ import FileBackedHistory._ +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala 2019-11-27 16:04:03.141644641 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/FileBackedHistory.scala 2019-11-27 16:05:14.034042924 +0100 +@@ -15,7 +15,7 @@ /** TODO: file locking. */ trait FileBackedHistory extends JLineHistory with JPersistentHistory { - def maxSize: Int + def maxSize: Int = 2500 - protected lazy val historyFile: File = defaultFile - private var isPersistent = true -diff --git a/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala b/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala -index 18e0ee7..fc33192 100644 ---- a/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala -+++ b/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala -@@ -13,7 +13,6 @@ package session + // For a history file in the standard location, always try to restrict permission, + // creating an empty file if none exists. +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala 2019-11-27 16:04:03.141644641 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/JLineHistory.scala 2019-11-27 16:04:24.461764259 +0100 +@@ -13,7 +13,6 @@ trait JLineHistory extends JHistory with History { def size: Int def isEmpty: Boolean @@ -36,7 +30,7 @@ index 18e0ee7..fc33192 100644 def clear(): Unit def get(index: Int): CharSequence def add(line: CharSequence): Unit -@@ -42,7 +41,8 @@ object JLineHistory { +@@ -42,7 +41,8 @@ addLineToFile(item) } } @@ -46,11 +40,9 @@ index 18e0ee7..fc33192 100644 } def apply(): JLineHistory = try new JLineFileHistory catch { case x: Exception => new SimpleHistory() } -diff --git a/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala b/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala -index 9f4e2b9..8933849 100644 ---- a/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala -+++ b/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala -@@ -10,7 +10,7 @@ package session +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala 2019-11-27 16:04:03.141644641 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/session/SimpleHistory.scala 2019-11-27 16:04:24.461764259 +0100 +@@ -10,7 +10,7 @@ import scala.collection.mutable.{ Buffer, ListBuffer } import scala.collection.JavaConverters._ @@ -59,7 +51,7 @@ index 9f4e2b9..8933849 100644 private var _index: Int = 0 private val buf: Buffer[String] = new ListBuffer[String] private def toEntries(): Seq[JEntry] = buf.zipWithIndex map { case (x, i) => Entry(i, x) } -@@ -32,27 +32,27 @@ class SimpleHistory extends JLineHistory { +@@ -32,27 +32,27 @@ def maxSize: Int = 2500 def last = if (isEmpty) fail("last") else buf.last diff --git a/scala-2.10.3-bootstrap.tgz b/scala-2.10.3-bootstrap.tgz deleted file mode 100644 index 79b8276..0000000 --- a/scala-2.10.3-bootstrap.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc73608f70f4339bd9fbaec71b029d7e8d41007d80a18837e77a21d261af9a76 -size 27218643 diff --git a/scala-2.10.4.tgz b/scala-2.10.4.tgz deleted file mode 100644 index 5fea6c2..0000000 --- a/scala-2.10.4.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b46db638c5c6066eee21f00c447fc13d1dfedbfb60d07db544e79db67ba810c3 -size 29937534 diff --git a/scala-2.10.6.tar.gz b/scala-2.10.6.tar.gz deleted file mode 100644 index e340f8c..0000000 --- a/scala-2.10.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4b5effeefd1da8bab690f5c1251ed9da1dd2d8f375a2aa6deaa08aa1dca9dfd8 -size 5490733 diff --git a/scala-2.10.7-jdk11.patch b/scala-2.10.7-jdk11.patch new file mode 100644 index 0000000..17e3f93 --- /dev/null +++ b/scala-2.10.7-jdk11.patch @@ -0,0 +1,147 @@ +--- scala-2.10.7/src/compiler/scala/tools/cmd/gen/AnyVals.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/cmd/gen/AnyVals.scala 2019-11-28 13:37:03.940143371 +0100 +@@ -183,7 +183,7 @@ + } + def objectLines = { + val comp = if (isCardinal) cardinalCompanion else floatingCompanion +- (comp + allCompanions + "\n" + nonUnitCompanions).trim.lines.toList ++ implicitCoercions map interpolate ++ (comp + allCompanions + "\n" + nonUnitCompanions).trim.linesIterator.toList ++ implicitCoercions map interpolate + } + + /** Makes a set of binary operations based on the given set of ops, args, and resultFn. +@@ -225,7 +225,7 @@ + def representation = repr.map(", a " + _).getOrElse("") + + def indent(s: String) = if (s == "") "" else " " + s +- def indentN(s: String) = s.lines map indent mkString "\n" ++ def indentN(s: String) = s.linesIterator map indent mkString "\n" + + def boxUnboxImpls = Map( + "@boxImpl@" -> "%s.valueOf(x)".format(boxedName), +@@ -453,9 +453,9 @@ + def ^(x: Boolean): Boolean + + override def getClass(): Class[Boolean] = null +- """.trim.lines.toList ++ """.trim.linesIterator.toList + +- def objectLines = interpolate(allCompanions + "\n" + nonUnitCompanions).lines.toList ++ def objectLines = interpolate(allCompanions + "\n" + nonUnitCompanions).linesIterator.toList + } + object U extends AnyValRep("Unit", None, "void") { + override def classDoc = """ +@@ -468,7 +468,7 @@ + def classLines = List( + """override def getClass(): Class[Unit] = null""" + ) +- def objectLines = interpolate(allCompanions).lines.toList ++ def objectLines = interpolate(allCompanions).linesIterator.toList + + override def boxUnboxImpls = Map( + "@boxImpl@" -> "scala.runtime.BoxedUnit.UNIT", +--- scala-2.10.7/src/compiler/scala/tools/nsc/doc/base/CommentFactoryBase.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/doc/base/CommentFactoryBase.scala 2019-11-28 13:38:10.892515720 +0100 +@@ -209,7 +209,7 @@ + SafeTags.replaceAllIn(javadoclessComment, { mtch => + java.util.regex.Matcher.quoteReplacement(safeTagMarker + mtch.matched + safeTagMarker) + }) +- markedTagComment.lines.toList map (cleanLine(_)) ++ markedTagComment.linesIterator.toList map (cleanLine(_)) + } + + /** Parses a comment (in the form of a list of lines) to a `Comment` +--- scala-2.10.7/src/compiler/scala/tools/nsc/interactive/tests/InteractiveTestSettings.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interactive/tests/InteractiveTestSettings.scala 2019-11-28 13:39:14.716870692 +0100 +@@ -58,7 +58,7 @@ + val str = try File(optsFile).slurp() catch { + case e: java.io.IOException => "" + } +- str.lines.filter(!_.startsWith(CommentStartDelimiter)).mkString(" ") ++ str.linesIterator.filter(!_.startsWith(CommentStartDelimiter)).mkString(" ") + } + + override protected def printClassPath(implicit reporter: Reporter) { +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/AbstractFileClassLoader.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/AbstractFileClassLoader.scala 2019-11-28 13:57:53.339092518 +0100 +@@ -85,7 +85,7 @@ + defineClass(name, bytes, 0, bytes.length) + } + +- private val packages = mutable.Map[String, Package]() ++ private val whatever = mutable.Map[String, Package]() + + override def definePackage(name: String, specTitle: String, specVersion: String, specVendor: String, implTitle: String, implVersion: String, implVendor: String, sealBase: URL): Package = { + throw new UnsupportedOperationException() +@@ -94,7 +94,7 @@ + override def getPackage(name: String): Package = { + findAbstractDir(name) match { + case null => super.getPackage(name) +- case file => packages.getOrElseUpdate(name, { ++ case file => whatever.getOrElseUpdate(name, { + val ctor = classOf[Package].getDeclaredConstructor(classOf[String], classOf[String], classOf[String], classOf[String], classOf[String], classOf[String], classOf[String], classOf[URL], classOf[ClassLoader]) + ctor.setAccessible(true) + ctor.newInstance(name, null, null, null, null, null, null, null, this) +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/Formatting.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/Formatting.scala 2019-11-28 13:43:44.162369415 +0100 +@@ -25,7 +25,7 @@ + def indentCode(code: String) = { + val indent = spaces(code) + stringFromWriter(str => +- for (line <- code.lines) { ++ for (line <- code.linesIterator) { + str print indent + str print (line + "\n") + str.flush() +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/IMain.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/IMain.scala 2019-11-28 13:47:12.735529430 +0100 +@@ -454,7 +454,7 @@ + // enclosing in braces it is constructed like "val x =\n5 // foo". + private def removeComments(line: String): String = { + showCodeIfDebugging(line) // as we're about to lose our // show +- line.lines map (s => s indexOf "//" match { ++ line.linesIterator map (s => s indexOf "//" match { + case -1 => s + case idx => s take idx + }) mkString "\n" +@@ -580,7 +580,7 @@ + if (printResults && result != "") + printMessage(result stripSuffix "\n") + else if (isReplDebug) // show quiet-mode activity +- printMessage(result.trim.lines map ("[quiet] " + _) mkString "\n") ++ printMessage(result.trim.linesIterator map ("[quiet] " + _) mkString "\n") + + // Book-keeping. Have to record synthetic requests too, + // as they may have been issued for information, e.g. :type +@@ -1161,8 +1161,8 @@ + /** Secret bookcase entrance for repl debuggers: end the line + * with "// show" and see what's going on. + */ +- def isShow = code.lines exists (_.trim endsWith "// show") +- def isShowRaw = code.lines exists (_.trim endsWith "// raw") ++ def isShow = code.linesIterator exists (_.trim endsWith "// show") ++ def isShowRaw = code.linesIterator exists (_.trim endsWith "// raw") + + // old style + beSilentDuring(parse(code)) foreach { ts => +--- scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/Power.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/compiler/scala/tools/nsc/interpreter/Power.scala 2019-11-28 13:46:26.087269973 +0100 +@@ -150,7 +150,7 @@ + // Then we import everything from $r. + intp interpret ("import " + intp.pathToTerm("$r") + "._") + // And whatever else there is to do. +- init.lines foreach (intp interpret _) ++ init.linesIterator foreach (intp interpret _) + } + def valsDescription: String = { + def to_str(m: Symbol) = "%12s %s".format( +--- scala-2.10.7/src/scalacheck/org/scalacheck/Pretty.scala 2017-11-01 04:52:36.000000000 +0100 ++++ scala-2.10.7/src/scalacheck/org/scalacheck/Pretty.scala 2019-11-28 14:07:48.018400196 +0100 +@@ -45,7 +45,7 @@ + else s.substring(0, length) / break(lead+s.substring(length), lead, length) + + def format(s: String, lead: String, trail: String, width: Int) = +- s.lines.map(l => break(lead+l+trail, " ", width)).mkString("\n") ++ s.linesIterator.map(l => break(lead+l+trail, " ", width)).mkString("\n") + + implicit def prettyAny(t: Any) = Pretty { p => t.toString } + diff --git a/scala-2.10.7-source6.patch b/scala-2.10.7-source6.patch new file mode 100644 index 0000000..c38f893 --- /dev/null +++ b/scala-2.10.7-source6.patch @@ -0,0 +1,20 @@ +--- scala-2.10.7/build.xml 2019-11-27 17:42:56.487021401 +0100 ++++ scala-2.10.7/build.xml 2019-11-27 17:43:39.491264930 +0100 +@@ -757,7 +757,7 @@ + destdir="${@{project}-classes}" + classpath="${@{project}-classes}" + includes="**/*.java" +- target="1.6" source="1.5" ++ target="1.6" source="1.6" + compiler="javac1.6" + includeantruntime="false" > + +@@ -793,7 +793,7 @@ + includes="**/*.java" + excludes="@{excludes}" + includeantruntime="false" +- target="1.6" source="1.5"> ++ target="1.6" source="1.6"> + + + diff --git a/scala-2.10.7.tar.xz b/scala-2.10.7.tar.xz new file mode 100644 index 0000000..a9a617e --- /dev/null +++ b/scala-2.10.7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0deeee6a636b0da742b4880ae62215aad6f5aa4e0ec8a3b0ce386c40edc53674 +size 2864660 diff --git a/scala-2.10.7.tgz b/scala-2.10.7.tgz new file mode 100644 index 0000000..758d584 --- /dev/null +++ b/scala-2.10.7.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9283119916f6bb7714e076a2840ccf22d58819b355228ed1591ae6f76929f111 +size 29993772 diff --git a/scala-bootstript.xml b/scala-bootstript.xml deleted file mode 100644 index b30caa1..0000000 --- a/scala-bootstript.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/scala.changes b/scala.changes index 8ec35a5..726495e 100644 --- a/scala.changes +++ b/scala.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu Nov 28 14:27:20 UTC 2019 - Fridrich Strba + +- Upgrade to upstream version 2.10.7 + * Can be built and used with java 11 +- Get sources by a source service instead of a custom script +- Clean a bit the spec file and remove unnecessary sources +- Added patches: + * scala-2.10.7-source6.patch + + Build not only with target level 6, but also with source + level 6, in order to be able to build with jdk9+ + * scala-2.10.7-jdk11.patch + + Fix type conflict with jdk11's java.lang.String.lines + ------------------------------------------------------------------- Tue Nov 26 10:56:50 UTC 2019 - Fridrich Strba diff --git a/scala.gitinfo b/scala.gitinfo index 4a1b8cd..5aee872 100644 --- a/scala.gitinfo +++ b/scala.gitinfo @@ -1,2 +1,2 @@ -bda53196ebbeb1369c70f3d1ec066796c06a6409 -20150918 +89e57bc7ad4a1809864b637617456736fd7b8101 +20171031 diff --git a/scala.spec b/scala.spec index 4e2a595..144cabe 100644 --- a/scala.spec +++ b/scala.spec @@ -29,34 +29,22 @@ %global jline2_jar %{_javadir}/jline/jline.jar %global scaladir %{_datadir}/scala %global base_name scala -%global want_jdk8 1 %define __requires_exclude .*org\.apache\.ant.* -Version: 2.10.6 +Version: 2.10.7 Release: 0 Summary: A hybrid functional/object-oriented language for the JVM License: BSD-3-Clause AND CC0-1.0 AND SUSE-Public-Domain Group: Development/Libraries/Java URL: http://www.scala-lang.org/ -# ./generate-tarball.sh -Source0: %{base_name}-%{version}.tar.gz +Source0: %{base_name}-%{version}.tar.xz Source1: scala-library-2.10.0-bnd.properties -# Bootstrap file generated by ./get-sources.sh -Source2: scala-2.10.3-bootstrap.tgz -# git information generated by ./get-sources.sh +# git log --pretty=format:"%H%n%ci" v%{version} | head -n 2 | sed -e 's/\-//g' -e 's/\s\+.*//g' Source3: scala.gitinfo -# we need this binary copy of the scala 2.10.4 compiler -# for bootstrapping under Java 8; this can be removed if -# necessary after Scala 2.10.5 is released if it uses 2.10.4 -# for bootstrapping. -Source4: http://www.scala-lang.org/files/archive/scala-2.10.4.tgz -# Remove bundled binaries which are possibly proprietary -Source5: generate-tarball.sh -Source6: get-source.sh +Source4: http://www.scala-lang.org/files/archive/%{base_name}-%{version}.tgz Source21: scala.keys Source22: scala.mime Source23: scala-mime-info.xml Source24: scala.ant.d -Source31: scala-bootstript.xml # Change the default classpath (SCALA_HOME) Patch1: scala-2.10.0-tooltemplate.patch # Use system jline2 instead of bundled jline2 @@ -71,6 +59,8 @@ Patch8: scala-2.10.4-build_xml.patch # Stop scaladoc from trying to bundle non-existent resources that were # removed due to being in object form only, whithout sources Patch9: scala-2.10.6-scaladoc-resources.patch +Patch10: scala-2.10.7-source6.patch +Patch11: scala-2.10.7-jdk11.patch BuildRequires: ant BuildRequires: ant-contrib BuildRequires: ant-junit @@ -80,7 +70,7 @@ BuildRequires: java-devel >= 1.7 BuildRequires: javapackages-local BuildRequires: jline >= 2.10 BuildRequires: junit -BuildConflicts: java-devel >= 9 +#BuildConflicts: java-devel >= 9 Requires: jansi Requires: java-headless >= 1.7 # Require full javapackages-tools since scripts use @@ -143,9 +133,10 @@ the Scala ant tasks. %patch3 -p1 -b .compiler-pom %patch4 -p1 -b .jdk7 %patch6 -p1 -b .rvk -# %patch7 -p1 -b .bc %patch8 -p1 -b .bld %patch9 -p1 -b .scaladoc +%patch10 -p1 -b .source6 +%patch11 -p1 -b .jdk11 echo "starr.version=2.10.4\nstarr.use.released=0" > starr.number @@ -158,10 +149,7 @@ sed -i '/exec.*pull-binary-libs.sh/d' build.xml %if %{with bootstrap} %global do_bootstrap -DdoBootstrapBuild=yes -tar -xzvf %{SOURCE2} -%if %{want_jdk8} -tar -xzvf %{SOURCE4} --strip-components=1 scala-2.10.4/lib -%endif +tar -xzvf %{SOURCE4} --strip-components=1 %{base_name}-%{version}/lib %else %global do_bootstrap %{nil} %endif @@ -183,8 +171,6 @@ pushd lib popd popd -cp -rf %{SOURCE31} . - sed -i -e 's!@JLINE@!%{jline2_jar}!g' build.xml echo echo $(head -n 1 %{SOURCE3}) > tools/get-scala-commit-sha @@ -199,7 +185,6 @@ export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}" # is slow, OBS thinks it is stuck and kills it before it has chance # to finish %ant \ - -Dscalac.args=-verbose \ build || exit 1 pushd build/pack/lib mv scala-library.jar scala-library.jar.no @@ -207,27 +192,6 @@ bnd wrap --properties %{SOURCE1} --output scala-library.jar \ --version "%{version}" scala-library.jar.no popd -%check - -# these tests fail, but their failures appear spurious -rm -f test/files/run/parserJavaIdent.scala -rm -rf test/files/presentation/implicit-member -rm -rf test/files/presentation/t5708 -rm -rf test/files/presentation/ide-bug-1000349 -rm -rf test/files/presentation/ide-bug-1000475 -rm -rf test/files/presentation/callcc-interpreter -rm -rf test/files/presentation/ide-bug-1000531 -rm -rf test/files/presentation/visibility -rm -rf test/files/presentation/ping-pong - -rm -f test/osgi/src/ReflectionToolboxTest.scala - -# fails under mock but not under rpmbuild -rm -f test/files/run/t6223.scala - -## Most test dependencies still aren't available in Fedora -# ant test - %install install -d %{buildroot}%{_bindir}