Package init
This commit is contained in:
parent
e89d5ddf38
commit
174cbfd201
16
extra166y-1.7.0.pom
Normal file
16
extra166y-1.7.0.pom
Normal file
@ -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>
|
||||||
18
extra166y-OSGi.bnd
Normal file
18
extra166y-OSGi.bnd
Normal file
@ -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
|
||||||
28
extra166y-osgi-manifest.patch
Normal file
28
extra166y-osgi-manifest.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- build.xml 2010-11-25 13:48:45.000000000 +0100
|
||||||
|
+++ build.xml-gil 2014-11-03 19:10:50.375388995 +0100
|
||||||
|
@@ -716,7 +716,7 @@
|
||||||
|
|
||||||
|
</target>
|
||||||
|
|
||||||
|
-
|
||||||
|
+ <taskdef resource="aQute/bnd/ant/taskdef.properties"/>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
70
extra166y.spec
Normal file
70
extra166y.spec
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
Name: extra166y
|
||||||
|
Version: 1.7.0
|
||||||
|
Release: 11
|
||||||
|
Summary: A collection that supports parallel operations
|
||||||
|
License: Public Domain
|
||||||
|
URL: http://gee.cs.oswego.edu/dl/concurrency-interest
|
||||||
|
Source0: jsr166-%{version}.tar.xz
|
||||||
|
Source1: http://repository.codehaus.org/org/codehaus/jsr166-mirror/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
|
Source2: extra166y-OSGi.bnd
|
||||||
|
|
||||||
|
Patch0: extra166y-osgi-manifest.patch
|
||||||
|
|
||||||
|
BuildRequires: ant aqute-bnd >= 3.2.0-2 javapackages-local junit
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Provides: extra166y-javadoc = %{version}-%{release}
|
||||||
|
Obsoletes: extra166y-javadoc < %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
A collection that supports parallel operations
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n jsr166 -p0
|
||||||
|
|
||||||
|
for java_file in $(find . -name "*.java");
|
||||||
|
do
|
||||||
|
sed -i "s|jsr166y.|java.util.concurrent.|" ${java_file}
|
||||||
|
done
|
||||||
|
|
||||||
|
sed -i '/configure-compiler, jsr166ycompile/d' build.xml
|
||||||
|
sed -i '/<compilerarg line="${build.args}"/d' build.xml
|
||||||
|
|
||||||
|
install -p %{SOURCE2} extra166y.bnd
|
||||||
|
sed -i "s|@VERSION@|%{version}|" extra166y.bnd
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%{_bindir}/python3 %{_datadir}/java-utils/mvn_file.py org.codehaus.jsr166-mirror:%{name} %{name}
|
||||||
|
export CLASSPATH=%{_datadir}/java/junit.jar
|
||||||
|
ant extra166yjar extra166ydist-docs
|
||||||
|
%{_bindir}/python3 %{_datadir}/java-utils/mvn_artifact.py %{SOURCE1} build/%{name}lib/%{name}.jar
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install -J dist/%{name}docs
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc src/main/intro.html
|
||||||
|
%{_datadir}/java/%{name}.jar
|
||||||
|
%{_datadir}/maven-poms/%{name}.pom
|
||||||
|
%{_datadir}/maven-metadata/%{name}.xml
|
||||||
|
%{_datadir}/javadoc/%{name}/*.html
|
||||||
|
%{_datadir}/javadoc/%{name}/stylesheet.css
|
||||||
|
%{_datadir}/javadoc/%{name}/script.js
|
||||||
|
%{_datadir}/javadoc/%{name}/package-list
|
||||||
|
%{_datadir}/javadoc/%{name}/%{name}/*.html
|
||||||
|
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc src/main/readme
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-11
|
||||||
|
- Package init
|
||||||
BIN
jsr166-1.7.0.tar.xz
Normal file
BIN
jsr166-1.7.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user