commit 40470092c3f9e211cb06507b7ccf79603fbc8f9f
Author: gil <puntogil(a)libero.it>
Date: Fri Nov 7 10:50:02 2014 +0100
Initial import (#1159976).
.gitignore | 1 +
extra166y-1.7.0.pom | 16 ++++++++
extra166y-OSGi.bnd | 18 +++++++++
extra166y-osgi-manifest.patch | 32 +++++++++++++++++
extra166y.spec | 77 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..22954f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jsr166-1.7.0.tar.xz
diff --git a/extra166y-1.7.0.pom b/extra166y-1.7.0.pom
new file mode 100644
index 0000000..5429ac3
--- /dev/null
+++ b/extra166y-1.7.0.pom
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.codehaus.jsr166-mirror</groupId>
+ <artifactId>extra166y</artifactId>
+ <version>1.7.0</version>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/extra166y-OSGi.bnd b/extra166y-OSGi.bnd
new file mode 100644
index 0000000..de5fba0
--- /dev/null
+++ b/extra166y-OSGi.bnd
@@ -0,0 +1,18 @@
+Export-Package: extra166y;uses:="sun.misc";version="@VERSION@"
+Implementation-Title: Extra166y
+Implementation-Version: @VERSION@
+Built-By: ${user.name}
+Specification-Vendor: Doug Lea
+Bundle-Name: extra166y
+Created-By: ${java.version} (${java.vendor})
+Implementation-Vendor: Doug Lea
+Bundle-Vendor: Doug Lea
+Bundle-Version: @VERSION@
+Bundle-ManifestVersion: 2
+Specification-Title: Extra166y
+Bundle-Description: build
+Bundle-DocURL:
http://jsr166.codehaus.org
+Bundle-SymbolicName: extra166y
+Import-Package:
extra166y;resolution:=optional;version="@VERSION@",sun.misc;resolution:=optional
+Specification-Version: @VERSION@
+Extension-Name: extra166y
\ No newline at end of file
diff --git a/extra166y-osgi-manifest.patch b/extra166y-osgi-manifest.patch
new file mode 100644
index 0000000..ce7c06d
--- /dev/null
+++ b/extra166y-osgi-manifest.patch
@@ -0,0 +1,32 @@
+--- build.xml 2010-11-25 13:48:45.000000000 +0100
++++ build.xml-gil 2014-11-03 19:10:50.375388995 +0100
+@@ -716,7 +716,11 @@
+
+ </target>
+
+-
++ <taskdef resource="aQute/bnd/ant/taskdef.properties" >
++ <classpath>
++ <fileset dir="/usr/share/java"
includes="aqute-bnd.jar" />
++ </classpath>
++ </taskdef>
+
+ <target name="extra166yjar"
+ depends="extra166ycompile"
+@@ -724,10 +728,12 @@
+
+ <mkdir dir="${build.extra166ylib.dir}"/>
+
+- <jar destfile="${extra166yproduct.jar}" index="true">
+- <fileset dir="${build.extra166y.dir}"/>
+- </jar>
+-
++ <bnd
++ classpath="${build.extra166y.dir}"
++ failok="false"
++ exceptions="false"
++ files="extra166y.bnd"
++ output="${extra166yproduct.jar}"/>
+ </target>
+
+
diff --git a/extra166y.spec b/extra166y.spec
new file mode 100644
index 0000000..4345373
--- /dev/null
+++ b/extra166y.spec
@@ -0,0 +1,77 @@
+Name: extra166y
+Version: 1.7.0
+Release: 2%{?dist}
+Summary: Concurrency JSR-166 - Collections supporting parallel operations
+License: Public Domain
+URL:
http://gee.cs.oswego.edu/dl/concurrency-interest
+# cvs -d :pserver:anonymous@gee.cs.oswego.edu/home/jsr166/jsr166 login
+# cvs -d :pserver:anonymous@gee.cs.oswego.edu/home/jsr166/jsr166 export -r release-1_7_0
jsr166
+# available in java 7 rt.jar
+# rm -r jsr166/src/main/java
+# rm -r jsr166/src/jsr166x jsr166/.cvsignore
+# rm -r jsr166/src/jsr166y
+# rm -r jsr166/src/loops
+# rm -r jsr166/src/test/jtreg
+# rm -r jsr166/src/test/loops
+# rm -r jsr166/src/test/tck
+# find jsr166 -type f -name "*.jar" -delete
+# find jsr166 -type f -name "*.class" -delete
+# tar cJf jsr166-1.7.0.tar.xz jsr166
+Source0: jsr166-%{version}.tar.xz
+Source1:
http://repository.codehaus.org/org/codehaus/jsr166-mirror/%{name}/%{versi...
+Source2: extra166y-OSGi.bnd
+Patch0: extra166y-osgi-manifest.patch
+BuildRequires: ant
+BuildRequires: aqute-bnd
+BuildRequires: javapackages-local
+BuildRequires: junit
+BuildArch: noarch
+
+%description
+Implementation of Java collections supporting parallel operations using
+Fork-Join concurrent framework provided by JSR-166.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n jsr166
+%patch0 -p0
+
+# Use JVM jsr166
+for s in $(find . -name "*.java");do
+ sed -i "s|jsr166y.|java.util.concurrent.|" ${s}
+done
+sed -i '/configure-compiler, jsr166ycompile/d' build.xml
+
+sed -i '/<compilerarg line="${build.args}"/d' build.xml
+
+cp -p %{SOURCE2} extra166y.bnd
+sed -i "s|@VERSION@|%{version}|" extra166y.bnd
+
+%build
+
+%mvn_file org.codehaus.jsr166-mirror:%{name} %{name}
+export CLASSPATH=$(build-classpath junit)
+ant extra166yjar extra166ydist-docs
+%mvn_artifact %{SOURCE1} build/%{name}lib/%{name}.jar
+
+%install
+%mvn_install -J dist/%{name}docs
+
+%files -f .mfiles
+%doc src/main/intro.html src/main/readme
+
+%files javadoc -f .mfiles-javadoc
+%doc src/main/intro.html src/main/readme
+
+%changelog
+* Mon Nov 03 2014 gil cattaneo <puntogil(a)libero.it> 1.7.0-2
+- fix license and URL tag
+- remove unused test sources
+
+* Mon Nov 03 2014 gil cattaneo <puntogil(a)libero.it> 1.7.0-1
+- initial rpm
diff --git a/sources b/sources
index e69de29..7c961e6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+eab243873eb538267078370c31ea4441 jsr166-1.7.0.tar.xz