Sync from SUSE:ALP:Source:Standard:1.0 bsf revision 4af585757feb71b73204988f6ca64282

This commit is contained in:
Adrian Schröter 2024-10-14 13:59:27 +02:00
commit d4ac9f90a9
9 changed files with 522 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

32
bsf-pom.xml Normal file
View File

@ -0,0 +1,32 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>bsf</groupId>
<artifactId>bsf</artifactId>
<version>2.4.0</version>
<name>Bean Scripting Framework</name>
<url>http://jakarta.apache.org/bsf</url>
<scm>
<connection>scm:svn:http://svn.apache.org/jakarta/bsf/tags/bsf-2.4.0</connection>
<developerConnection>scm:svn:https://svn.apache.org/jakarta/bsf/tags/bsf-2.4.0</developerConnection>
<url>http://svn.apache.org/viewvc/jakarta/bsf/tags/bsf-2.4.0</url>
</scm>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

BIN
bsf-src-2.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

7
bsf-src-2.4.0.tar.gz.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
iD8DBQBFJnx0/Hd0ETKdgNIRAo4hAJ9TdF9fE7ahIaAkwE/8ZSz/Wb1+VACeOU2h
cGcIn3jdS4c2f3YAsyT7zN4=
=exHF
-----END PGP SIGNATURE-----

168
bsf.changes Normal file
View File

@ -0,0 +1,168 @@
-------------------------------------------------------------------
Wed Jan 8 07:30:23 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- BuildIgnore jline1 instead of jline, since the dependency of
rhino changed
-------------------------------------------------------------------
Tue Apr 9 11:55:27 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove reference to parent pom, since we do not use Maven to
build this package
-------------------------------------------------------------------
Tue Feb 12 11:14:35 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- BuildIgnore jline to avoid a build cycle
-------------------------------------------------------------------
Tue Feb 5 16:30:07 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Clean the spec file and sanitize dependencies
-------------------------------------------------------------------
Tue Nov 27 09:13:05 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Modified patch:
* build-file.patch
+ Fix build of script providers
-------------------------------------------------------------------
Wed May 16 05:52:07 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to anticipate a possible removal
of 1.6 compatibility
- Modified patch:
* build.properties.patch
+ specify source level 8
-------------------------------------------------------------------
Fri Dec 22 15:21:22 UTC 2017 - fstrba@suse.com
- Assure that we build with java source and target level 1.6
-------------------------------------------------------------------
Wed Sep 20 20:32:46 UTC 2017 - fstrba@suse.com
- Fix javadoc errors with jdk9: use build-jar-repository instead
of system-wide CLASSPATH environmental variable
- Clean spec file and run fdupes on documentation
-------------------------------------------------------------------
Thu Sep 7 17:18:12 UTC 2017 - fstrba@suse.com
- Force java source and target levels to 1.6 in order to allow
building with jdk9
- Force using of java-1_8_0-openjdk-devel, since javadoc errors are
fatal in jdk9
-------------------------------------------------------------------
Sat May 20 18:41:16 UTC 2017 - tchvatal@suse.com
- Remove jython from dependencies, not needed
-------------------------------------------------------------------
Fri May 19 11:38:11 UTC 2017 - pcervinka@suse.com
- New build dependency: javapackages-local
- Spec file cleaned
-------------------------------------------------------------------
Wed Mar 25 09:24:47 UTC 2015 - tchvatal@suse.com
- Remove gpg-offline dep and cleanup with spec-cleaner
-------------------------------------------------------------------
Wed Mar 18 09:46:03 UTC 2015 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Mon Sep 9 11:05:34 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Wed Aug 28 08:57:26 UTC 2013 - mvyskocil@suse.com
- update to 2.4.0
* can be used as an extension package to Java by placing it into
"jre/lib/ext" [using the thread's context classloader, ie. the result
of 'Thread.currentThread().getContextClassLoader()']
* rely on commons-logging or log4j
* removed jpython engine, supperseeded by jython
* and more, see CHANGES.txt
- add gpg verification
- drop bsf-disable-rhino.patch
- add build-file.patch and build.properties.patch
- use add_maven_depmap from javapackages-tools
-------------------------------------------------------------------
Tue Feb 28 14:14:36 UTC 2012 - mvyskocil@suse.cz
- ignore mysql-connector-java from build to break a build cycle
-------------------------------------------------------------------
Sat Sep 17 20:56:11 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
-------------------------------------------------------------------
Mon Aug 31 13:29:00 CEST 2009 - coolo@novell.com
- fix last change
-------------------------------------------------------------------
Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de
- make patch0 usage consistent
-------------------------------------------------------------------
Tue Aug 4 06:35:09 UTC 2009 - mvyskocil@suse.cz
- Remove rhino dependency at all
- Added pom and maven depmap files from jpackage 5.0
- Removed javadoc %%post/un scripts
-------------------------------------------------------------------
Mon Aug 3 16:09:13 UTC 2009 - mvyskocil@suse.cz
- Build using rhino
- Used bzip2 archive
-------------------------------------------------------------------
Wed Nov 5 02:17:54 CET 2008 - ro@suse.de
- buildignore rhino to fix build
-------------------------------------------------------------------
Mon Sep 25 14:32:10 CEST 2006 - skh@suse.de
- don't use icecream
- use source="1.4" and target="1.4" for build with java 1.5
-------------------------------------------------------------------
Wed Jan 25 21:45:56 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jul 27 14:57:53 CEST 2005 - jsmeix@suse.de
- Adjustments in the spec file.
-------------------------------------------------------------------
Mon Jul 18 15:42:40 CEST 2005 - jsmeix@suse.de
- Current version 2.3.0 from JPackage.org
-------------------------------------------------------------------
Thu Sep 16 16:03:42 CEST 2004 - skh@suse.de
- Fix prerequires in javadoc subpackage
-------------------------------------------------------------------
Sat Sep 4 23:57:39 CEST 2004 - skh@suse.de
- Initial package created with version 2.3.0 (JPackage 1.5)

