diff --git a/SPECS-EXTENDED/bsf/bsf.spec b/SPECS-EXTENDED/bsf/bsf.spec index dc9c94f0f0f..1ec19b02b17 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 @@ -85,6 +85,8 @@ 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 . +mv %{buildroot}%{_javadocdir}/%{name}/legal/LICENSE . %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles @@ -92,10 +94,14 @@ 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 LICENSE.txt NOTICE.txt ADDITIONAL_LICENSE_INFO %{_javadocdir}/%{name} %changelog +* Fri Jan 02 2026 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 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..cb773d58541 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" } } diff --git a/SPECS-EXTENDED/rhino/rhino.spec b/SPECS-EXTENDED/rhino/rhino.spec index d4e03b7518e..b0760ee88c3 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" } } },