|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
Name: bsh2
|
|
|
|
|
Version: 2.0.0.b6
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Lightweight Scripting for Java (BeanShell Version 2.x)
|
|
|
|
|
Summary: Scripting for Java (BeanShell Version 2.x)
|
|
|
|
|
License: SPL-1.0 OR LGPL-2.0-or-later
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
URL: http://www.beanshell.org/
|
|
|
|
@ -47,33 +47,13 @@ Requires: javapackages-tools
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
BeanShell is a small, free, embeddable, Java source interpreter with
|
|
|
|
|
object scripting language features, written in Java. BeanShell executes
|
|
|
|
|
BeanShell is an embeddable Java source interpreter with object
|
|
|
|
|
scripting language features, written in Java. BeanShell executes
|
|
|
|
|
standard Java statements and expressions, in addition to obvious
|
|
|
|
|
scripting commands and syntax. BeanShell supports scripted objects as
|
|
|
|
|
simple method closures like those in Perl and JavaScript(tm). You can
|
|
|
|
|
use BeanShell interactively for Java experimentation and debugging or
|
|
|
|
|
as a simple scripting engine for your applications. In short: BeanShell
|
|
|
|
|
is a dynamically interpreted Java, plus some useful stuff. Another way
|
|
|
|
|
to describe it is to say that in many ways BeanShell is to Java as
|
|
|
|
|
Tcl/Tk is to C: BeanShell is embeddable - You can call BeanShell from
|
|
|
|
|
your Java applications to execute Java code dynamically at run-time or
|
|
|
|
|
to provide scripting extensibility for your applications.
|
|
|
|
|
Alternatively, you can call your Java applications and objects from
|
|
|
|
|
BeanShell; working with Java objects and APIs dynamically. Since
|
|
|
|
|
BeanShell is written in Java and runs in the same space as your
|
|
|
|
|
application, you can freely pass references to "real live" objects into
|
|
|
|
|
scripts and return them as results.
|
|
|
|
|
|
|
|
|
|
With version 2.0 BeanShell becomes a fully Java compatible scripting
|
|
|
|
|
language. BeanShell is now capable of interpreting ordinary Java source
|
|
|
|
|
and loading .java source files from the class path. BeanShell scripted
|
|
|
|
|
classes are fully typed and appear to outside Java code and via
|
|
|
|
|
reflective inspection as ordinary classes. However their implementation
|
|
|
|
|
is fully dynamic and they may include arbitrary BeanShell scripts in
|
|
|
|
|
their bodies, methods, and constructors. Users may now freely mix
|
|
|
|
|
loose, unstructured BeanShell scripts, method closures, and full
|
|
|
|
|
scripted classes.
|
|
|
|
|
simple method closures like those in Perl and JavaScript. BeanShell
|
|
|
|
|
can be used interactively for Java experimentation and debugging or
|
|
|
|
|
as a scripting engine for applications.
|
|
|
|
|
|
|
|
|
|
%package bsf
|
|
|
|
|
Summary: BSF support for bsh2
|
|
|
|
@ -81,28 +61,28 @@ Group: Development/Libraries/Java
|
|
|
|
|
Requires: bsf
|
|
|
|
|
|
|
|
|
|
%description bsf
|
|
|
|
|
Lightweight Scripting for Java (BeanShell Version 2.x) (BSF support).
|
|
|
|
|
Scripting for Java (BeanShell Version 2.x) (BSF support).
|
|
|
|
|
|
|
|
|
|
%package classgen
|
|
|
|
|
Summary: ASM support for bsh2
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description classgen
|
|
|
|
|
Lightweight Scripting for Java (BeanShell Version 2.x) (ASM support).
|
|
|
|
|
Scripting for Java (BeanShell Version 2.x) (ASM support).
|
|
|
|
|
|
|
|
|
|
%package manual
|
|
|
|
|
Summary: Documentation for bsh2
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description manual
|
|
|
|
|
Lightweight Scripting for Java (BeanShell Version 2.x) (Manual).
|
|
|
|
|
Scripting for Java (BeanShell Version 2.x) (Manual).
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc for bsh2
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
Lightweight Scripting for Java (BeanShell Version 2.x) (Java Documentation).
|
|
|
|
|
Scripting for Java (BeanShell Version 2.x) (Java Documentation).
|
|
|
|
|
|
|
|
|
|
%package demo
|
|
|
|
|
Summary: Demonstrations and samples for bsh2
|
|
|
|
@ -110,7 +90,7 @@ Group: Development/Libraries/Java
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description demo
|
|
|
|
|
Lightweight Scripting for Java (BeanShell Version 2.x) (demo and samples).
|
|
|
|
|
Scripting for Java (BeanShell Version 2.x) (demo and samples).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n beanshell-%{fversion}
|
|
|
|
@ -160,13 +140,8 @@ install -m 644 pom.xml \
|
|
|
|
|
%add_maven_depmap JPP.%{name}-bsh.pom %{name}/bsh.jar -a org.beanshell:%{name},bsh:bsh,bsh:bsh-bsf,org.beanshell:bsh
|
|
|
|
|
|
|
|
|
|
# manual
|
|
|
|
|
find docs -name ".cvswrappers" -exec rm -f {} \;
|
|
|
|
|
find docs -name "*.xml" -exec rm -f {} \;
|
|
|
|
|
find docs -name "*.xsl" -exec rm -f {} \;
|
|
|
|
|
find docs -name "*.log" -exec rm -f {} \;
|
|
|
|
|
(cd docs/manual && mv -f html/* .)
|
|
|
|
|
(cd docs/manual && rm -rf html)
|
|
|
|
|
(cd docs/manual && rm -rf xsl)
|
|
|
|
|
find docs "(" -name ".cvswrappers" -o -name "*.xml" -o -name "*.xsl" -o -name "*.log" ")" -delete
|
|
|
|
|
(cd docs/manual && mv -f html/* . && rm -Rf html xsl)
|
|
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|