39
bsf.keyring Normal file
View File

@ -0,0 +1,39 @@
pub 1024D/329D80D2 2005-11-04
uid Sanka Samaranayake (Oxygenating The Web Service Platform) <sanka@wso2.com>
uid Sanka Samaranayake (Apache Software Foundation) <sanka@apache.org>
sub 2048g/7D6A3872 2005-11-04
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQGiBENrqaARBADKPu4/VhGW456GgQD7CGdwyrk0NZs66J+KIbiaI8ajz7NJtE1x
o5tF+3nTHL1vqYongVrgk0CESPIIbZwyqDHwu+YFlsu5oIW1iWUeR1/GzggooMKZ
D5fUn0D5B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wx1RXLd0M8Ee5eyYQSidP3iEmPiKpIIFrJ1aZRqQxfd58X
wm0NkrG6PEw7UQ2n/DwmACOKoD1tiwWaJCku8H0zSdiIK9LpDG/9Lrf/EVwjYBWJ
SZtz0f3Oez0Fo6M+XC7Y36Rv1NKc6VNRovDavJentAv9YCRLkTvX80+80dhnGBQX
RYBqs8k/9t4BCBsyYBeqTGXGs+8ABAsIAOFSngcfzVuT0jksHggZ4HeaSYoxnIZu
RkdJjyJ6m4mnbbINp/5Ptoh7juZIAuxSKEriIMYg0ojfAnqQseK0n3MlHSdRAK+D
L5YqAMIMRI3CikdWrkEahmmql3Iv0kBGLPudil1krmqxP6iQHZd0ZkHLCw5V1gkB
xKA04NorLWdiZJL72R5f169u/t0Aa1LB8EbSMxPpTmWvxEzGV0Sp/d4DaGey+GaO
0ezgN7HwFFmIdoDmDjTJ6mIFawpsUn0hsDVxzAo8wRLI+xWQbO7WvJ2qjpj6gmZG
htHpaiMkQQhj2DlYzpsjszdCKQdBCGqSbQMmT5UxgDo45zGj1Sp3vx2ISQQYEQIA
CQUCQ2upwQIbDAAKCRD8d3QRMp2A0mSJAJ4lORRsyaGVC0XK9FhPHi1H7DZjJACg
kkrEBiim5UV69MOCpFKPNJPba6E=
=OSx+
-----END PGP PUBLIC KEY BLOCK-----

