Sync from SUSE:SLFO:Main rhino revision a7ef42b3975fd1888d0fb9cf2f2c76d5
This commit is contained in:
commit
58eb76f18f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
Rhino1_7_14_Release.tar.gz
(Stored with Git LFS)
Normal file
BIN
Rhino1_7_14_Release.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
33
rhino-1.7.14.pom
Normal file
33
rhino-1.7.14.pom
Normal file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino</artifactId>
|
||||
<version>1.7.14</version>
|
||||
<description>
|
||||
Rhino is an open-source implementation of JavaScript written entirely in Java.
|
||||
It is typically embedded into Java applications to provide scripting to end users.
|
||||
Full jar including tools, excluding the JSR-223 Script Engine wrapper.
|
||||
</description>
|
||||
<url>https://mozilla.github.io/rhino/</url>
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Mozilla Public License, Version 2.0</name>
|
||||
<url>http://www.mozilla.org/MPL/2.0/index.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:mozilla/rhino.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:mozilla/rhino.git</developerConnection>
|
||||
<url>git@github.com:mozilla/rhino.git</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>The Mozilla Foundation</name>
|
||||
<url>http://www.mozilla.org</url>
|
||||
</organization>
|
||||
</project>
|
159
rhino-build.xml
Normal file
159
rhino-build.xml
Normal file
@ -0,0 +1,159 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="rhino" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property name="project.groupId" value="org.mozilla"/>
|
||||
<property name="project.artifactId" value="rhino"/>
|
||||
<property name="project.artifactId.engine" value="rhino-engine"/>
|
||||
<property name="project.artifactId.runtime" value="rhino-runtime"/>
|
||||
<property name="project.version" value="1.7.14"/>
|
||||
|
||||
<property name="compiler.source" value="1.8"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src"/>
|
||||
<property name="build.srcDirTool" value="toolsrc"/>
|
||||
<property name="build.srcDirXmlImpl" value="xmlimplsrc"/>
|
||||
<property name="build.resourceDir" value="src"/>
|
||||
<property name="build.resourceDirTool" value="toolsrc"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
encoding="utf-8"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
<pathelement location="${build.srcDirTool}"/>
|
||||
<pathelement location="${build.srcDirXmlImpl}"/>
|
||||
</src>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}">
|
||||
<exclude name="**/*.java"/>
|
||||
</fileset>
|
||||
<fileset dir="${build.resourceDirTool}">
|
||||
<exclude name="**/*.java"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
source="${compiler.source}"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
encoding="utf-8"
|
||||
linksource="false"
|
||||
breakiterator="false">
|
||||
<sourcepath>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
<pathelement location="${build.srcDirTool}"/>
|
||||
<pathelement location="${build.srcDirXmlImpl}"/>
|
||||
</sourcepath>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${project.artifactId}-${project.version}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html, org/mozilla/javascript/engine/**, META-INF/services/**">
|
||||
<manifest>
|
||||
<attribute name="Automatic-Module-Name" value="org.mozilla.rhino"/>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-SymbolicName" value="org.mozilla.rhino"/>
|
||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||
<attribute name="Export-Package" value="org.mozilla.javascript,org.mozilla.javascript.annotations,org.mozilla.javascript.ast"/>
|
||||
<attribute name="Implementation-Title" value="Mozilla Rhino"/>
|
||||
<attribute name="Implementation-URL" value="http://www.mozilla.org/rhino"/>
|
||||
<attribute name="Implementation-Vendor" value="Mozilla Foundation"/>
|
||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||
<attribute name="Main-Class" value="org.mozilla.javascript.tools.shell.Main"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
<jar jarfile="${build.dir}/${project.artifactId.engine}-${project.version}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
includes="**/package.html, org/mozilla/javascript/engine/**, META-INF/services/**">
|
||||
<manifest>
|
||||
<attribute name="Automatic-Module-Name" value="org.mozilla.rhino.engine"/>
|
||||
<attribute name="Implementation-Title" value="Mozilla Rhino ScriptEngine"/>
|
||||
<attribute name="Implementation-URL" value="http://www.mozilla.org/rhino"/>
|
||||
<attribute name="Implementation-Vendor" value="Mozilla Foundation"/>
|
||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
<jar jarfile="${build.dir}/${project.artifactId.runtime}-${project.version}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html, org/mozilla/javascript/tools/**, org/mozilla/javascript/engine/**, META-INF/services/**">
|
||||
<manifest>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-SymbolicName" value="org.mozilla.rhino-runtime"/>
|
||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||
<attribute name="Export-Package" value="org.mozilla.javascript,org.mozilla.javascript.annotations,org.mozilla.javascript.ast"/>
|
||||
<attribute name="Implementation-Title" value="Mozilla Rhino"/>
|
||||
<attribute name="Implementation-URL" value="http://www.mozilla.org/rhino"/>
|
||||
<attribute name="Implementation-Vendor" value="Mozilla Foundation"/>
|
||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
38
rhino-engine-1.7.14.pom
Normal file
38
rhino-engine-1.7.14.pom
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino-engine</artifactId>
|
||||
<version>1.7.14</version>
|
||||
<description>
|
||||
Rhino Javascript JSR-223 Script Engine wrapper.
|
||||
</description>
|
||||
<url>https://mozilla.github.io/rhino/</url>
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Mozilla Public License, Version 2.0</name>
|
||||
<url>http://www.mozilla.org/MPL/2.0/index.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:mozilla/rhino.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:mozilla/rhino.git</developerConnection>
|
||||
<url>git@github.com:mozilla/rhino.git</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>The Mozilla Foundation</name>
|
||||
<url>http://www.mozilla.org</url>
|
||||
</organization>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino</artifactId>
|
||||
<version>1.7.14</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
31
rhino-runtime-1.7.14.pom
Normal file
31
rhino-runtime-1.7.14.pom
Normal file
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.mozilla</groupId>
|
||||
<artifactId>rhino-runtime</artifactId>
|
||||
<version>1.7.14</version>
|
||||
<description>
|
||||
Rhino JavaScript runtime jar, excludes tools & JSR-223 Script Engine wrapper.
|
||||
</description>
|
||||
<url>https://mozilla.github.io/rhino/</url>
|
||||
<parent>
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
</parent>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Mozilla Public License, Version 2.0</name>
|
||||
<url>http://www.mozilla.org/MPL/2.0/index.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:mozilla/rhino.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:mozilla/rhino.git</developerConnection>
|
||||
<url>git@github.com:mozilla/rhino.git</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>The Mozilla Foundation</name>
|
||||
<url>http://www.mozilla.org</url>
|
||||
</organization>
|
||||
</project>
|
195
rhino.changes
Normal file
195
rhino.changes
Normal file
@ -0,0 +1,195 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 13 15:42:53 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to 1.7.14
|
||||
* Release notes:
|
||||
https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md#rhino-1714
|
||||
* split into 3 packages: rhino, rhino-engine and rhino-runtime
|
||||
* build also the javadoc documentation
|
||||
* inspired by build.gradle file, write our own ant build.xml
|
||||
that produces identical jar files
|
||||
* create scripts using the %%jpackage_script macro
|
||||
* remove unnecessary dependency on jline1
|
||||
- Removed patches:
|
||||
* rhino-addOrbitManifest.patch
|
||||
* rhino-build.patch
|
||||
+ not needed since we write our own build system
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 29 12:19:30 UTC 2020 - Pedro Monreal Gonzalez <pmonreal@suse.com>
|
||||
|
||||
- Update to 1.7.7.1:
|
||||
* Release notes:
|
||||
https://github.com/mozilla/rhino/blob/master/RELEASE-NOTES.md#rhino-1771
|
||||
- Rebase patches:
|
||||
* rhino-addOrbitManifest.patch
|
||||
* rhino-build.patch
|
||||
- Remove pathes:
|
||||
* rhino-1.7R3-crosslink.patch
|
||||
* rhino-288467.patch
|
||||
* rhino-1.7-gcj.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 2 13:08:27 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build against jline1, a compatibility package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 12 11:06:56 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Do not buildrequire jline, since it is only runtime dependency
|
||||
- Do not run ant with -v and -d options during the product build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 18 16:32:33 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Actually use the rhino-js.pom file in the source package.
|
||||
- Add "org.mozilla:rhino" alias, since the later 1.7.x versions
|
||||
are distributed as such
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 06:51:14 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Don't require java-1_5_0-gcj-compat-devel, since it is bound to
|
||||
go
|
||||
- Require java-devel >= 1.6
|
||||
- Specify java source and target level 6 to allow buiding with jdk9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 15 05:49:47 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Make build with the new version of java-1_5_0-gcj-compat, where
|
||||
javac is not just a simple link to gcj, but a wrapper script that
|
||||
runs Eclipse Compiler for Java(tm)
|
||||
- Make buildable with different versions of OpenJDK
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 9 09:59:36 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Drop maven depmap so we can actually bootstrap
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 11:19:44 UTC 2017 - dziolkowski@suse.com
|
||||
|
||||
- New build dependency: javapackages-local
|
||||
- spec cleaned using spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 10 16:18:53 UTC 2017 - dimstar@opensuse.org
|
||||
|
||||
- Revert back to using gcj: it is going to stay around for a while
|
||||
longer and it helps avoiding bootstrap cycles.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 5 16:23:24 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Build with java not gcj as it gets deprecated
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 09:46:19 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Fix build with new javapackages-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 11:06:18 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Move from jpackage-utils to javapackage-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 23 11:17:16 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- disable javadoc build
|
||||
- use add_maven_depmap from new javapackages-tools
|
||||
- workaround xbean.jar definition problem
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 7 12:18:22 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- remove xerces-j2-bootstrap depenency (bnc#789163)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 18 13:23:15 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- ignore jdk7 as well
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 17 12:56:04 UTC 2012 - cfarrell@suse.com
|
||||
|
||||
- license update: MPL-1.1 or GPL-2.0+
|
||||
the code is dual licensed under a choice of MPL-1.1 or GPL-2.0+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 16 15:47:09 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- update to rhino 1_7R3 (bugfix release)
|
||||
- fix bnc#739502 - rhino-dojo.patch adds Sun proprietary code to rhino 1.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 15 13:50:34 UTC 2011 - coolo@suse.com
|
||||
|
||||
- fix license to be in spdx.org format
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 14 12:43:48 UTC 2011 - mvyskocil@suse.cz
|
||||
|
||||
- ignore openjdk for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 8 12:08:13 UTC 2010 - mvyskocil@suse.cz
|
||||
|
||||
- build ignore xml-commons-jaxp-1.3-apis
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 2 12:35:23 UTC 2010 - mvyskocil@suse.cz
|
||||
|
||||
- ignore antlr(-java) to reduce build cycles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 18 12:06:17 UTC 2009 - mvyskocil@suse.cz
|
||||
|
||||
- fixed bnc#554532 - rhino does not work at all
|
||||
* Update to 1_7R2, return back the examples
|
||||
* merged with rhino-1.7-1.r2.8.jpp6.src.rpm
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 13 09:42:42 CET 2008 - mvyskocil@suse.cz
|
||||
|
||||
- fixed bnc#444259 - rhino contains conflicting class in rhino-examples.jar
|
||||
- don't build and install a rhino-examples.jar
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 16 09:01:30 CEST 2008 - mvyskocil@suse.cz
|
||||
|
||||
- Use xerces-j2-bootstrap to prevent another build cycle
|
||||
- Added a xerces-j2 and non-bootstrap xml-commons* packages to BuildIgnore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 1 09:58:16 CEST 2008 - adrian@suse.de
|
||||
|
||||
- Use xmlbeans-mini, instead of xmlbeans in BuildRequires to
|
||||
get rid of all the new build cycles
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 8 14:14:08 CEST 2008 - mvyskocil@suse.cz
|
||||
|
||||
- Removed a src.zip - contains a non-free source codes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 5 17:13:50 CEST 2008 - mvyskocil@suse.cz
|
||||
|
||||
- Fixed a build with gcj (to prevent of a build cycles with build of openjdk6)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 5 14:42:26 CEST 2008 - mvyskocil@suse.cz
|
||||
|
||||
- Update to 1.7 (from jpackage 1.7, due some license issues in source tarball )
|
||||
- Add a doc from Mozilla's CVS
|
||||
- Removed a patches:
|
||||
- rhino-dojo patch contains part with permissive licnse
|
||||
- rhino-build patch is not necessary for java 5+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 2 15:24:37 CEST 2008 - mvyskocil@suse.cz
|
||||
|
||||
- Initial packaging of rhino 1.6 (based on Jpackage 1.7)
|
||||
|
155
rhino.spec
Normal file
155
rhino.spec
Normal file
@ -0,0 +1,155 @@
|
||||
#
|
||||
# spec file for package rhino
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2000-2009, JPackage Project
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define scm_version 1_7_14
|
||||
Name: rhino
|
||||
Version: 1.7.14
|
||||
Release: 0
|
||||
Summary: JavaScript for Java
|
||||
License: MPL-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://www.mozilla.org/rhino/
|
||||
Source0: https://github.com/mozilla/rhino/archive/Rhino%{scm_version}_Release.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/org/mozilla/rhino/%{version}/rhino-%{version}.pom
|
||||
Source2: https://repo1.maven.org/maven2/org/mozilla/rhino-engine/%{version}/rhino-engine-%{version}.pom
|
||||
Source3: https://repo1.maven.org/maven2/org/mozilla/rhino-runtime/%{version}/rhino-runtime-%{version}.pom
|
||||
Source10: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
Requires: javapackages-tools
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Rhino is an open-source implementation of JavaScript written entirely
|
||||
in Java. It is typically embedded into Java applications to provide
|
||||
scripting to end users.
|
||||
|
||||
%package engine
|
||||
Summary: Rhino Engine
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description engine
|
||||
Rhino Javascript JSR-223 Script Engine wrapper.
|
||||
|
||||
%package runtime
|
||||
Summary: Rhino Runtime
|
||||
|
||||
%description runtime
|
||||
Rhino JavaScript runtime jar, excludes tools & JSR-223 Script Engine wrapper.
|
||||
|
||||
%package demo
|
||||
Summary: Examples for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description demo
|
||||
Examples for %{name}
|
||||
|
||||
%package javadoc
|
||||
Summary: API documentation for %{name}
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-Rhino%{scm_version}_Release
|
||||
cp %{SOURCE10} build.xml
|
||||
cp %{SOURCE1} pom.xml
|
||||
cp %{SOURCE2} pom-engine.xml
|
||||
cp %{SOURCE3} pom-runtime.xml
|
||||
%pom_remove_parent pom.xml pom-engine.xml pom-runtime.xml
|
||||
|
||||
%build
|
||||
%{ant} jar javadoc
|
||||
|
||||
pushd examples
|
||||
|
||||
export CLASSPATH=../target/%{name}-%{version}.jar
|
||||
SOURCEPATH=../src
|
||||
%javac -sourcepath ${SOURCEPATH} -source 8 -target 8 *.java
|
||||
%jar cvf ../target/%{name}-examples-%{version}.jar *.class
|
||||
|
||||
popd
|
||||
|
||||
%install
|
||||
|
||||
# man page
|
||||
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||
install -m 644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
|
||||
# jars
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
ln -s %{name}.jar %{buildroot}%{_javadir}/js.jar
|
||||
install -pm 0644 target/%{name}-engine-%{version}.jar %{buildroot}%{_javadir}/%{name}-engine.jar
|
||||
install -pm 0644 target/%{name}-runtime-%{version}.jar %{buildroot}%{_javadir}/%{name}-runtime.jar
|
||||
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar -a "rhino:js"
|
||||
install -pm 0644 pom-engine.xml %{buildroot}%{_mavenpomdir}/%{name}-engine.pom
|
||||
%add_maven_depmap %{name}-engine.pom %{name}-engine.jar -f engine
|
||||
install -pm 0644 pom-runtime.xml %{buildroot}%{_mavenpomdir}/%{name}-runtime.pom
|
||||
%add_maven_depmap %{name}-runtime.pom %{name}-runtime.jar -f runtime
|
||||
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
# scripts
|
||||
%jpackage_script org.mozilla.javascript.tools.shell.Main "" "" rhino rhino true
|
||||
%jpackage_script org.mozilla.javascript.tools.debugger.Main "" "" rhino rhino-debugger true
|
||||
%jpackage_script org.mozilla.javascript.tools.jsc.Main "" "" rhino rhino-jsc true
|
||||
|
||||
# examples
|
||||
install -dm 0755 %{buildroot}%{_datadir}/%{name}
|
||||
cp -a examples/* %{buildroot}%{_datadir}/%{name}
|
||||
install -pm 0644 target/%{name}-examples-%{version}.jar %{buildroot}%{_javadir}/%{name}-examples.jar
|
||||
%fdupes -s %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
%files -f .mfiles
|
||||
%attr(0755,root,root) %{_bindir}/%{name}
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-debugger
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-jsc
|
||||
%{_javadir}/js.jar
|
||||
%{_javadir}/%{name}-examples.jar
|
||||
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||
%license LICENSE.txt NOTICE.txt NOTICE-tools.txt
|
||||
%doc README.md CODE_OF_CONDUCT.md RELEASE-NOTES.md
|
||||
|
||||
%files engine -f .mfiles-engine
|
||||
%license LICENSE.txt
|
||||
%doc README.md CODE_OF_CONDUCT.md RELEASE-NOTES.md
|
||||
|
||||
%files runtime -f .mfiles-runtime
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%doc README.md CODE_OF_CONDUCT.md RELEASE-NOTES.md
|
||||
|
||||
%files demo
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%license LICENSE.txt
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user