148 lines
4.9 KiB
RPMSpec
148 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package bsf (Version 2.3.0)
|
|
#
|
|
# Copyright (c) 2009 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
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
# 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
|
|
BuildRequires: servletapi4
|
|
BuildRequires: xalan-j2
|
|
BuildRequires: xml-commons-apis
|
|
Version: 2.3.0
|
|
Release: 323
|
|
Summary: Bean Scripting Framework
|
|
License: Apache Software License ..
|
|
Url: http://jakarta.apache.org/bsf/
|
|
Group: Development/Libraries/Java
|
|
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
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%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
|
|
License: Apache Software License ..
|
|
PreReq: coreutils
|
|
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
|
|
find . -name "*.jar" -exec %{__rm} -f {} \;
|
|
%{__rm} -fr bsf
|
|
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
|
|
sed -i "s/@TAG@/$tag/g" %{SOURCE1}
|
|
%patch -b .disable-rhino
|
|
|
|
%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
|
|
%{__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)
|
|
# 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}
|
|
# 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})
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc license.txt src/AUTHORS src/BUILDING src/CHANGES src/CHANGES.old src/INSTALL src/README src/TODO
|
|
%{_javadir}/*
|
|
%{_datadir}/maven2/poms
|
|
%{_mavendepmapfragdir}
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root)
|
|
%dir %{_javadocdir}/%{name}-%{version}
|
|
%{_javadocdir}/%{name}-%{version}/*
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|