118
bsf.spec Normal file
View File

@ -0,0 +1,118 @@
#
# spec file for package bsf
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bsf
Version: 2.4.0
Release: 0
Summary: Bean Scripting Framework
License: Apache-2.0
Group: Development/Libraries/Java
URL: http://commons.apache.org/bsf/
Source0: http://www.apache.org/dist/commons/bsf/source/%{name}-src-%{version}.tar.gz
Source1: bsf-pom.xml
Source1000: http://www.apache.org/dist/commons/bsf/source/%{name}-src-%{version}.tar.gz.asc
Source1001: bsf.keyring
Patch0: build-file.patch
Patch1: build.properties.patch
BuildRequires: ant
BuildRequires: apache-commons-logging
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: rhino
BuildRequires: xalan-j2
#!BuildIgnore: jline1
Requires: mvn(commons-logging:commons-logging)
BuildArch: noarch
%description
Bean Scripting Framework (BSF) is a set of Java classes that provides
scripting language support within Java applications and access to Java
objects and methods from scripting languages. BSF allows writing JSPs
in languages other than Java while providing access to the Java class
library. In addition, BSF permits any Java application to be
implemented in part (or dynamically extended) by a language that is
embedded within it. This is achieved by providing an API that permits
calling scripting language engines from within Java as well as an
object registry that exposes Java objects to these scripting language
engines.
This BSF package currently supports several scripting languages: *
Javascript (using Rhino ECMAScript, from the Mozilla project)
* XSLT Stylesheets (as a component of Apache XML project's Xalan and
Xerces)
In addition, the following languages are supported with their own
BSF engines: * Java (using BeanShell, from the BeanShell project)
* JRuby
* JudoScript
%package javadoc
Summary: Javadoc for bsf
Group: Development/Libraries/Java
%description javadoc
Bean Scripting Framework (BSF) is a set of Java classes which provides
scripting language support within Java applications, and access to Java
objects and methods from scripting languages. BSF allows one to write
JSPs in languages other than Java while providing access to the Java
class library. In addition, BSF permits any Java application to be
implemented in part (or dynamically extended) by a language that is
embedded within it. This is achieved by providing an API that permits
calling scripting language engines from within Java, as well as an
object registry that exposes Java objects to these scripting language
engines.
This package contains the javadoc documentation for the Bean Scripting
Framework.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
find -name \*.jar -delete
%build
mkdir -p lib
build-jar-repository -s -p lib apache-commons-logging rhino xalan-j2
%{ant} -Dant.build.javac.source=8 -Dant.build.javac.target=8 jar javadocs
%install
# jar
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 build/lib/%{name}.jar \
%{buildroot}%{_javadir}/%{name}.jar
# pom and depmap frag
install -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.bsf:%{name}"
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%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}
%changelog

85
build-file.patch Normal file
View File

