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