Package Init

This commit is contained in:
wanjk19 2019-12-13 10:09:28 +08:00
parent 8d38764a4e
commit f252c84ae4
5 changed files with 189 additions and 0 deletions

37
bsf-pom.xml Normal file
View File

@ -0,0 +1,37 @@
<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>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>3</version>
</parent>
<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 Normal file

Binary file not shown.

72
bsf.spec Normal file
View File

@ -0,0 +1,72 @@
Name: bsf
Epoch: 0
Version: 2.4.0
Release: 32
Summary: Bean Scripting Framework
License: ASL 2.0
URL: http://commons.apache.org/bsf/
BuildArch: noarch
Source0: http://apache.mirror.anlx.net//commons/%{name}/source/%{name}-src-%{version}.tar.gz
Source1: bsf-pom.xml
Patch0000: build-file.patch
Patch0001: build.properties.patch
BuildRequires: javapackages-local ant apache-parent xalan-j2 rhino apache-commons-logging
%description
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.
The two primary components of BSF are the BSFManager and the BSFEngine.
The BSFManager handles all scripting execution engines running under its
control, and maintains the object registry that permits scripts access
to Java objects. By creating an instance of the BSFManager class, a Java
application can gain access to scripting services.
The BSFEngine provides an interface that must be implemented for a language
to be used by BSF. This interface provides an abstraction of the scripting
language's capabilities that permits generic handling of script execution
and object registration within the execution context of the scripting
language engine.
An application can instantiate a single BSFManager, and execute several
different scripting languages identically via the BSFEngine interface. Furthermore,
all of the scripting languages handled by the BSFManager are aware of the
objects registered with that BSFManager, and the execution state of those
scripting languages is maintained for the lifetime of the BSFManager.
%package help
Summary: Help documentation for bsf
Provides: bsf-javadoc = %{epoch}:%{version}-%{release}
Obsoletes: bsf-javadoc < %{epoch}:%{version}-%{release}
%description help
The Package is infomation about bsf.
%prep
%autosetup -p1
find -name \*.jar -delete
%mvn_file : bsf
%mvn_alias : org.apache.bsf:
%build
export CLASSPATH=$(build-classpath apache-commons-logging rhino xalan-j2)
ant jar javadocs
%mvn_artifact %{SOURCE1} build/lib/bsf.jar
%install
%mvn_install -J build/javadocs
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt
%files help -f .mfiles-javadoc
%changelog
* Thu Dec 12 2019 wanjiankang <wanjiankang@huawei.com> - 0:2.4.0-32
- Package Init

33
build-file.patch Normal file
View File

@ -0,0 +1,33 @@
--- bsf-2.4.0-orig/build.xml 2009-09-09 11:51:20.000000000 +0200
+++ bsf-2.4.0/build.xml 2009-09-14 08:42:17.000000000 +0200
@@ -102,7 +102,7 @@
<pathelement location="${build.tests}"/>
</path>
- <target name="init" depends="clean">
+ <target name="init">
<tstamp />
@@ -134,11 +134,13 @@
<available property="junit.present" classname="junit.framework.TestCase" />
+ <!--
<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" />
@@ -268,6 +270,7 @@
<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}">
+ <arg value="-Xdoclint:none" />
<classpath refid="compile.classpath" />
<fileset dir="${src.dir}">
<patternset refid="java.source.files"></patternset>

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="1.3" />
+
+ <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>