db99ef
# Copyright (c) 2000-2005, JPackage Project
db99ef
# All rights reserved.
db99ef
#
db99ef
# Redistribution and use in source and binary forms, with or without
db99ef
# modification, are permitted provided that the following conditions
db99ef
# are met:
db99ef
#
db99ef
# 1. Redistributions of source code must retain the above copyright
db99ef
#    notice, this list of conditions and the following disclaimer.
db99ef
# 2. Redistributions in binary form must reproduce the above copyright
db99ef
#    notice, this list of conditions and the following disclaimer in the
db99ef
#    documentation and/or other materials provided with the
db99ef
#    distribution.
db99ef
# 3. Neither the name of the JPackage Project nor the names of its
db99ef
#    contributors may be used to endorse or promote products derived
db99ef
#    from this software without specific prior written permission.
db99ef
#
db99ef
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
db99ef
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
db99ef
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
db99ef
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
db99ef
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
db99ef
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
db99ef
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
db99ef
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
db99ef
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
db99ef
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
db99ef
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
db99ef
#
db99ef
db99ef
Name:           bsf
db99ef
Version:        2.4.0
5d980d
Release:        19%{?dist}
db99ef
Epoch:          0
db99ef
Summary:        Bean Scripting Framework
db99ef
License:        ASL 2.0
db99ef
URL:            http://commons.apache.org/bsf/
db99ef
Group:          Development/Libraries
db99ef
Source0:        http://apache.mirror.anlx.net//commons/%{name}/source/%{name}-src-%{version}.tar.gz
db99ef
Source1:        %{name}-pom.xml
db99ef
Patch0:         build-file.patch
db99ef
Patch1:	        build.properties.patch
db99ef
BuildRequires:  jpackage-utils >= 1.6
db99ef
BuildRequires:  ant
db99ef
BuildRequires:  xalan-j2
db99ef
BuildRequires:  rhino
db99ef
BuildRequires:  apache-commons-logging
db99ef
Requires:       xalan-j2
db99ef
Requires:       apache-commons-logging
db99ef
Requires:       jpackage-utils
db99ef
BuildArch:      noarch
db99ef
db99ef
%description
db99ef
Bean Scripting Framework (BSF) is a set of Java classes which provides
db99ef
scripting language support within Java applications, and access to Java
db99ef
objects and methods from scripting languages. BSF allows one to write
db99ef
JSPs in languages other than Java while providing access to the Java
db99ef
class library. In addition, BSF permits any Java application to be
db99ef
implemented in part (or dynamically extended) by a language that is
db99ef
embedded within it. This is achieved by providing an API that permits
db99ef
calling scripting language engines from within Java, as well as an
db99ef
object registry that exposes Java objects to these scripting language
db99ef
engines.
db99ef
db99ef
BSF supports several scripting languages currently:
db99ef
* Javascript (using Rhino ECMAScript, from the Mozilla project)
db99ef
* Python (using either Jython or JPython)
db99ef
* Tcl (using Jacl)
db99ef
* NetRexx (an extension of the IBM REXX scripting language in Java)
db99ef
* XSLT Stylesheets (as a component of Apache XML project's Xalan and
db99ef
Xerces)
db99ef
db99ef
In addition, the following languages are supported with their own BSF
db99ef
engines:
db99ef
* Java (using BeanShell, from the BeanShell project)
db99ef
* JRuby
db99ef
* JudoScript
db99ef
db99ef
%package javadoc
db99ef
Summary:        Javadoc for %{name}
db99ef
Group:          Documentation
db99ef
Requires:       jpackage-utils
db99ef
db99ef
%description javadoc
db99ef
Javadoc for %{name}.
db99ef
db99ef
%prep
db99ef
%setup -q
db99ef
# remove all binary libs
db99ef
find . -name "*.jar" -exec %{__rm} -f {} \;
db99ef
%{__rm} -fr bsf
db99ef
db99ef
%patch0 -p1
db99ef
%patch1 -p1
db99ef
db99ef
%build
db99ef
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
db99ef
export CLASSPATH=$(build-classpath apache-commons-logging xalan-j2 rhino)
db99ef
ant jar
db99ef
%{__rm} -rf bsf/src/org/apache/bsf/engines/java
db99ef
ant javadocs
db99ef
db99ef
%install
db99ef
# jar
db99ef
%{__install} -d -m 755 %{buildroot}%{_javadir}
db99ef
%{__install} -m 644 build/lib/%{name}.jar \
db99ef
             %{buildroot}%{_javadir}/%{name}.jar