@ -0,0 +1,85 @@
diff -urEbwB bsf-2.4.0-orig/build.xml bsf-2.4.0/build.xml
--- bsf-2.4.0-orig/build.xml 2018-11-27 10:25:00.759233502 +0100
+++ bsf-2.4.0/build.xml 2018-11-27 10:28:36.864365763 +0100
@@ -102,7 +102,7 @@
<pathelement location="${build.tests}"/>
</path>
- <target name="init" depends="clean">
+ <target name="init">
<tstamp />
@@ -122,23 +122,61 @@
<!-- ================================================================= -->
<!-- Determines what optional components are available -->
<!-- ================================================================= -->
- <available property="jacl.present" classname="tcl.lang.JACL" />
-
- <available property="jython.present" classname="org.python.util.jython" />
-
- <available property="netrexx.present" classname="netrexx.lang.Rexx" />
-
- <available property="rhino.present" classname="org.mozilla.javascript.Scriptable" />
-
- <available property="xalan.present" classname="org.apache.xalan.xslt.EnvironmentCheck" />
-
- <available property="junit.present" classname="junit.framework.TestCase" />
+ <available property="jacl.present" classname="tcl.lang.JACL">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+
+ <available property="jython.present" classname="org.python.util.jython">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+
+ <available property="netrexx.present" classname="netrexx.lang.Rexx">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+
+ <available property="rhino.present" classname="org.mozilla.javascript.Scriptable">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+
+ <available property="xalan.present" classname="org.apache.xalan.xslt.EnvironmentCheck">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+
+ <available property="junit.present" classname="junit.framework.TestCase">
+ <classpath>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </classpath>
+ </available>
+ <!--
<uptodate property="javac.notRequired" targetfile="${build.lib}/${project.name}.jar">
<srcfiles dir="${src.dir}">
<patternset refid="javac.source.files" />
</srcfiles>
</uptodate>
+ -->
<uptodate property="javadoc.required" targetfile="${build.lib}/${project.name}.jar">
<srcfiles dir="${build.dir}" includes="**/*.html" />

47
build.properties.patch Normal file
View File

@ -0,0 +1,47 @@
diff --new-file -r -u bsf-2.4.0-orig/build-properties.xml bsf-2.4.0/build-properties.xml
--- bsf-2.4.0-orig/build-properties.xml 1970-01-01 01:00:00.000000000 +0100
+++ bsf-2.4.0/build-properties.xml 2007-05-23 15:33:04.000000000 +0200
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="props">
+ <property name="project.name" value="bsf"/>
+ <property name="project.fullName" value="Bean Scripting Framework"/>
+ <property name="project.version" value="2.4.0"/>
+ <property name="project.debug" value="on"/>
+ <property name="project.deprecation" value="on"/>
+
+ <property name="build.file" value="build.xml"/>
+ <property name="build.dir" value="build"/>
+ <property name="build.dest" value="build/classes"/>
+ <property name="build.lib" value="build/lib"/>
+ <property name="build.lib.win32" value="build/lib/win32"/>
+ <property name="build.samples" value="build/samples"/>
+ <property name="build.samples.calc" value="build/samples/calc"/>
+ <property name="build.samples.scriptedui" value="build/samples/scriptedui"/>
+ <property name="build.samples.xsl" value="build/samples/xsl"/>
+ <property name="build.javadocs" value="build/javadocs"/>
+ <property name="build.tests" value="build/testcases" />
+
+ <property name="dist.dir" value="dist"/>
+ <property name="dist.dir.root" value="${dist.dir}/${project.name}-${project.version}"/>
+ <property name="dist.bin.file" value="${dist.dir}/${project.name}-bin-${project.version}"/>
+ <property name="dist.src.file" value="${dist.dir}/${project.name}-src-${project.version}"/>
+
+ <property name="packages" value="org.apache.*"/>
+
+ <property name="samples.dir" value="samples"/>
+
+ <property name="site.src" location="xdocs"/>
+ <property name="site.dest" location="docs"/>
+ <property name="site.projectFile" value="stylesheets/project.xml"/>
+
+ <property name="source.level" value="8" />
+
+ <property name="src.dir" value="src"/>
+
+ <property name="templ.path" location="xdocs/stylesheets"/>
+
+ <property name="tests.dir" value="test"/>
+
+ <property name="velocity.props" location="${site.src}/velocity.properties"/>
+</project>