commit 201043f97e69a5215c868d05f3d7bdc0bee7567c364c1c231edda96a6f74e647 Author: Adrian Schröter Date: Fri May 3 11:24:28 2024 +0200 Sync from SUSE:SLFO:Main bsf revision 4af585757feb71b73204988f6ca64282 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/bsf-pom.xml b/bsf-pom.xml new file mode 100644 index 0000000..3655246 --- /dev/null +++ b/bsf-pom.xml @@ -0,0 +1,32 @@ + + 4.0.0 + bsf + bsf + 2.4.0 + Bean Scripting Framework + http://jakarta.apache.org/bsf + + + scm:svn:http://svn.apache.org/jakarta/bsf/tags/bsf-2.4.0 + scm:svn:https://svn.apache.org/jakarta/bsf/tags/bsf-2.4.0 + http://svn.apache.org/viewvc/jakarta/bsf/tags/bsf-2.4.0 + + + + + commons-logging + commons-logging + 1.0.4 + compile + + + junit + junit + 3.8.2 + test + + + + diff --git a/bsf-src-2.4.0.tar.gz b/bsf-src-2.4.0.tar.gz new file mode 100644 index 0000000..e90b0da --- /dev/null +++ b/bsf-src-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ab58cf5738c144f4d85a4a442c2f33be2c4c502dca6e29e0c570c2a51ae6ae9 +size 299749 diff --git a/bsf-src-2.4.0.tar.gz.asc b/bsf-src-2.4.0.tar.gz.asc new file mode 100644 index 0000000..9294aab --- /dev/null +++ b/bsf-src-2.4.0.tar.gz.asc @@ -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----- diff --git a/bsf.changes b/bsf.changes new file mode 100644 index 0000000..8e974db --- /dev/null +++ b/bsf.changes @@ -0,0 +1,168 @@ +------------------------------------------------------------------- +Wed Jan 8 07:30:23 UTC 2020 - Fridrich Strba + +- BuildIgnore jline1 instead of jline, since the dependency of + rhino changed + +------------------------------------------------------------------- +Tue Apr 9 11:55:27 UTC 2019 - Fridrich Strba + +- 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 + +- BuildIgnore jline to avoid a build cycle + +------------------------------------------------------------------- +Tue Feb 5 16:30:07 UTC 2019 - Fridrich Strba + +- Clean the spec file and sanitize dependencies + +------------------------------------------------------------------- +Tue Nov 27 09:13:05 UTC 2018 - Fridrich Strba + +- 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) + diff --git a/bsf.keyring b/bsf.keyring new file mode 100644 index 0000000..c119038 --- /dev/null +++ b/bsf.keyring @@ -0,0 +1,39 @@ +pub 1024D/329D80D2 2005-11-04 +uid Sanka Samaranayake (Oxygenating The Web Service Platform) +uid Sanka Samaranayake (Apache Software Foundation) +sub 2048g/7D6A3872 2005-11-04 + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.19 (GNU/Linux) + +mQGiBENrqaARBADKPu4/VhGW456GgQD7CGdwyrk0NZs66J+KIbiaI8aj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CRodHhJggTD8RG70cZBpKtunAi/Q78Qfq3bNrv+qHOdTmjIRPxXlMPT7GTYj7 +6tIXXwj1h/cXJKQ0Rnwx1RXLd0M8Ee5eyYQSidP3iEmPiKpIIFrJ1aZRqQxfd58X +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----- diff --git a/bsf.spec b/bsf.spec new file mode 100644 index 0000000..cad6b37 --- /dev/null +++ b/bsf.spec @@ -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 diff --git a/build-file.patch b/build-file.patch new file mode 100644 index 0000000..fc877c6 --- /dev/null +++ b/build-file.patch @@ -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 @@ + + + +- ++ + + + +@@ -122,23 +122,61 @@ + + + +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + ++ + + + diff --git a/build.properties.patch b/build.properties.patch new file mode 100644 index 0000000..19bfafa --- /dev/null +++ b/build.properties.patch @@ -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 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++