134 lines
5.1 KiB
RPMSpec
134 lines
5.1 KiB
RPMSpec
Name: java-bsh
|
|
Version: 2.1.0
|
|
Release: 1mamba
|
|
Summary: Lightweight Scripting for Java
|
|
Group: Development/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.beanshell.org/
|
|
Source0: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-%{version}.jar
|
|
Source1: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-bsf-%{version}.jar
|
|
Source2: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-classgen-%{version}.jar
|
|
Source3: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-classpath-%{version}.jar
|
|
Source4: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-commands-%{version}.jar
|
|
Source5: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-core-%{version}.jar
|
|
Source6: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-reflect-%{version}.jar
|
|
Source7: https://github.com/beanshell/beanshell/releases/download/%{version}/bsh-util-%{version}.jar
|
|
License: LGPL, Sun Public License
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: javapackages
|
|
Requires: javapackages
|
|
Provides: java-bsh2
|
|
Obsoletes: java-bsh2 <= 2.0b4
|
|
|
|
%description
|
|
BeanShell is a small, free, 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.bsh.org.objectweb.asm.ClassWriter cannot be applied to
|
|
|
|
%package bsf
|
|
Group: Development/Libraries/Java
|
|
Summary: BSF support for %{name}
|
|
Provides: java-bsh2-bsf
|
|
Obsoletes: java-bsh2-bsf <= 2.0b4
|
|
|
|
%description bsf
|
|
BeanShell - Lightweight Scripting for Java.
|
|
This package contains BSF support for %{name}.
|
|
|
|
%package classgen
|
|
Group: Development/Libraries/Java
|
|
Summary: ASM support for %{name}
|
|
Provides: java-classgen
|
|
Obsoletes: java-classgen <= 2.0b4
|
|
|
|
%description classgen
|
|
BeanShell - Lightweight Scripting for Java.
|
|
This package contains ASM support for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c -D -T
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -D -m 644 %{SOURCE0} \
|
|
%{buildroot}%{_javadir}/bsh-%{version}.jar
|
|
install -m 644 %{SOURCE1} \
|
|
%{buildroot}%{_javadir}/bsh-bsf-%{version}.jar
|
|
install -m 644 %{SOURCE2} \
|
|
%{buildroot}%{_javadir}/bsh-classgen-%{version}.jar
|
|
install -m 644 %{SOURCE3} \
|
|
%{buildroot}%{_javadir}/bsh-classpath-%{version}.jar
|
|
install -m 644 %{SOURCE4} \
|
|
%{buildroot}%{_javadir}/bsh-commands-%{version}.jar
|
|
install -m 644 %{SOURCE5} \
|
|
%{buildroot}%{_javadir}/bsh-core-%{version}.jar
|
|
install -m 644 %{SOURCE6} \
|
|
%{buildroot}%{_javadir}/bsh-reflect-%{version}.jar
|
|
install -m 644 %{SOURCE7} \
|
|
%{buildroot}%{_javadir}/bsh-util-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
for jar in *-%{version}*; do
|
|
ln -sf ${jar} ${jar/-%{version}/}
|
|
done
|
|
)
|
|
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_javadir}/bsh-%{version}.jar
|
|
%{_javadir}/bsh.jar
|
|
%{_javadir}/bsh-classpath-%{version}.jar
|
|
%{_javadir}/bsh-classpath.jar
|
|
%{_javadir}/bsh-commands-%{version}.jar
|
|
%{_javadir}/bsh-commands.jar
|
|
%{_javadir}/bsh-core-%{version}.jar
|
|
%{_javadir}/bsh-core.jar
|
|
%{_javadir}/bsh-reflect-%{version}.jar
|
|
%{_javadir}/bsh-reflect.jar
|
|
%{_javadir}/bsh-util-%{version}.jar
|
|
%{_javadir}/bsh-util.jar
|
|
|
|
%files bsf
|
|
%defattr(-,root,root)
|
|
%{_javadir}/bsh-bsf-%{version}.jar
|
|
%{_javadir}/bsh-bsf.jar
|
|
|
|
%files classgen
|
|
%defattr(-,root,root)
|
|
%{_javadir}/bsh-classgen-%{version}.jar
|
|
%{_javadir}/bsh-classgen.jar
|
|
|
|
%changelog
|
|
* Wed Jun 30 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
|
|
- update to 2.1.0
|
|
|
|
* Sat Nov 27 2010 gil <puntogil@libero.it> 2.0b4-3mamba
|
|
- fix broken link in %{_datadir}/bsh2/bshservlet-wbsh
|
|
|
|
* Thu Nov 04 2010 gil <puntogil@libero.it> 2.0b4-2mamba
|
|
- rebuilt devel
|
|
|
|
* Tue Mar 17 2009 gil <puntogil@libero.it> 2.0b4-1mamba
|
|
- update to 2.0b4
|
|
- renamed java-bsh2
|
|
|
|
* Tue Mar 17 2009 gil <puntogil@libero.it> 1.3.0-3mamba
|
|
- add maven poms
|
|
|
|
* Fri Mar 13 2009 gil <puntogil@libero.it> 1.3.0-2mamba
|
|
- add sub package console
|
|
|
|
* Thu Mar 05 2009 gil <puntogil@libero.it> 1.3.0-1mamba
|
|
- package created by autospec
|