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
|
|
|
#
|
2018-05-16 07:53:51 +02:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
2018-11-27 10:13:23 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:06:21 +01:00
|
|
|
#
|
|
|
|
|
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
|
2017-09-20 22:34:19 +02:00
|
|
|
BuildRequires: fdupes
|
2018-05-16 07:53:51 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-05-19 13:43:51 +02:00
|
|
|
BuildRequires: javapackages-local
|
2013-09-09 13:52:02 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2013-08-28 11:00:38 +02:00
|
|
|
BuildRequires: rhino
|
|
|
|
BuildRequires: xalan-j2
|
|
|
|
BuildRequires: xml-commons-apis
|
2015-03-25 10:25:05 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
%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
|
2017-09-20 22:34:19 +02:00
|
|
|
mkdir -p lib
|
|
|
|
build-jar-repository -s -p lib apache-commons-logging rhino xalan-j2
|
2018-05-16 07:53:51 +02:00
|
|
|
%{ant} -Dant.build.javac.source=8 -Dant.build.javac.target=8 jar javadocs
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%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}
|
2017-09-20 22:34:19 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2007-01-16 00:06:21 +01:00
|
|
|
|
|
|
|
%files
|
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
|
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
|