db99ef
# javadoc
db99ef
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}
db99ef
%{__cp} -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
db99ef
db99ef
%{__install} -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
db99ef
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "org.apache.bsf:%{name}"
db99ef
db99ef
%files
db99ef
%doc LICENSE.txt AUTHORS.txt CHANGES.txt NOTICE.txt README.txt TODO.txt RELEASE-NOTE.txt
db99ef
%{_javadir}/%{name}.jar
db99ef
%{_mavenpomdir}/JPP-%{name}.pom
db99ef
%{_mavendepmapfragdir}/%{name}
db99ef
db99ef
%files javadoc
db99ef
%doc LICENSE.txt NOTICE.txt
db99ef
%{_javadocdir}/%{name}
db99ef
db99ef
%changelog
5d980d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 02.4.0-19
5d980d
- Mass rebuild 2013-12-27
5d980d
db99ef
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4.0-18
db99ef
- Remove workaround for rpm bug #646523
db99ef
db99ef
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4.0-17
db99ef
- Rebuild to regenerate API documentation
db99ef
- Resolves: CVE-2013-1571
db99ef
db99ef
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.0-16
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
db99ef
db99ef
* Thu Nov 22 2012 Tomas Radej <tradej@redhat.com> - 0:2.4.0-15
db99ef
- Fixed URL of Source0
db99ef
db99ef
* Tue Nov 20 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.4.0-14
db99ef
- Remove unneeded BR: jython
db99ef
db99ef
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.0-13
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
db99ef
db99ef
* Fri Mar 16 2012 Alexander Kurtakov <akurtako@redhat.com> 0:2.4.0-12
db99ef
- Drop jsp/servlet api dependencies, leftovers from the past.
db99ef
db99ef
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.0-11
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
db99ef
db99ef
* Fri Dec  2 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.4.0-10
db99ef
- Fixes according to latest guidelines
db99ef
- Fix maven depmap
db99ef
db99ef
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.4.0-9
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
db99ef
db99ef
* Tue Sep 21 2010 Orion Poplawski <orion@cora.nwra.com> - 0:2.4.0-8
db99ef
- Build against rhino for JavaScript support
db99ef
db99ef
* Mon Jun 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.4.0-7
db99ef
- Added pom file to enable maven dependency resolution
db99ef
- Fix Source0 URL
db99ef
- Fix Group designation
db99ef
db99ef
* Mon Jun  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.4.0-6
db99ef
- Fix BR after jakarta-commons rename
db99ef
db99ef
* Wed Apr 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:2.4.0-5
db99ef
- Drop gcj support.
db99ef
- Build against servlet and jsp apis from tomcat6.
db99ef
db99ef
* Mon Jan 11 2010 Andrew Overholt <overholt@redhat.com> 2.4.0-4
db99ef
- Fix License (ASL 2.0 and not 1.1) (rhbz#554465).
db99ef
db99ef
* Mon Sep 14 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 0:2.4.0-3
db99ef
- Fix typo in Requires
db99ef
db99ef
* Wed Sep 09 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 0:2.4.0-1
db99ef
- New Upstream release: 2.4.0
db99ef
- Add jython build dependency to include bsf-jython engine
db99ef
db99ef
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.0-15
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
db99ef
db99ef
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.0-14
db99ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
db99ef
db99ef
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.3.0-13
db99ef
- drop repotag
db99ef
- fix license
db99ef
db99ef
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:2.3.0-12jpp.2
db99ef
- Autorebuild for GCC 4.3
db99ef
db99ef
* Wed Mar 07 2007 Permaine Cheung <pcheung@redhat.com> 0:2.3.0-11jpp.2
db99ef
- Update spec file as per Fedora guidelines
db99ef
db99ef
* Thu Aug 03 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-11jpp.1
db99ef
- Added missing requirements.
db99ef
db99ef
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> 0:2.3.0-10jpp_2fc
db99ef
- Rebuilt
db99ef
db99ef
* Fri Jul 21 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-10jpp_2fc
db99ef
- Removing vendor and distribution tags.
db99ef
db99ef
* Thu Jul 20 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-10jpp_1fc
db99ef
- Added conditional native compilation.
db99ef
- From gbenson@redhat:
db99ef
-   Build without Jython or Rhino for now.
db99ef
-   Build with servletapi5.
db99ef
-   Avoid Sun-specific classes.
db99ef
db99ef
* Wed Apr 26 2006 Fernando Nasser <fnasser@redhat.com>  0:2.3.0-9jpp
db99ef
- First JPP 1.7 build
db99ef
db99ef
* Wed Nov 3 2004 Nicolas Mailhot <nim@jpackage.org>  0:2.3.0-8jpp
db99ef
- Clean up specfile a bit
db99ef
db99ef
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:2.3.0-7jpp
db99ef
- Build with ant-1.6.2
db99ef
db99ef
* Thu Oct 09 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-6jpp
db99ef
- add javadoc symlinks
db99ef
- change Apache Software License to Apache License
db99ef
db99ef
* Tue Aug 26 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-5jpp
db99ef
- remove all Requires
db99ef
db99ef
* Fri Apr 12 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-4jpp
db99ef
- fix strange permissions
db99ef
db99ef
* Fri Apr 11 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-3jpp
db99ef
- rebuild for jpackage 1.5
db99ef
db99ef
* Wed Jan 22 2003 David Walluck <david@anti-microsoft.org> 2.3.0-2jpp
db99ef
- Requires/BuildRequires: xalan-j2
db99ef
- update %%description
db99ef
db99ef
* Mon Jan 13 2003 David Walluck <david@anti-microsoft.org> 2.3.0-1jpp
db99ef
- version 2.3.0 (first jakarta release)
db99ef
db99ef
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-5jpp
db99ef
- vendor, distribution, group tags
db99ef
- versioned dir for javadoc
db99ef
- section macro
db99ef
db99ef
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-4jpp
db99ef
- javadoc in javadoc package
db99ef
db99ef
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.2-3jpp
db99ef
- removed packager tag
db99ef
- new jpp extension
db99ef
- fixed url
db99ef
db99ef
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-2jpp
db99ef
- first unified release
db99ef
- used original tarball
db99ef
- s/jPackage/JPackage
db99ef
db99ef
* Thu Aug 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-1jpp
db99ef
- first Mandrake release