From be1539575562d621d2a9512d1902e3383aa0915a Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Tue, 23 Dec 2025 07:19:40 +0530 Subject: [PATCH 01/11] Update rhino to version 1.7.15.1 --- SPECS-EXTENDED/rhino/rhino-1.7.15.1.pom | 40 ++++ .../rhino/rhino-addOrbitManifest.patch | 33 ---- SPECS-EXTENDED/rhino/rhino-build.patch | 175 ------------------ SPECS-EXTENDED/rhino/rhino-build.xml | 159 ++++++++++++++++ SPECS-EXTENDED/rhino/rhino-debugger.script | 31 ---- .../rhino/rhino-engine-1.7.15.1.pom | 45 +++++ SPECS-EXTENDED/rhino/rhino-idswitch.script | 31 ---- SPECS-EXTENDED/rhino/rhino-jsc.script | 31 ---- ...1.7.7.1.pom => rhino-runtime-1.7.15.1.pom} | 35 ++-- SPECS-EXTENDED/rhino/rhino.script | 31 ---- SPECS-EXTENDED/rhino/rhino.signatures.json | 13 +- SPECS-EXTENDED/rhino/rhino.spec | 120 ++++++------ cgmanifest.json | 4 +- 13 files changed, 334 insertions(+), 414 deletions(-) create mode 100644 SPECS-EXTENDED/rhino/rhino-1.7.15.1.pom delete mode 100644 SPECS-EXTENDED/rhino/rhino-addOrbitManifest.patch delete mode 100644 SPECS-EXTENDED/rhino/rhino-build.patch create mode 100644 SPECS-EXTENDED/rhino/rhino-build.xml delete mode 100644 SPECS-EXTENDED/rhino/rhino-debugger.script create mode 100644 SPECS-EXTENDED/rhino/rhino-engine-1.7.15.1.pom delete mode 100644 SPECS-EXTENDED/rhino/rhino-idswitch.script delete mode 100644 SPECS-EXTENDED/rhino/rhino-jsc.script rename SPECS-EXTENDED/rhino/{rhino-1.7.7.1.pom => rhino-runtime-1.7.15.1.pom} (53%) delete mode 100644 SPECS-EXTENDED/rhino/rhino.script diff --git a/SPECS-EXTENDED/rhino/rhino-1.7.15.1.pom b/SPECS-EXTENDED/rhino/rhino-1.7.15.1.pom new file mode 100644 index 00000000000..908f0c46be7 --- /dev/null +++ b/SPECS-EXTENDED/rhino/rhino-1.7.15.1.pom @@ -0,0 +1,40 @@ + + + 4.0.0 + org.mozilla + rhino + 1.7.15.1 + rhino + + 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. + + https://mozilla.github.io/rhino/ + + org.sonatype.oss + oss-parent + 7 + + + + Mozilla Public License, Version 2.0 + http://www.mozilla.org/MPL/2.0/index.txt + + + + scm:git:git@github.com:mozilla/rhino.git + scm:git:git@github.com:mozilla/rhino.git + git@github.com:mozilla/rhino.git + + + The Mozilla Foundation + http://www.mozilla.org + + + + Greg Brail + gbrail@users.noreply.github.com + + + diff --git a/SPECS-EXTENDED/rhino/rhino-addOrbitManifest.patch b/SPECS-EXTENDED/rhino/rhino-addOrbitManifest.patch deleted file mode 100644 index c3f2aad3ee0..00000000000 --- a/SPECS-EXTENDED/rhino/rhino-addOrbitManifest.patch +++ /dev/null @@ -1,33 +0,0 @@ -Index: src/manifest -=================================================================== ---- src/manifest.orig -+++ src/manifest -@@ -4,3 +4,28 @@ Implementation-Version: 1.7.7.1 - Implementation-Title: Mozilla Rhino 1.7.7.1 - Implementation-Vendor: Mozilla Foundation - Implementation-URL: http://www.mozilla.org/rhino -+Bundle-Vendor: %Bundle-Vendor.0 -+Bundle-Localization: plugin -+Bundle-RequiredExecutionEnvironment: J2SE-1.5 -+Bundle-Name: %Bundle-Name.0 -+Bundle-SymbolicName: org.mozilla.javascript -+Bundle-Version: 1.7.12 -+Export-Package: org.mozilla.classfile,org.mozilla.javascript,org.mozil -+ la.javascript.debug,org.mozilla.javascript.jdk13,org.mozilla.javascri -+ pt.jdk15,org.mozilla.javascript.optimizer,org.mozilla.javascript.rege -+ xp,org.mozilla.javascript.serialize,org.mozilla.javascript.tools,org. -+ mozilla.javascript.tools.debugger,org.mozilla.javascript.tools.debugg -+ er.treetable,org.mozilla.javascript.tools.idswitch,org.mozilla.javasc -+ ript.tools.jsc,org.mozilla.javascript.tools.shell,org.mozilla.javascr -+ ipt.xml,org.mozilla.javascript.xml.impl.xmlbeans,org.mozilla.javascri -+ pt.xmlimpl -+Bundle-ManifestVersion: 2 -+Import-Package: javax.swing;resolution:=optional,javax.swing.border;re -+ solution:=optional,javax.swing.event;resolution:=optional,javax.swing -+ .filechooser;resolution:=optional,javax.swing.table;resolution:=optio -+ nal,javax.swing.text;resolution:=optional,javax.swing.tree;resolution -+ :=optional,javax.xml.namespace;resolution:=optional,javax.xml.parsers -+ ;resolution:=optional,javax.xml.transform;resolution:=optional,javax. -+ xml.transform.dom;resolution:=optional,javax.xml.transform.stream;res -+ olution:=optional,org.w3c.dom;resolution:=optional,org.xml.sax;resolu -+ tion:=optional diff --git a/SPECS-EXTENDED/rhino/rhino-build.patch b/SPECS-EXTENDED/rhino/rhino-build.patch deleted file mode 100644 index b6d9e2c92dc..00000000000 --- a/SPECS-EXTENDED/rhino/rhino-build.patch +++ /dev/null @@ -1,175 +0,0 @@ ---- examples/Matrix.java -+++ examples/Matrix.java -@@ -218,7 +218,7 @@ public class Matrix implements Scriptabl - * Use the convenience method from Context that takes care of calling - * toString, etc. - */ -- public Object getDefaultValue(Class typeHint) { -+ public Object getDefaultValue(Class typeHint) { - return "[object Matrix]"; - } - ---- examples/PrimitiveWrapFactory.java -+++ examples/PrimitiveWrapFactory.java -@@ -25,7 +25,7 @@ import org.mozilla.javascript.*; - public class PrimitiveWrapFactory extends WrapFactory { - @Override - public Object wrap(Context cx, Scriptable scope, Object obj, -- Class staticType) -+ Class staticType) - { - if (obj instanceof String || obj instanceof Number || - obj instanceof Boolean) ---- src/org/mozilla/javascript/WrapFactory.java -+++ src/org/mozilla/javascript/WrapFactory.java -@@ -42,7 +42,7 @@ public class WrapFactory - * @return the wrapped value. - */ - public Object wrap(Context cx, Scriptable scope, -- Object obj, Class staticType) -+ Object obj, Class staticType) - { - if (obj == null || obj == Undefined.instance - || obj instanceof Scriptable) ---- toolsrc/org/mozilla/javascript/tools/debugger/build.xml -+++ toolsrc/org/mozilla/javascript/tools/debugger/build.xml -@@ -8,7 +8,7 @@ - - - -- - - -@@ -16,9 +16,9 @@ - -- -- -- -+ -+ -+ - - - -@@ -26,58 +26,58 @@ - - - -- -+ - import java.awt.Component; - --package org.mozilla.javascript.tools.debugger.downloaded; -+package org.mozilla.javascript.tools.debugger.treetable; - - -- -+ - import java.awt.event.*; - - -- -+ - import java.awt.AWTEvent; - - -- -+ - import java.io.Serializable; - - -- -+ - import javax.swing.*; - -- package org.mozilla.javascript.tools.debugger.downloaded; -+ package org.mozilla.javascript.tools.debugger.treetable; - import javax.swing.*; - - -- -+ - class ListToTreeSelectionModelWrapper - public class ListToTreeSelectionModelWrapper - -- -+ - ListSelectionModel getListSelectionModel - public ListSelectionModel getListSelectionModel - -- -+ - import java.awt.Rectangle; - - -- -+ - import javax.swing.tree.TreeModel; - -- package org.mozilla.javascript.tools.debugger.downloaded; -+ package org.mozilla.javascript.tools.debugger.treetable; - import javax.swing.tree.TreeModel; - - -- -+ - import javax.swing.JTree; - -- package org.mozilla.javascript.tools.debugger.downloaded; -+ package org.mozilla.javascript.tools.debugger.treetable; - import javax.swing.JTree; - - -- -+ - - - ---- toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java -+++ toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java -@@ -36,7 +36,7 @@ public class JavaPolicySecurity extends - return super.defineClass(name, data, 0, data.length, domain); - } - -- public void linkClass(Class cl) { -+ public void linkClass(Class cl) { - resolveClass(cl); - } - } ---- xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java -+++ xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java -@@ -86,7 +86,7 @@ class Namespace extends IdScriptableObje - } - - @Override -- public Object getDefaultValue(Class hint) { -+ public Object getDefaultValue(Class hint) { - return uri(); - } - ---- xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java -+++ xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java -@@ -116,7 +116,7 @@ final class QName extends IdScriptableOb - } - - @Override -- public Object getDefaultValue(Class hint) { -+ public Object getDefaultValue(Class hint) { - return toString(); - } - ---- xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java -+++ xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java -@@ -105,7 +105,7 @@ abstract class XMLObjectImpl extends XML - } - - @Override -- public final Object getDefaultValue(Class hint) { -+ public final Object getDefaultValue(Class hint) { - return this.toString(); - } - diff --git a/SPECS-EXTENDED/rhino/rhino-build.xml b/SPECS-EXTENDED/rhino/rhino-build.xml new file mode 100644 index 00000000000..daf7c2e73f4 --- /dev/null +++ b/SPECS-EXTENDED/rhino/rhino-build.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SPECS-EXTENDED/rhino/rhino-debugger.script b/SPECS-EXTENDED/rhino/rhino-debugger.script deleted file mode 100644 index 2a71441e3bd..00000000000 --- a/SPECS-EXTENDED/rhino/rhino-debugger.script +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# rhino script -# JPackage Project - -# Source functions library -. /usr/share/java-utils/java-functions - -# Source system prefs -if [ -f /etc/rhino.conf ] ; then - . /etc/rhino.conf -fi - -# Source user prefs -if [ -f $HOME/.rhinorc ] ; then - . $HOME/.rhinorc -fi - -# Configuration -MAIN_CLASS=org.mozilla.javascript.tools.debugger.Main -BASE_FLAGS="-Xbootclasspath/p:$(build-classpath rhino jline xmlbeans/xbean)" -BASE_JARS="rhino jline xmlbeans/xbean" - -# Set parameters -set_jvm -set_classpath $BASE_JARS -set_flags $BASE_FLAGS -set_options $BASE_OPTIONS - -# Let's start -run "$@" diff --git a/SPECS-EXTENDED/rhino/rhino-engine-1.7.15.1.pom b/SPECS-EXTENDED/rhino/rhino-engine-1.7.15.1.pom new file mode 100644 index 00000000000..ce9a989538e --- /dev/null +++ b/SPECS-EXTENDED/rhino/rhino-engine-1.7.15.1.pom @@ -0,0 +1,45 @@ + + + 4.0.0 + org.mozilla + rhino-engine + 1.7.15.1 + rhino-engine + + Rhino Javascript JSR-223 Script Engine wrapper. + + https://mozilla.github.io/rhino/ + + org.sonatype.oss + oss-parent + 7 + + + + Mozilla Public License, Version 2.0 + http://www.mozilla.org/MPL/2.0/index.txt + + + + scm:git:git@github.com:mozilla/rhino.git + scm:git:git@github.com:mozilla/rhino.git + git@github.com:mozilla/rhino.git + + + The Mozilla Foundation + http://www.mozilla.org + + + + org.mozilla + rhino + 1.7.15.1 + + + + + Greg Brail + gbrail@users.noreply.github.com + + + diff --git a/SPECS-EXTENDED/rhino/rhino-idswitch.script b/SPECS-EXTENDED/rhino/rhino-idswitch.script deleted file mode 100644 index d02e3dd7a7f..00000000000 --- a/SPECS-EXTENDED/rhino/rhino-idswitch.script +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# rhino script -# JPackage Project - -# Source functions library -. /usr/share/java-utils/java-functions - -# Source system prefs -if [ -f /etc/rhino.conf ] ; then - . /etc/rhino.conf -fi - -# Source user prefs -if [ -f $HOME/.rhinorc ] ; then - . $HOME/.rhinorc -fi - -# Configuration -MAIN_CLASS=org.mozilla.javascript.tools.idswitch.Main -BASE_FLAGS="-Xbootclasspath/p:$(build-classpath rhino xmlbeans/xbean)" -BASE_JARS="rhino xmlbeans/xbean" - -# Set parameters -set_jvm -set_classpath $BASE_JARS -set_flags $BASE_FLAGS -set_options $BASE_OPTIONS - -# Let's start -run "$@" diff --git a/SPECS-EXTENDED/rhino/rhino-jsc.script b/SPECS-EXTENDED/rhino/rhino-jsc.script deleted file mode 100644 index 8b4a075d8fd..00000000000 --- a/SPECS-EXTENDED/rhino/rhino-jsc.script +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# rhino script -# JPackage Project - -# Source functions library -. /usr/share/java-utils/java-functions - -# Source system prefs -if [ -f /etc/rhino.conf ] ; then - . /etc/rhino.conf -fi - -# Source user prefs -if [ -f $HOME/.rhinorc ] ; then - . $HOME/.rhinorc -fi - -# Configuration -MAIN_CLASS=org.mozilla.javascript.tools.jsc.Main -BASE_FLAGS="-Xbootclasspath/p:$(build-classpath rhino1 xmlbeans/xbean)" -BASE_JARS="rhino xmlbeans/xbean" - -# Set parameters -set_jvm -set_classpath $BASE_JARS -set_flags $BASE_FLAGS -set_options $BASE_OPTIONS - -# Let's start -run "$@" diff --git a/SPECS-EXTENDED/rhino/rhino-1.7.7.1.pom b/SPECS-EXTENDED/rhino/rhino-runtime-1.7.15.1.pom similarity index 53% rename from SPECS-EXTENDED/rhino/rhino-1.7.7.1.pom rename to SPECS-EXTENDED/rhino/rhino-runtime-1.7.15.1.pom index 16d97b84be0..29c5de555a4 100644 --- a/SPECS-EXTENDED/rhino/rhino-1.7.7.1.pom +++ b/SPECS-EXTENDED/rhino/rhino-runtime-1.7.15.1.pom @@ -1,41 +1,38 @@ - + + 4.0.0 - + org.mozilla + rhino-runtime + 1.7.15.1 + rhino-runtime + + Rhino JavaScript runtime jar, excludes tools & JSR-223 Script Engine wrapper. + + https://mozilla.github.io/rhino/ org.sonatype.oss oss-parent 7 - - org.mozilla - rhino - Mozilla Rhino - 1.7.7.1 - - jar - - 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. - - https://developer.mozilla.org/en/Rhino - Mozilla Public License, Version 2.0 http://www.mozilla.org/MPL/2.0/index.txt - scm:git:git@github.com:mozilla/rhino.git scm:git:git@github.com:mozilla/rhino.git git@github.com:mozilla/rhino.git - The Mozilla Foundation http://www.mozilla.org + + + Greg Brail + gbrail@users.noreply.github.com + + diff --git a/SPECS-EXTENDED/rhino/rhino.script b/SPECS-EXTENDED/rhino/rhino.script deleted file mode 100644 index 4dd95ec67bc..00000000000 --- a/SPECS-EXTENDED/rhino/rhino.script +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -# -# rhino script -# JPackage Project - -# Source functions library -. /usr/share/java-utils/java-functions - -# Source system prefs -if [ -f /etc/rhino.conf ] ; then - . /etc/rhino.conf -fi - -# Source user prefs -if [ -f $HOME/.rhinorc ] ; then - . $HOME/.rhinorc -fi - -# Configuration -MAIN_CLASS=org.mozilla.javascript.tools.shell.Main -BASE_FLAGS="-Xbootclasspath/p:$(build-classpath rhino jline1 xmlbeans/xbean)" -BASE_JARS="rhino jline xmlbeans/xbean" - -# Set parameters -set_jvm -set_classpath $BASE_JARS -set_flags $BASE_FLAGS -set_options $BASE_OPTIONS - -# Let's start -run "$@" diff --git a/SPECS-EXTENDED/rhino/rhino.signatures.json b/SPECS-EXTENDED/rhino/rhino.signatures.json index dbc16c752a1..dfae0b29130 100644 --- a/SPECS-EXTENDED/rhino/rhino.signatures.json +++ b/SPECS-EXTENDED/rhino/rhino.signatures.json @@ -1,10 +1,9 @@ { "Signatures": { - "Rhino1_7_7_1_RELEASE.tar.gz": "277478f81c160953976c198beceab61a0b23b5d2633a84effd9236284aa301b1", - "rhino-1.7.7.1.pom": "bd274ebb729e421e83028f05a31c701e95fb755c03d1911258bff35d779bea3f", - "rhino-debugger.script": "abf22a063ef36feb0f09da72952a25d5d4ab1001afa6f5974654ebbc322d6191", - "rhino-idswitch.script": "334586fd570b6c5e8c52787808a12f071f30efc1ff20254a062fa5128ca37cca", - "rhino-jsc.script": "65cc0ac893193a84e024d3b66811afbe747f63c5910ac3ae7691b251ac32bd1c", - "rhino.script": "550cbb089c12752a888ecc1bda8d5384095e948699c49ffc995c98bb907cfb7f" + "Rhino1_7_15_1_Release.tar.gz": "729c4ffc0405fad09b22190c2dd95da8c6a79fe353d667dc852352464bfe5955", + "rhino-1.7.15.1.pom": "b40decfa0e24c80bfd957ba3adfac7f6e3eed7730a06b551c01493faa2e76883", + "rhino-build.xml": "db62671eb039c402b203b08d7ecb6dfcfc575be75c7828e01013733727fa4531", + "rhino-engine-1.7.15.1.pom": "2794a4adbecd9837b5e406c0f4a7e40d8620105a44ff11ccd3cae1a2de4615aa", + "rhino-runtime-1.7.15.1.pom": "f96738c51ba7b081ebebec9fa298e950b18b2ed8acf4099cf7c54ec16b8ec493" } -} +} \ No newline at end of file diff --git a/SPECS-EXTENDED/rhino/rhino.spec b/SPECS-EXTENDED/rhino/rhino.spec index d4e03b7518e..0638d1d59fd 100644 --- a/SPECS-EXTENDED/rhino/rhino.spec +++ b/SPECS-EXTENDED/rhino/rhino.spec @@ -1,9 +1,10 @@ +%global debug_package %{nil} Vendor: Microsoft Corporation Distribution: Azure Linux # # spec file for package rhino # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2000-2009, JPackage Project # # All modifications and additions to the file contributed by third parties @@ -19,35 +20,43 @@ Distribution: Azure Linux # -%define scm_version 1_7_7_1 +%define scm_version 1_7_15_1 Name: rhino -Version: 1.7.7.1 -Release: 2%{?dist} +Version: 1.7.15.1 +Release: 1%{dist} Summary: JavaScript for Java License: MPL-2.0 Group: Development/Libraries/Java -URL: https://github.com/mozilla/rhino -Source0: https://github.com/mozilla/rhino/archive/Rhino%{scm_version}_RELEASE.tar.gz +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: rhino.script -Source3: rhino-debugger.script -Source4: rhino-idswitch.script -Source5: rhino-jsc.script -Patch0: rhino-build.patch -# Add OSGi metadata from Eclipse Orbit project -Patch1: rhino-addOrbitManifest.patch +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: java-devel >= 1.7 +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local-bootstrap Requires: javapackages-tools -Requires: jline -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 @@ -56,76 +65,79 @@ Group: Development/Libraries/Java Examples for %{name} %prep -%setup -q -n %{name}-Rhino%{scm_version}_RELEASE -%patch 0 -b .build -%patch 1 -b .fixManifest -cp %{SOURCE1} pom.xml -%pom_remove_parent - -# Fix manifest -sed -i -e '/^Class-Path:.*$/d' src/manifest - -# Add jpp release info to version -sed -i -e 's|^implementation.version: Rhino .* release .* \${implementation.date}|implementation.version: Rhino %{version} release %{release} \${implementation.date}|' build.properties +%setup -q -n %{name}-Rhino%{scm_version}_Release +cp %{SOURCE10} build.xml %build -%{ant} \ - -Dtarget-jvm=6 -Dsource-level=6 \ - deepclean jar copy-all +%{ant} jar pushd examples -export CLASSPATH=../build/%{name}%{version}/js.jar -SOURCEPATH=../build/%{name}%{version}/src -%javac -sourcepath ${SOURCEPATH} -source 6 -target 6 *.java -%jar cvf ../build/%{name}%{version}/%{name}-examples.jar *.class +export CLASSPATH=../target/%{name}-%{version}.jar +SOURCEPATH=../src +javac -sourcepath ${SOURCEPATH} -source 8 -target 8 *.java +jar --create --verbose \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0} + --date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \ +%endif + --file=../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 -mkdir -p %{buildroot}%{_javadir} -cp -a build/%{name}%{version}/js.jar %{buildroot}%{_javadir}/%{name}.jar +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 -mkdir -p %{buildroot}%{_mavenpomdir} -cp -a pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +cp -a %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom %add_maven_depmap %{name}.pom %{name}.jar -a "rhino:js" +cp -a %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}-engine.pom +%add_maven_depmap %{name}-engine.pom %{name}-engine.jar -f engine +cp -a %{SOURCE3} %{buildroot}%{_mavenpomdir}/%{name}-runtime.pom +%add_maven_depmap %{name}-runtime.pom %{name}-runtime.jar -f runtime # scripts -mkdir -p %{buildroot}%{_bindir} -install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{name} -install -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}-debugger -install -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/%{name}-idswitch -install -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/%{name}-jsc +%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 -mkdir -p %{buildroot}%{_datadir}/%{name} +install -dm 0755 %{buildroot}%{_datadir}/%{name} cp -a examples/* %{buildroot}%{_datadir}/%{name} -cp -a build/%{name}%{version}/%{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar - -find %{buildroot}%{_datadir}/%{name} -name '*.build' -delete +install -pm 0644 target/%{name}-examples-%{version}.jar %{buildroot}%{_javadir}/%{name}-examples.jar +%fdupes -s %{buildroot}%{_datadir}/%{name} %files -f .mfiles -%license LICENSE.txt %attr(0755,root,root) %{_bindir}/%{name} %attr(0755,root,root) %{_bindir}/%{name}-debugger -%attr(0755,root,root) %{_bindir}/%{name}-idswitch %attr(0755,root,root) %{_bindir}/%{name}-jsc %{_javadir}/js.jar %{_javadir}/%{name}-examples.jar -%{_mandir}/man1/%{name}.1* +%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} %changelog +* Tue Dec 23 2025 Sumit Jena - 1.7.15.1-1 +- Upgrade to version 1.7.15.1 +- License Verified. + * Thu Oct 14 2021 Pawel Winogrodzki - 1.7.7.1-2 - Converting the 'Release' tag to the '[number].[distribution]' format. diff --git a/cgmanifest.json b/cgmanifest.json index 193fc5209d8..c020e6b1cb7 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -26184,8 +26184,8 @@ "type": "other", "other": { "name": "rhino", - "version": "1.7.7.1", - "downloadUrl": "https://github.com/mozilla/rhino/archive/Rhino1_7_7_1_RELEASE.tar.gz" + "version": "1.7.15.1", + "downloadUrl": "https://github.com/mozilla/rhino/archive/Rhino1_7_15_1_Release.tar.gz" } } }, From 208ea8213337ff0f1fb346efe0cef3fe04dcff5b Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Tue, 23 Dec 2025 07:28:58 +0530 Subject: [PATCH 02/11] Update rhino.spec --- SPECS-EXTENDED/rhino/rhino.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS-EXTENDED/rhino/rhino.spec b/SPECS-EXTENDED/rhino/rhino.spec index 0638d1d59fd..b0760ee88c3 100644 --- a/SPECS-EXTENDED/rhino/rhino.spec +++ b/SPECS-EXTENDED/rhino/rhino.spec @@ -23,7 +23,7 @@ Distribution: Azure Linux %define scm_version 1_7_15_1 Name: rhino Version: 1.7.15.1 -Release: 1%{dist} +Release: 1%{?dist} Summary: JavaScript for Java License: MPL-2.0 Group: Development/Libraries/Java From e9767f4dcb3c556360017c4659e09d2d8064b04f Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Tue, 23 Dec 2025 07:29:19 +0530 Subject: [PATCH 03/11] Fix missing newline in rhino.signatures.json Add missing newline at the end of the file. --- SPECS-EXTENDED/rhino/rhino.signatures.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS-EXTENDED/rhino/rhino.signatures.json b/SPECS-EXTENDED/rhino/rhino.signatures.json index dfae0b29130..cb773d58541 100644 --- a/SPECS-EXTENDED/rhino/rhino.signatures.json +++ b/SPECS-EXTENDED/rhino/rhino.signatures.json @@ -6,4 +6,4 @@ "rhino-engine-1.7.15.1.pom": "2794a4adbecd9837b5e406c0f4a7e40d8620105a44ff11ccd3cae1a2de4615aa", "rhino-runtime-1.7.15.1.pom": "f96738c51ba7b081ebebec9fa298e950b18b2ed8acf4099cf7c54ec16b8ec493" } -} \ No newline at end of file +} From b7a32340c5926ddfca95be4996acd669a2312d89 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Thu, 25 Dec 2025 10:11:02 +0530 Subject: [PATCH 04/11] exclude duplicate license file for bsf-javadoc --- SPECS-EXTENDED/bsf/bsf.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index dc9c94f0f0f..ad97a3814f5 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -94,6 +94,7 @@ cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} %files javadoc %license LICENSE.txt NOTICE.txt %{_javadocdir}/%{name} +%exclude /usr/share/javadoc/bsf/legal/ADDITIONAL_LICENSE_INFO %changelog * Tue Jan 03 2023 Sumedh Sharma - 2.4.0-19 From 58e2329ef29435df02a8a9de04fe14fae3591a39 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Fri, 26 Dec 2025 13:20:32 +0530 Subject: [PATCH 05/11] Removed duplicate license --- SPECS-EXTENDED/bsf/bsf.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index ad97a3814f5..d0ce5727ea6 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -95,6 +95,7 @@ cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} %license LICENSE.txt NOTICE.txt %{_javadocdir}/%{name} %exclude /usr/share/javadoc/bsf/legal/ADDITIONAL_LICENSE_INFO +%exclude /usr/share/javadoc/bsf/legal/LICENSE %changelog * Tue Jan 03 2023 Sumedh Sharma - 2.4.0-19 From ff4a961e2ab8afc1c932630962ae400e1842adce Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Wed, 31 Dec 2025 15:31:45 +0530 Subject: [PATCH 06/11] Update license file paths in bsf.spec --- SPECS-EXTENDED/bsf/bsf.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index d0ce5727ea6..733fe03aa8b 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -92,9 +92,8 @@ cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt %files javadoc -%license LICENSE.txt NOTICE.txt +%license LICENSE.txt NOTICE.txt %{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO %{_javadocdir}/%{name} -%exclude /usr/share/javadoc/bsf/legal/ADDITIONAL_LICENSE_INFO %exclude /usr/share/javadoc/bsf/legal/LICENSE %changelog From 93a7a50c61f38dc0369c2ebd76bfd28f93a78137 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Fri, 2 Jan 2026 08:50:57 +0530 Subject: [PATCH 07/11] Fix license file path in bsf.spec --- SPECS-EXTENDED/bsf/bsf.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index 733fe03aa8b..2a7e9366c0e 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -85,14 +85,15 @@ install -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} +mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles -%license LICENSE.txt NOTICE.txt +%license LICENSE.txt NOTICE.txt %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt %files javadoc -%license LICENSE.txt NOTICE.txt %{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO +%license LICENSE.txt NOTICE.txt ADDITIONAL_LICENSE_INFO %{_javadocdir}/%{name} %exclude /usr/share/javadoc/bsf/legal/LICENSE From 04b250c614c18da5149887568a3045032fc37f22 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Mon, 5 Jan 2026 09:33:35 +0530 Subject: [PATCH 08/11] Update release number and added changelogs for fix license warnings Updated the release number and added a changelog entry for license fixes. --- SPECS-EXTENDED/bsf/bsf.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index 2a7e9366c0e..d96ddb2d4ca 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -1,7 +1,7 @@ Summary: Bean Scripting Framework Name: bsf Version: 2.4.0 -Release: 19%{?dist} +Release: 20%{?dist} License: Apache-2.0 Vendor: Microsoft Corporation Distribution: Azure Linux @@ -98,6 +98,10 @@ mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . %exclude /usr/share/javadoc/bsf/legal/LICENSE %changelog +* Fri Jan 02 2025 Sumit Jena - 2.4.0-20 +- Fixed License Warnings. +- Added additional License file. + * Tue Jan 03 2023 Sumedh Sharma - 2.4.0-19 - License verified From af45b5e30310b025cd1923aa773bb3f92eec7e5b Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Mon, 5 Jan 2026 20:34:52 +0530 Subject: [PATCH 09/11] Update changelog date and fix license warnings Updated the date for the changelog entry and fixed license warnings. --- SPECS-EXTENDED/bsf/bsf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index d96ddb2d4ca..faf59b25051 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -98,7 +98,7 @@ mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . %exclude /usr/share/javadoc/bsf/legal/LICENSE %changelog -* Fri Jan 02 2025 Sumit Jena - 2.4.0-20 +* Fri Jan 02 2026 Sumit Jena - 2.4.0-20 - Fixed License Warnings. - Added additional License file. From 40d8ca0223f9e279eb783ad12da9973efd36e495 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Mon, 5 Jan 2026 20:36:12 +0530 Subject: [PATCH 10/11] Update bsf.spec --- SPECS-EXTENDED/bsf/bsf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index faf59b25051..925612c9eb1 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -89,7 +89,7 @@ mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles -%license LICENSE.txt NOTICE.txt +%license LICENSE.txt NOTICE.txt %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt %files javadoc From 947835dbee83ee947640c75dea1e51a7085d9fc0 Mon Sep 17 00:00:00 2001 From: SumitJenaHCL Date: Tue, 6 Jan 2026 17:42:22 +0530 Subject: [PATCH 11/11] Added additional license --- SPECS-EXTENDED/bsf/bsf.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index 925612c9eb1..1ec19b02b17 100644 --- a/SPECS-EXTENDED/bsf/bsf.spec +++ b/SPECS-EXTENDED/bsf/bsf.spec @@ -86,6 +86,7 @@ install -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name} mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . +mv %{buildroot}%{_javadocdir}/%{name}/legal/LICENSE . %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles @@ -93,9 +94,8 @@ mv %{buildroot}%{_javadocdir}/%{name}/legal/ADDITIONAL_LICENSE_INFO . %doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt %files javadoc -%license LICENSE.txt NOTICE.txt ADDITIONAL_LICENSE_INFO +%license LICENSE LICENSE.txt NOTICE.txt ADDITIONAL_LICENSE_INFO %{_javadocdir}/%{name} -%exclude /usr/share/javadoc/bsf/legal/LICENSE %changelog * Fri Jan 02 2026 Sumit Jena - 2.4.0-20