* bsf: Add package version 2.4.0

* bsf: cgmanifest add package entry

* bsf: licenses add package entry

* bsf: cgmanifest fix lexical position of package entry
This commit is contained in:
Sumynwa 2023-01-30 16:26:10 +05:30 коммит произвёл GitHub
Родитель b9bc8d7fdf
Коммит b145681850
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 414 добавлений и 1 удалений

Просмотреть файл

@ -0,0 +1,12 @@
diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -305,7 +305,7 @@ Copyright:
<target name="javadocs" description="Generates the API documentation." depends="compile">
<mkdir dir="${build.javadocs}" />
<!-- FIXME: Excluding some packages temporarily -->
- <javadoc packagenames="${packages}" failonerror="true" excludepackagenames="org.apache.bsf.engines.java, org.apache.bsf.engines.javaclass" destdir="${build.javadocs}" author="true" version="false" use="true" windowtitle="${project.fullName} API" doctitle="${project.fullName}" source="${source.level}">
+ <javadoc packagenames="${packages}" failonerror="true" excludepackagenames="org.apache.bsf.engines.java, org.apache.bsf.engines.javaclass" destdir="${build.javadocs}" author="true" version="false" use="true" windowtitle="${project.fullName} API" doctitle="${project.fullName}" source="${source.level}" additionalparam="-Xdoclint:none">
<classpath refid="compile.classpath" />
<fileset dir="${src.dir}">
<patternset refid="java.source.files"></patternset>

Просмотреть файл

@ -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>

Просмотреть файл

@ -0,0 +1,6 @@
{
"Signatures": {
"bsf-pom.xml": "b91c47ceb058941603f1fd70dedae49c0d6541573243f436f10bffbf0a12fdd9",
"bsf-src-2.4.0.tar.gz": "5ab58cf5738c144f4d85a4a442c2f33be2c4c502dca6e29e0c570c2a51ae6ae9"
}
}

220
SPECS-EXTENDED/bsf/bsf.spec Normal file
Просмотреть файл

@ -0,0 +1,220 @@
Summary: Bean Scripting Framework
Name: bsf
Version: 2.4.0
Release: 19%{?dist}
License: Apache-2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Libraries/Java
URL: https://commons.apache.org/bsf/
Source0: https://downloads.apache.org/commons/%{name}/source/%{name}-src-%{version}.tar.gz
Source1: bsf-pom.xml
Patch0: build-file.patch
Patch1: build.properties.patch
Patch2: bsf-doclint-ignore.patch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: apache-commons-logging
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local-bootstrap
BuildRequires: rhino
BuildRequires: xalan-j2
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
%autosetup -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
* Tue Jan 03 2023 Sumedh Sharma <sumsharma@microsoft.com> - 2.4.0-19
- License verified
* Thu Oct 14 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.4.0-18
- Converting the 'Release' tag to the '[number].[distribution]' format.
* Tue Nov 17 2020 Ruying Chen <v-ruyche@microsoft.com> - 2.4.0-17.4
- Initial CBL-Mariner import from openSUSE Tumbleweed (license: same as "License" tag).
- Use javapackages-local-bootstrap to avoid build cycle.
- Set javadoc Xdoclint:none with bsf-doclint-ignore.patch.
* Wed Jan 8 2020 Fridrich Strba <fstrba@suse.com>
- BuildIgnore jline1 instead of jline, since the dependency of
rhino changed
* Tue Apr 9 2019 Fridrich Strba <fstrba@suse.com>
- Remove reference to parent pom, since we do not use Maven to
build this package
* Tue Feb 12 2019 Fridrich Strba <fstrba@suse.com>
- BuildIgnore jline to avoid a build cycle
* Tue Feb 5 2019 Fridrich Strba <fstrba@suse.com>
- Clean the spec file and sanitize dependencies
* Tue Nov 27 2018 Fridrich Strba <fstrba@suse.com>
- Modified patch:
* build-file.patch
+ Fix build of script providers
* Wed May 16 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 2017 fstrba@suse.com
- Assure that we build with java source and target level 1.6
* Wed Sep 20 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 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 2017 tchvatal@suse.com
- Remove jython from dependencies, not needed
* Fri May 19 2017 pcervinka@suse.com
- New build dependency: javapackages-local
- Spec file cleaned
* Wed Mar 25 2015 tchvatal@suse.com
- Remove gpg-offline dep and cleanup with spec-cleaner
* Wed Mar 18 2015 tchvatal@suse.com
- Fix build with new javapackages-tools
* Mon Sep 9 2013 tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
* Wed Aug 28 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 2012 mvyskocil@suse.cz
- ignore mysql-connector-java from build to break a build cycle
* Sat Sep 17 2011 jengelh@medozas.de
- Remove redundant tags/sections from specfile
* Mon Aug 31 2009 coolo@novell.com
- fix last change
* Wed Aug 26 2009 mls@suse.de
- make patch0 usage consistent
* Tue Aug 4 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 2009 mvyskocil@suse.cz
- Build using rhino
- Used bzip2 archive
* Wed Nov 5 2008 ro@suse.de
- buildignore rhino to fix build
* Mon Sep 25 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 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jul 27 2005 jsmeix@suse.de
- Adjustments in the spec file.
* Mon Jul 18 2005 jsmeix@suse.de
- Current version 2.3.0 from JPackage.org
* Thu Sep 16 2004 skh@suse.de
- Fix prerequires in javadoc subpackage
* Sat Sep 4 2004 skh@suse.de
- Initial package created with version 2.3.0 (JPackage 1.5)

Просмотреть файл

@ -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" />

Просмотреть файл

@ -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>

2
SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md сгенерированный

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -2345,6 +2345,7 @@
"bcel",
"bea-stax",
"beust-jcommander",
"bsf",
"byaccj",
"cal10n",
"cdparanoia",

Просмотреть файл

@ -1242,6 +1242,16 @@
}
}
},
{
"component": {
"type": "other",
"other": {
"name": "bsf",
"version": "2.4.0",
"downloadUrl": "https://downloads.apache.org/commons/bsf/source/bsf-src-2.4.0.tar.gz"
}
}
},
{
"component": {
"type": "other",