Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a580c4c6b | ||
|
|
c6e9746798 | ||
|
|
dd7310d00f | ||
|
|
b256dbd786 |
5 changed files with 1 additions and 109 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,3 +0,0 @@
|
|||
/v0.3.1.tar.gz
|
||||
/zinc-0.3.1.pom
|
||||
/LICENSE-2.0.txt
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
From c85c912d3bdd4e4a88af4d08856a46d31b83734f Mon Sep 17 00:00:00 2001
|
||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
Date: Wed, 2 Dec 2015 06:47:06 +0100
|
||||
Subject: [PATCH] Fix file filtering
|
||||
|
||||
---
|
||||
src/main/scala/com/typesafe/zinc/Setup.scala | 2 +-
|
||||
src/main/scala/com/typesafe/zinc/Util.scala | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/main/scala/com/typesafe/zinc/Setup.scala b/src/main/scala/com/typesafe/zinc/Setup.scala
|
||||
index e6c12e2..aa3ec01 100644
|
||||
--- a/src/main/scala/com/typesafe/zinc/Setup.scala
|
||||
+++ b/src/main/scala/com/typesafe/zinc/Setup.scala
|
||||
@@ -221,7 +221,7 @@ object Setup {
|
||||
def prop(name: String) = Command + "." + name
|
||||
|
||||
def allLibs(homeDir: Option[File]): Seq[File] = {
|
||||
- homeDir map { home => (home / "lib" ** "*.jar").get } getOrElse Seq.empty
|
||||
+ homeDir map { home => (home / "lib" ** new sbt.SimpleFileFilter(f => f.toString.endsWith(".jar"))).get } getOrElse Seq.empty
|
||||
}
|
||||
|
||||
def optLib(homeDir: Option[File], jar: JarFile): Option[File] = {
|
||||
diff --git a/src/main/scala/com/typesafe/zinc/Util.scala b/src/main/scala/com/typesafe/zinc/Util.scala
|
||||
index 044789f..bddacd1 100644
|
||||
--- a/src/main/scala/com/typesafe/zinc/Util.scala
|
||||
+++ b/src/main/scala/com/typesafe/zinc/Util.scala
|
||||
@@ -128,7 +128,7 @@ object Util {
|
||||
*/
|
||||
def cleanAllClasses(dir: File): Unit = {
|
||||
import sbt.Path._
|
||||
- IO.delete((dir ** "*.class").get)
|
||||
+ IO.delete((dir ** new sbt.SimpleFileFilter(f => f.toString.endsWith(".class"))).get)
|
||||
}
|
||||
|
||||
/**
|
||||
--
|
||||
2.5.0
|
||||
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
Orphaned for 6+ weeks
|
||||
3
sources
3
sources
|
|
@ -1,3 +0,0 @@
|
|||
46014ba00f6bb4be6d6f5dd4a923a636 v0.3.1.tar.gz
|
||||
881c438f3e32360831ae5f0ac03c1e8f zinc-0.3.1.pom
|
||||
3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt
|
||||
64
zinc.spec
64
zinc.spec
|
|
@ -1,64 +0,0 @@
|
|||
Name: zinc
|
||||
Version: 0.3.1
|
||||
Release: 5%{?dist}
|
||||
Summary: Incremental scala compiler
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/typesafehub/zinc
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: https://github.com/typesafehub/zinc/archive/v%{version}.tar.gz
|
||||
Source1: http://repo1.maven.org/maven2/com/typesafe/zinc/zinc/%{version}/zinc-%{version}.pom
|
||||
# ASL mandates that the licence file be included in redistributed source
|
||||
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
|
||||
# Patch fixes compilation failure, which is probably caused by
|
||||
# incompatible Scala version
|
||||
Patch0: 0001-Fix-file-filtering.patch
|
||||
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: mvn(org.scala-lang:scala-library)
|
||||
BuildRequires: mvn(org.scala-sbt:incremental-compiler)
|
||||
BuildRequires: mvn(com.martiansoftware:nailgun-server)
|
||||
|
||||
%description
|
||||
Zinc is a stand-alone version of sbt's incremental compiler.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
rm -rf src/scriptit dist nailgun project
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
cp %{SOURCE1} pom.xml
|
||||
cp %{SOURCE2} LICENSE.txt
|
||||
|
||||
%pom_xpath_remove "pom:dependency[pom:classifier='sources']"
|
||||
%pom_change_dep :incremental-compiler org.scala-sbt:
|
||||
|
||||
%build
|
||||
scalac -cp $(build-classpath sbt nailgun) src/main/scala/com/typesafe/zinc/*
|
||||
jar cf zinc.jar com
|
||||
%mvn_artifact pom.xml zinc.jar
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Dec 2 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.1-1
|
||||
- Initial packaging
|
||||
Loading…
Add table
Add a link
Reference in a new issue