Accepting request 196632 from Java:packages
- 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 OBS-URL: https://build.opensuse.org/request/show/196632 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bsf?expand=0&rev=18
This commit is contained in:
commit
3bd17a0bab
@ -1,6 +0,0 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>bsf</groupId>
|
||||
<artifactId>bsf</artifactId>
|
||||
<version>2.3.0</version>
|
||||
</project>
|
@ -1,18 +0,0 @@
|
||||
<project name="apache-bsf-component-info">
|
||||
<!-- ============================================================ -->
|
||||
<!-- Apache Bean Scripting Framework (BSF) -->
|
||||
<!-- ============================================================ -->
|
||||
<component id="apache-bsf"
|
||||
licenseType="apache-1.1"
|
||||
version="2.3.0-brew"
|
||||
projectHome="http://jakarta.apache.org/bsf/"
|
||||
description="Apache Bean Scripting Framework (BSF)"
|
||||
scm=":ext:cvs.devel.redhat.com:/cvs/dist/bsf"
|
||||
tag="bsf-2_3_0-12_jpp5">
|
||||
<!-- Built using JDK 1.4 -->
|
||||
<artifact id="bsf.jar"/>
|
||||
<export>
|
||||
<include input="bsf.jar"/>
|
||||
</export>
|
||||
</component>
|
||||
</project>
|
@ -1,12 +0,0 @@
|
||||
--- src/bsf/build.xml
|
||||
+++ src/bsf/build.xml
|
||||
@@ -128,9 +128,6 @@
|
||||
<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"/>
|
||||
|
37
bsf-pom.xml
Normal file
37
bsf-pom.xml
Normal 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>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:65eb8967e18879298775319246885e88ddea1ff2956b0ab9efa0f761627a66c9
|
||||
size 866760
|
BIN
bsf-src-2.4.0.tar.gz
(Stored with Git LFS)
Normal file
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
7
bsf-src-2.4.0.tar.gz.asc
Normal 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-----
|
15
bsf.changes
15
bsf.changes
@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
39
bsf.keyring
Normal file
39
bsf.keyring
Normal 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
|
||||
D5fUn0D5BH12NC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D8RG70cZBpKtunAi/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-----
|
80
bsf.spec
80
bsf.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package bsf
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,33 +17,35 @@
|
||||
# icecream 0
|
||||
|
||||
|
||||
%define name bsf
|
||||
%define version 2.3.0
|
||||
%define release 8jpp
|
||||
%define section free
|
||||
|
||||
Name: bsf
|
||||
BuildRequires: ant
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jython
|
||||
#!BuildIgnore: mysql-connector-java
|
||||
BuildRequires: servletapi4
|
||||
BuildRequires: xalan-j2
|
||||
BuildRequires: xml-commons-apis
|
||||
Version: 2.3.0
|
||||
Version: 2.4.0
|
||||
Release: 0
|
||||
Summary: Bean Scripting Framework
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://jakarta.apache.org/bsf/
|
||||
Source0: http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.bz2
|
||||
Source1: bsf-component-info.xml
|
||||
Source2: bsf-2.3.0.pom
|
||||
#Patch: %{name}-java14compat.patch
|
||||
Patch0: bsf-disable-rhino.patch
|
||||
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: bsf-disable-rhino.patch
|
||||
Patch0: build-file.patch
|
||||
Patch1: build.properties.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: gpg-offline
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils >= 1.7
|
||||
BuildRequires: jython
|
||||
BuildRequires: rhino
|
||||
#!BuildIgnore: mysql-connector-java
|
||||
#BuildRequires: servletapi4
|
||||
BuildRequires: xalan-j2
|
||||
BuildRequires: xml-commons-apis
|
||||
|
||||
%description
|
||||
Bean Scripting Framework (BSF) is a set of Java classes that provides
|
||||
scripting language support within Java applications and access to Java
|
||||
@ -94,50 +96,46 @@ Framework.
|
||||
|
||||
|
||||
%prep
|
||||
%gpg_verify %{SOURCE1000}
|
||||
%setup -q
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec %{__rm} -f {} \;
|
||||
%{__rm} -fr bsf
|
||||
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
|
||||
sed -i "s/@TAG@/$tag/g" %{SOURCE1}
|
||||
%patch0 -b .disable-rhino
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
|
||||
export CLASSPATH=$(build-classpath rhino xalan-j2 jython servlet jspapi)
|
||||
cd src
|
||||
ant realclean
|
||||
ant compile
|
||||
export CLASSPATH=$(build-classpath apache-commons-logging rhino xalan-j2 jython servlet jspapi)
|
||||
ant jar
|
||||
%{__rm} -rf bsf/src/org/apache/bsf/engines/java
|
||||
ant javadocs
|
||||
|
||||
%install
|
||||
# jar
|
||||
%{__install} -d -m 755 %{buildroot}%{_javadir}
|
||||
%{__install} -m 644 src/build/lib/%{name}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
|
||||
ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||
%{__install} -m 644 build/lib/%{name}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# pom and depmap frag
|
||||
%{__install} -d -m 755 %{buildroot}%{_datadir}/maven2/poms
|
||||
%{__install} -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-bsf.pom
|
||||
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
|
||||
%{__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}-%{version}
|
||||
%{__cp} -pr src/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
||||
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
||||
%{__cp} -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc license.txt src/AUTHORS src/BUILDING src/CHANGES src/CHANGES.old src/INSTALL src/README src/TODO
|
||||
%doc LICENSE.txt AUTHORS.txt CHANGES.txt NOTICE.txt README.txt TODO.txt RELEASE-NOTE.txt
|
||||
%{_javadir}/*
|
||||
%{_datadir}/maven2/poms
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}-%{version}/*
|
||||
%dir %{_javadocdir}/%{name}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
|
25
build-file.patch
Normal file
25
build-file.patch
Normal file
@ -0,0 +1,25 @@
|
||||
--- 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" />
|
47
build.properties.patch
Normal file
47
build.properties.patch
Normal 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>
|
Loading…
Reference in New Issue
Block a user