2007-01-16 00:06:21 +01:00
|
|
|
#
|
2011-09-22 10:17:31 +02:00
|
|
|
# spec file for package bsf
|
2007-01-16 00:06:21 +01:00
|
|
|
#
|
2016-06-03 11:23:56 +02:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:06:21 +01:00
|
|
|
#
|
2008-11-07 14:58:49 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:06:21 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-28 15:15:09 +01:00
|
|
|
|
2009-08-06 21:48:46 +02:00
|
|
|
Name: bsf
|
2013-08-28 11:00:38 +02:00
|
|
|
Version: 2.4.0
|
2012-02-28 15:15:09 +01:00
|
|
|
Release: 0
|
2007-01-16 00:06:21 +01:00
|
|
|
Summary: Bean Scripting Framework
|
2012-02-28 15:15:09 +01:00
|
|
|
License: Apache-2.0
|
2007-01-16 00:06:21 +01:00
|
|
|
Group: Development/Libraries/Java
|
2013-08-28 11:00:38 +02:00
|
|
|
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: java-devel
|
2013-09-09 13:52:02 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2013-08-28 11:00:38 +02:00
|
|
|
BuildRequires: jython
|
|
|
|
BuildRequires: rhino
|
|
|
|
#!BuildIgnore: mysql-connector-java
|
|
|
|
BuildRequires: xalan-j2
|
|
|
|
BuildRequires: xml-commons-apis
|
2015-03-25 10:25:05 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2013-08-28 11:00:38 +02:00
|
|
|
|
2007-01-16 00:06:21 +01:00
|
|
|
%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
|
2015-03-25 10:25:05 +01:00
|
|
|
# FIXME: use proper Requires(pre/post/preun/...)
|
|
|
|
PreReq: coreutils
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
# remove all binary libs
|
2015-03-25 10:25:05 +01:00
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
rm -fr bsf
|
2013-08-28 11:00:38 +02:00
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%build
|
2015-03-25 10:25:05 +01:00
|
|
|
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
|
2013-08-28 11:00:38 +02:00
|
|
|
export CLASSPATH=$(build-classpath apache-commons-logging rhino xalan-j2 jython servlet jspapi)
|
|
|
|
ant jar
|
2015-03-25 10:25:05 +01:00
|
|
|
rm -rf bsf/src/org/apache/bsf/engines/java
|
2007-01-16 00:06:21 +01:00
|
|
|
ant javadocs
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2015-03-25 10:25:05 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -m 644 build/lib/%{name}.jar \
|
2013-08-28 11:00:38 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
2009-08-06 21:48:46 +02:00
|
|
|
# pom and depmap frag
|
2015-03-25 10:25:05 +01:00
|
|
|
install -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2013-08-28 11:00:38 +02:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.bsf:%{name}"
|
|
|
|
|
2007-01-16 00:06:21 +01:00
|
|
|
# javadoc
|
2015-03-25 10:25:05 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-08-28 11:00:38 +02:00
|
|
|
%doc LICENSE.txt AUTHORS.txt CHANGES.txt NOTICE.txt README.txt TODO.txt RELEASE-NOTE.txt
|
2007-01-16 00:06:21 +01:00
|
|
|
%{_javadir}/*
|
2013-08-28 11:00:38 +02:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
2015-03-18 11:06:21 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
2013-08-28 11:00:38 +02:00
|
|
|
%dir %{_javadocdir}/%{name}
|
2009-08-06 21:48:46 +02:00
|
|
|
%{_javadocdir}/%{name}
|
2007-01-16 00:06:21 +01:00
|
|
|
|
2008-11-07 14:58:49 +01:00
|
|
|
%changelog
|