diff --git a/.rhino.metadata b/.rhino.metadata new file mode 100644 index 0000000..e32562b --- /dev/null +++ b/.rhino.metadata @@ -0,0 +1 @@ +f210e0a5868c1bbff1a19c8f83ca62dd439fff4e SOURCES/Rhino1_7R4_RELEASE.zip diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/rhino-1.7R3-crosslink.patch b/SOURCES/rhino-1.7R3-crosslink.patch new file mode 100644 index 0000000..428632b --- /dev/null +++ b/SOURCES/rhino-1.7R3-crosslink.patch @@ -0,0 +1,11 @@ +diff -up rhino1_7R3/build.xml~ rhino1_7R3/build.xml +--- rhino1_7R3/build.xml~ 2011-05-09 20:04:38.000000000 +0300 ++++ rhino1_7R3/build.xml 2011-10-16 00:11:22.625045037 +0300 +@@ -220,6 +220,7 @@ + destdir="${dist.dir}/javadoc" + version="true" + author="true" ++ link="/usr/share/javadoc/java" + windowtitle="${Name}" /> + + diff --git a/SOURCES/rhino-1.7R4.pom b/SOURCES/rhino-1.7R4.pom new file mode 100644 index 0000000..c7ec588 --- /dev/null +++ b/SOURCES/rhino-1.7R4.pom @@ -0,0 +1,34 @@ + + 4.0.0 + org.mozilla + rhino + Mozilla Rhino + 1.7R4 + 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 + + + + + org.sonatype.oss + oss-parent + 7 + + + + 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 + + diff --git a/SOURCES/rhino-addOrbitManifest.patch b/SOURCES/rhino-addOrbitManifest.patch new file mode 100644 index 0000000..0179c29 --- /dev/null +++ b/SOURCES/rhino-addOrbitManifest.patch @@ -0,0 +1,39 @@ +diff -up rhino1_7R3/src/manifest.fixManifest rhino1_7R3/src/manifest +--- rhino1_7R3/src/manifest.fixManifest 2011-05-09 20:04:34.000000000 +0200 ++++ rhino1_7R3/src/manifest 2011-09-14 17:46:28.331978606 +0200 +@@ -1,6 +1,31 @@ + Manifest-Version: 1.0 + Main-Class: org.mozilla.javascript.tools.shell.Main +-Implementation-Version: 1.7R4 +-Implementation-Title: Mozilla Rhino 1.7R4 ++Implementation-Version: 1.7R4 ++Implementation-Title: Mozilla Rhino 1.7R4 + Implementation-Vendor: Mozilla Foundation +-Implementation-URL: http://www.mozilla.org/rhino +\ Chybí znak konce řádku na konci souboru ++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.2.v201005080400 ++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/SOURCES/rhino-build.patch b/SOURCES/rhino-build.patch new file mode 100644 index 0000000..aa1423a --- /dev/null +++ b/SOURCES/rhino-build.patch @@ -0,0 +1,183 @@ +diff -up rhino1_7R3/examples/Matrix.java.build rhino1_7R3/examples/Matrix.java +--- rhino1_7R3/examples/Matrix.java.build 2011-05-09 20:04:38.000000000 +0200 ++++ rhino1_7R3/examples/Matrix.java 2011-09-14 17:37:15.167031995 +0200 +@@ -249,7 +249,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]"; + } + +diff -up rhino1_7R3/examples/PrimitiveWrapFactory.java.build rhino1_7R3/examples/PrimitiveWrapFactory.java +--- rhino1_7R3/examples/PrimitiveWrapFactory.java.build 2011-05-09 20:04:38.000000000 +0200 ++++ rhino1_7R3/examples/PrimitiveWrapFactory.java 2011-09-14 17:37:15.168031994 +0200 +@@ -57,7 +57,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) +diff -up rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java.build rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java +--- rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java.build 2011-05-09 20:04:34.000000000 +0200 ++++ rhino1_7R3/src/org/mozilla/javascript/WrapFactory.java 2011-09-14 17:37:15.169031993 +0200 +@@ -75,7 +75,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) +diff -up rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml.build rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml +--- rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml.build 2011-05-09 20:04:36.000000000 +0200 ++++ rhino1_7R3/toolsrc/org/mozilla/javascript/tools/debugger/build.xml 2011-09-14 17:37:15.175031989 +0200 +@@ -38,7 +38,7 @@ + + + +- + + +@@ -46,9 +46,9 @@ + +- +- +- ++ ++ ++ + + + +@@ -56,58 +56,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; + + +- ++ + + + +diff -up rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java.build rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java +--- rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java.build 2011-05-09 20:04:36.000000000 +0200 ++++ rhino1_7R3/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java 2011-09-14 17:37:15.170031993 +0200 +@@ -67,7 +67,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); + } + } +diff -up rhino1_7R3/xmlimplsrc/build.xml.build rhino1_7R3/xmlimplsrc/build.xml +diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java +--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java.build 2011-05-09 20:04:38.000000000 +0200 ++++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/Namespace.java 2011-09-14 17:37:15.171031993 +0200 +@@ -120,7 +120,7 @@ class Namespace extends IdScriptableObje + } + + @Override +- public Object getDefaultValue(Class hint) { ++ public Object getDefaultValue(Class hint) { + return uri(); + } + +diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java +--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java.build 2011-05-09 20:04:38.000000000 +0200 ++++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/QName.java 2011-09-14 17:37:15.172031992 +0200 +@@ -150,7 +150,7 @@ final class QName extends IdScriptableOb + } + + @Override +- public Object getDefaultValue(Class hint) { ++ public Object getDefaultValue(Class hint) { + return toString(); + } + +diff -up rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java.build rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java +--- rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java.build 2011-05-09 20:04:38.000000000 +0200 ++++ rhino1_7R3/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLObjectImpl.java 2011-09-14 17:37:15.173031991 +0200 +@@ -165,7 +165,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/SOURCES/rhino-shell-manpage.patch b/SOURCES/rhino-shell-manpage.patch new file mode 100644 index 0000000..7f18186 --- /dev/null +++ b/SOURCES/rhino-shell-manpage.patch @@ -0,0 +1,124 @@ +diff --git a/build.xml b/build.xml +index ae00108..35cbfee 100644 +--- a/build.xml ++++ b/build.xml +@@ -171,6 +171,13 @@ + + + ++ ++ ++ ++ ++ ++ ++ + + + +@@ -182,7 +189,7 @@ + + + +- ++ + + + +diff --git a/man/rhino.1 b/man/rhino.1 +new file mode 100644 +index 0000000..5b35088 +--- /dev/null ++++ b/man/rhino.1 +@@ -0,0 +1,91 @@ ++.\" Hey, EMACS: -*- nroff -*- ++.\" First parameter, NAME, should be all caps ++.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection ++.\" other parameters are allowed: see man(7), man(1) ++.TH RHINO 1 "February 12, 2005" ++.\" Please adjust this date whenever revising the manpage. ++.\" ++.\" Some roff macros, for reference: ++.\" .nh disable hyphenation ++.\" .hy enable hyphenation ++.\" .ad l left justify ++.\" .ad b justify to both left and right margins ++.\" .nf disable filling ++.\" .fi enable filling ++.\" .br insert line break ++.\" .sp insert n+1 empty lines ++.\" for manpage-specific macros, see man(7) ++.SH NAME ++rhino \- invokes the JavaScript shell for running scripts in batch mode or interactive ++ ++.SH SYNOPSIS ++.B rhino ++.I [options] ++.I script_filename_or_url ++.I [script_arguments] ++ ++.SH DESCRIPTION ++This manual page documents briefly the ++.B rhino ++command. ++.PP ++.\" TeX users may be more comfortable with the \fB\fP and ++.\" \fI\fP escape sequences to invode bold face and italics, ++.\" respectively. ++\fBrhino\fP is a start script for the rhino JavaScript shell which provides a simple way ++to run scripts in batch mode or an interactive environment for exploratory programming. ++ ++.SH OPTIONS ++ ++.IP -e\ \fIscript_source\fP ++Executes script_source as a JavaScript script. ++.IP -f\ \fIscript_filename_or_url\fP ++Reads script_filename_or_url content and execute it as a JavaScript script. ++.IP -opt,\ -O\ \fIoptLevel\fP ++Optimizes at level optLevel, which must be an integer between 0 and 9. ++.IP -version\ \fIversionNumber\fP ++Specifies the language version to compile with. The string versionNumber must be one of 100, 110, 120, 130, or 140. See JavaScript Language Versions for more information on language versions. ++ ++.SH PREDEFINED PROPERTIES ++ ++Scripts executing in the shell have access to some additional properties of the top-level object. ++ ++.IP arguments ++The arguments object is an array containing the strings of all the arguments given at the command line when the shell was invoked. ++.IP help() ++Executing the help function will print usage and help messages. ++.IP defineClass(\fIclassName\fP) ++Define an extension using the Java class named with the string argument className. Uses ScriptableObject.defineClass() to define the extension. ++.IP deserialize(\fIfilename\fP) ++Restore from the specified file an object previously written by a call to serialize. ++.IP load(\fI[filename,\&.\&.\&.]\fP) ++Load JavaScript source files named by string arguments. If multiple arguments are given, each file is read in and executed in turn. ++.IP loadClass(\fIclassName\fP) ++Load and execute the class named by the string argument className. The class must be a class that implements the Script interface, as will any script compiled by jsc. ++.IP print(\fI[expr\&.\&.\&.]\fP) ++Evaluate and print expressions. Evaluates each expression, converts the result to a string, and prints it. ++.IP readFile(\fIpath[,characterCoding]\fP) ++Read given file and convert its bytes to a string using the specified character coding or default character coding if explicit coding argument is not given. ++.IP readUrl(\fIurl[,characterCoding]\fP) ++Open an input connection to the given string url, read all its bytes and convert them to a string using the specified character coding or default character coding if explicit coding argument is not given. ++.IP runCommand(\fIcommandName,[arg,\&.\&.\&.][options]\fP) ++Execute the specified command with the given argument and options as a separate process and return the exit status of the process. For details, see JavaDoc for org.mozilla.javascript.tools.shell.Global#runCommand. ++.IP serialize(\fIobject,filename\fP) ++Serialize the given object to the specified file. ++.IP spawn(\fIfunctionOrScript\fP) ++Run the given function or script in a different thread. ++.IP sync(\fIfunction\fP) ++creates a synchronized function (in the sense of a Java synchronized method) from an existing function. The new function synchronizes on the this object of its invocation. ++.IP quit() ++Quit shell. The shell will also quit in interactive mode if an end-of-file character is typed at the prompt. ++.IP version(\fI[number]\fP) ++Get or set JavaScript version number. If no argument is supplied, the current version number is returned. If an argument is supplied, it is expected to be one of 100, 110, 120, 130, or 140 to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, or 1.4 respectively. ++ ++.SH SEE ALSO ++The online documentation under ++.UR http://www.mozilla.org/rhino/shell.html ++.I http://www.mozilla.org/rhino/shell.html ++.UE ++ ++.SH AUTHOR ++This manual page was written by Wolfgang Baer . diff --git a/SOURCES/rhino.script b/SOURCES/rhino.script new file mode 100644 index 0000000..6417c55 --- /dev/null +++ b/SOURCES/rhino.script @@ -0,0 +1,32 @@ +#!/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 +# Remove xmlbeans until we have it in Fedora +#BASE_JARS="rhino jline xmlbeans/xbean" +BASE_JARS="rhino jline" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/SPECS/rhino.spec b/SPECS/rhino.spec new file mode 100644 index 0000000..3196537 --- /dev/null +++ b/SPECS/rhino.spec @@ -0,0 +1,328 @@ +# Copyright (c) 2000-2005, JPackage Project +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the +# distribution. +# 3. Neither the name of the JPackage Project nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# + +%define scm_version 1_7R4 + +Name: rhino +# R3 doesn't mean a prerelease, but behind R there is a version of this implementation +# of Javascript version 1.7 (which is independent from this particular implementation, +# e.g., there is C++ implementation in Spidermonkey) +Version: 1.7R4 +Release: 3%{?dist} +Summary: JavaScript for Java +License: MPLv2.0 + +Source0: https://github.com/mozilla/rhino/archive/Rhino%{scm_version}_RELEASE.zip +Source1: http://repo1.maven.org/maven2/org/mozilla/rhino/%{version}/rhino-%{version}.pom +Source2: %{name}.script + +Patch0: %{name}-build.patch +# Add OSGi metadata from Eclipse Orbit project +# Rip out of MANIFEST.MF included in this JAR: +# http://www.eclipse.org/downloads/download.php?r=1&file=/tools/orbit/downloads/drops/R20110523182458/repository/plugins/org.mozilla.javascript_1.7.2.v201005080400.jar +Patch1: %{name}-addOrbitManifest.patch +Patch2: %{name}-1.7R3-crosslink.patch +Patch3: %{name}-shell-manpage.patch + +URL: http://www.mozilla.org/rhino/ +Group: Development/Libraries + +BuildRequires: ant +BuildRequires: java-devel >= 1:1.6.0.0 +Requires: jpackage-utils +Requires: jline + +# Disable xmlbeans until we can get it into Fedora +#Requires: xmlbeans +#BuildRequires: xmlbeans +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 demo +Summary: Examples for %{name} +Group: Development/Libraries + +%description demo +Examples for %{name}. + +%package manual + +Summary: Manual for %{name} +Group: Development/Libraries + +%description manual +Documentation for %{name}. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation +BuildRequires: java-javadoc +Requires: java-javadoc + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{name}-Rhino%{scm_version}_RELEASE +%patch0 -p1 -b .build +%patch1 -p1 -b .fixManifest +%patch2 -p1 -b .crosslink +%patch3 -p1 -b .manpage + +# Fix build +sed -i -e '/.*$/d' build.xml testsrc/build.xml \ + toolsrc/org/mozilla/javascript/tools/debugger/build.xml xmlimplsrc/build.xml + +# 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 + +%build +ant deepclean jar copy-all javadoc -Dno-xmlbeans=1 + +pushd examples + +export CLASSPATH=../build/%{name}%{scm_version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null) +%{javac} *.java +%{jar} cvf ../build/%{name}%{scm_version}/%{name}-examples.jar *.class +popd + +%install +# jars +mkdir -p %{buildroot}%{_javadir} +cp -a build/%{name}%{scm_version}/js.jar %{buildroot}%{_javadir} +ln -s js.jar %{buildroot}%{_javadir}/%{name}.jar +cp -a build/%{name}%{scm_version}/%{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar + +# javadoc +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -a build/%{name}%{scm_version}/javadoc/* %{buildroot}%{_javadocdir}/%{name} + +# man page +mkdir -p %{buildroot}%{_mandir}/man1/ +install -m 644 build/%{name}%{scm_version}/man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 + +## script +mkdir -p %{buildroot}%{_bindir} +install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name} + +# examples +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -a examples/* %{buildroot}%{_datadir}/%{name} +find %{buildroot}%{_datadir}/%{name} -name '*.build' -delete + +# POM and depmap +install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} +install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "rhino:js" + +%files +%defattr(0644,root,root,0755) +%attr(0755,root,root) %{_bindir}/* +%{_javadir}/* +%{_mavenpomdir}/JPP-%{name}.pom +%{_mavendepmapfragdir}/%{name} +%{_mandir}/man1/%{name}.1* + +%files demo +%{_datadir}/%{name} + +%files manual +%if 0 +%doc build/%{name}%{scm_version}/docs/* +%endif + +%files javadoc +%doc %{_javadocdir}/%{name} + +%changelog +* Mon Jun 24 2013 Elliott Baron 1.7R4-3 +- Add man page for Rhino shell. +- Resolves: rhbz#948445 + +* Thu Feb 28 2013 Krzysztof Daniel 1.7R4-2 +- Add a depmap to keep compatibility with previous versions. + +* Tue Feb 26 2013 Alexander Kurtakov 1.7R4-1 +- Update to 1.7R4. + +* Thu Feb 14 2013 Fedora Release Engineering - 1.7R3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 2 2012 Mikolaj Izdebski - 1.7R3-7 +- Add maven POM + +* Sat Jul 21 2012 Fedora Release Engineering - 1.7R3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jun 12 2012 Bill Nottingham - 1.7R3-5 +- build against OpenJDK 1.7 + +* Sat Jan 14 2012 Fedora Release Engineering - 1.7R3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sun Oct 16 2011 Ville Skyttä - 1.7R3-3 +- Crosslink javadocs with Java's. +- Drop versioned jars and javadoc dir. +- Exclude patch backup files from -examples. + +* Wed Sep 21 2011 Matěj Cepl - 1.7R3-2 +- Remove bea-stax-api dependency (and perl as well) + +* Fri Sep 16 2011 Matěj Cepl - 1.7R3-1 +- Fix numbering of the package (this is not a prerelease) +- Remove unnecessary macros +- Increase happines of rpmlint (better Group tags) + +* Wed Sep 14 2011 Matěj Cepl - 1.7-0.10.r3 +- New upstream pre-release. + +* Wed Jul 6 2011 Andrew Overholt 0:1.7-0.9.r2 +- Inject OSGi metadata from Eclipse Orbit project. + +* Wed Feb 09 2011 Fedora Release Engineering - 0:1.7-0.8.r2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jul 26 2009 Fedora Release Engineering - 0:1.7-0.7.r2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun May 31 2009 Toshio Kuratomi - 0:1.7-0.6.r2 +- Update to rhino1_7R2 +- Add patch from Steven Elliott to fix exception in the interpreter shell. + +* Mon Apr 20 2009 Lillian Angel - 0:1.7-0.4.r2pre.1.1 +- Added jpackage-utils requirement. +- Resolves: rhbz#496435 + +* Thu Mar 26 2009 Lillian Angel - 0:1.7-0.3.r2pre.1.1 +- Updated rhino-build.patch +- License for treetable has been fixed. Re-included this code, and removed patch. +- Resolves: rhbz#457336 + +* Wed Feb 25 2009 Fedora Release Engineering - 0:1.7-0.2.r2pre.1.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 13 2009 Lillian Angel - 0:1.7-0.1.r2pre.1.1 +- Upgraded to 1.7r2pre. +- Resolves: rhbz#485135 + +* Thu Jul 10 2008 Tom "spot" Callaway - 0:1.6-0.1.r5.1.3 +- drop repotag +- fix license tag + +* Thu Mar 15 2007 Matt Wringe 0:1.6-0.1.r5.1jpp.2 +- Remove script from build as the debugging tool is disabled due to it + containing proprietary code from Sun. + +* Wed Mar 07 2007 Deepak Bhole 0:1.6-0.1.r5.1jpp.1 +- Upgrade to 1.6r5 +- Change release per Fedora guidelines +- Disable dependency on xmlbeans (optional component, not in Fedora yet) +- Disable building of debugger tool, as it needs confidential code from Sun +- Remove post/postuns for javadoc and add the two dirs as %%doc + +* Wed Jun 14 2006 Ralph Apel 0:1.6-0.r2.2jpp +- Add bea-stax-api in order to build xmlimpl classes + +* Tue May 31 2006 Fernando Nasser 0:1.6-0.r2.1jpp +- Upgrade to RC2 + +* Mon Apr 24 2006 Fernando Nasser 0:1.6-0.r1.2jpp +- First JPP 1.7 build + +* Thu Dec 02 2004 David Walluck 0:1.6-0.r1.1jpp +- 1_6R1 +- add demo subpackage containing example code +- add jpp release info to implementation version +- add script to launch js shell +- build E4X implementation (Requires: xmlbeans) +- remove `Class-Path' from manifest + +* Tue Aug 24 2004 Fernando Nasser - 0:1.5-1.R5.1jpp +- Update to 1.5R5. +- Rebuild with Ant 1.6.2 + +* Sat Jul 19 2003 Ville Skyttä - 0:1.5-1.R4.1.1jpp +- Update to 1.5R4.1. +- Non-versioned javadoc dir symlink. + +* Fri Apr 11 2003 David Walluck 0:1.5-0.R4.2jpp +- remove build patches in favor of perl +- add epoch + +* Sun Mar 30 2003 Ville Skyttä - 1.5-0.r4.1jpp +- Update to 1.5R4. +- Rebuild for JPackage 1.5. + +* Wed May 08 2002 Guillaume Rousse 1.5-0.R3.1jpp +- 1.5R3 +- versioned dir for javadoc + +* Sun Mar 10 2002 Guillaume Rousse 1.5-0.R2.9jpp +- versioned compatibility symlink + +* Mon Jan 21 2002 Guillaume Rousse 1.5-0.R2.8jpp +- section macro +- new release scheme + +* Thu Jan 17 2002 Guillaume Rousse 1.5R2-7jpp +- spec cleanup +- changelog corrections + +* Fri Jan 11 2002 2002 Guillaume Rousse 1.5R2-6jpp +- backward compatibility js.jar symlink +- used original swing exemples archive +- fixed javadoc empty package-list file +- no dependencies for manual and javadoc packages + +* Sat Dec 1 2001 Guillaume Rousse 1.5R2-5jpp +- javadoc in javadoc package +- fixed offline build + +* Wed Nov 21 2001 Christian Zoffoli 1.5R2-4jpp +- changed extension --> jpp + +* Sat Oct 6 2001 Guillaume Rousse 1.5R2-3jpp +- first unified release +- s/jPackage/JPackage +- corrected license to MPL + +* Sat Sep 15 2001 Guillaume Rousse 1.5R2-2mdk +- spec cleanup +- standardized cvs references + +* Thu Aug 31 2001 Guillaume Rousse 1.5R2-1mdk +- first Mandrake release