2006-07-20 15:43:31 +00:00
|
|
|
# Copyright (c) 2000-2005, JPackage Project
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# 3. Neither the name of the JPackage Project nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
2007-03-13 17:22:14 +00:00
|
|
|
Name: bsf
|
2009-09-14 08:11:31 +00:00
|
|
|
Version: 2.4.0
|
2010-06-14 11:24:03 +00:00
|
|
|
Release: 7%{?dist}
|
2007-03-13 17:22:14 +00:00
|
|
|
Epoch: 0
|
2004-09-09 03:38:00 +00:00
|
|
|
Summary: Bean Scripting Framework
|
2010-01-11 19:29:10 +00:00
|
|
|
License: ASL 2.0
|
2010-04-07 09:55:18 +00:00
|
|
|
URL: http://jakarta.apache.org/bsf/
|
2010-06-14 11:24:03 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Source0: http://apache.osuosl.org/jakarta/%{name}/source/%{name}-src-%{version}.tar.gz
|
|
|
|
Source1: %{name}-pom.xml
|
|
|
|
Patch0: build-file.patch
|
2009-09-14 08:11:31 +00:00
|
|
|
Patch1: build.properties.patch
|
2007-03-13 17:22:14 +00:00
|
|
|
BuildRequires: jpackage-utils >= 1.6
|
2004-09-09 03:38:00 +00:00
|
|
|
BuildRequires: ant
|
2010-04-07 09:55:18 +00:00
|
|
|
BuildRequires: servlet6
|
|
|
|
BuildRequires: tomcat6-jsp-2.1-api
|
2006-07-20 15:43:31 +00:00
|
|
|
BuildRequires: xalan-j2
|
2009-09-14 08:11:31 +00:00
|
|
|
BuildRequires: jython
|
2010-06-07 15:55:46 +00:00
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
Requires: apache-commons-logging
|
2010-04-07 09:55:18 +00:00
|
|
|
Requires: servlet6
|
|
|
|
Requires: xalan-j2
|
|
|
|
Requires: tomcat6-jsp-2.1-api
|
|
|
|
Requires: jpackage-utils
|
2010-06-14 11:24:03 +00:00
|
|
|
Requires(post): jpackage-utils
|
|
|
|
Requires(postun): jpackage-utils
|
2004-09-09 03:38:00 +00:00
|
|
|
BuildArch: noarch
|
2006-07-20 15:43:31 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2004-09-09 03:38:00 +00:00
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
BSF supports several scripting languages currently:
|
|
|
|
* Javascript (using Rhino ECMAScript, from the Mozilla project)
|
|
|
|
* Python (using either Jython or JPython)
|
|
|
|
* Tcl (using Jacl)
|
|
|
|
* NetRexx (an extension of the IBM REXX scripting language in Java)
|
|
|
|
* 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
|
2007-03-13 17:22:14 +00:00
|
|
|
Summary: Javadoc for %{name}
|
2010-06-14 11:24:03 +00:00
|
|
|
Group: Documentation
|
2004-09-09 03:38:00 +00:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# remove all binary libs
|
2006-07-20 15:43:31 +00:00
|
|
|
find . -name "*.jar" -exec %{__rm} -f {} \;
|
|
|
|
%{__rm} -fr bsf
|
|
|
|
|
2009-09-14 08:11:31 +00:00
|
|
|
%patch0 -p1
|
2006-07-20 15:43:31 +00:00
|
|
|
%patch1 -p1
|
2004-09-09 03:38:00 +00:00
|
|
|
|
|
|
|
%build
|
2006-07-20 15:43:31 +00:00
|
|
|
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
|
2010-06-07 15:55:46 +00:00
|
|
|
export CLASSPATH=$(build-classpath apache-commons-logging jython xalan-j2 servlet jsp)
|
2009-09-14 08:11:31 +00:00
|
|
|
ant jar
|
2006-07-20 15:43:31 +00:00
|
|
|
%{__rm} -rf bsf/src/org/apache/bsf/engines/java
|
2004-09-09 03:38:00 +00:00
|
|
|
ant javadocs
|
|
|
|
|
|
|
|
%install
|
2007-03-13 17:22:14 +00:00
|
|
|
%{__rm} -fr %{buildroot}
|
2004-09-09 03:38:00 +00:00
|
|
|
# jar
|
2006-07-20 15:43:31 +00:00
|
|
|
%{__install} -d -m 755 %{buildroot}%{_javadir}
|
2009-09-14 08:11:31 +00:00
|
|
|
%{__install} -m 644 build/lib/%{name}.jar \
|
2006-07-20 15:43:31 +00:00
|
|
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
|
|
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
|
2004-09-09 03:38:00 +00:00
|
|
|
ln -sf ${jar} ${jar/-%{version}/}; done)
|
|
|
|
# javadoc
|
2006-07-20 15:43:31 +00:00
|
|
|
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
2009-09-14 08:11:31 +00:00
|
|
|
%{__cp} -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
2006-07-20 15:43:31 +00:00
|
|
|
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
2007-04-26 16:24:45 +00:00
|
|
|
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
2004-09-09 03:38:00 +00:00
|
|
|
|
2010-06-14 11:24:03 +00:00
|
|
|
%{__install} -DTm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_to_maven_depmap org.apache.bsf %{name} %{version} JPP %{name}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%update_maven_depmap
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%update_maven_depmap
|
|
|
|
|
2004-09-09 03:38:00 +00:00
|
|
|
%clean
|
2006-07-20 15:43:31 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2004-09-09 03:38:00 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-09-14 08:11:31 +00:00
|
|
|
%doc LICENSE.txt AUTHORS.txt CHANGES.txt NOTICE.txt README.txt TODO.txt RELEASE-NOTE.txt
|
2004-09-09 03:38:00 +00:00
|
|
|
%{_javadir}/*
|
2010-06-14 11:24:03 +00:00
|
|
|
%{_mavenpomdir}/*
|
|
|
|
%{_mavendepmapfragdir}/*
|
2004-09-09 03:38:00 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}-%{version}/*
|
2007-04-26 16:24:45 +00:00
|
|
|
%{_javadocdir}/%{name}
|
2004-09-09 03:38:00 +00:00
|
|
|
|
|
|
|
%changelog
|
2010-06-14 11:24:03 +00:00
|
|
|
* Mon Jun 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.4.0-7
|
|
|
|
- Added pom file to enable maven dependency resolution
|
|
|
|
- Fix Source0 URL
|
|
|
|
- Fix Group designation
|
|
|
|
|
2010-06-07 15:55:46 +00:00
|
|
|
* Mon Jun 7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:2.4.0-6
|
|
|
|
- Fix BR after jakarta-commons rename
|
|
|
|
|
2010-04-07 09:55:18 +00:00
|
|
|
* Wed Apr 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:2.4.0-5
|
|
|
|
- Drop gcj support.
|
|
|
|
- Build against servlet and jsp apis from tomcat6.
|
|
|
|
|
2010-01-11 19:29:10 +00:00
|
|
|
* Mon Jan 11 2010 Andrew Overholt <overholt@redhat.com> 2.4.0-4
|
|
|
|
- Fix License (ASL 2.0 and not 1.1) (rhbz#554465).
|
|
|
|
|
2009-09-14 09:11:01 +00:00
|
|
|
* Mon Sep 14 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 0:2.4.0-3
|
|
|
|
- Fix typo in Requires
|
|
|
|
|
2009-09-14 08:11:31 +00:00
|
|
|
* Wed Sep 09 2009 Christoph Höger <choeger@cs.tu-berlin.de> - 0:2.4.0-1
|
|
|
|
- New Upstream release: 2.4.0
|
|
|
|
- Add jython build dependency to include bsf-jython engine
|
|
|
|
|
2009-07-24 18:26:53 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.0-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-24 05:55:51 +00:00
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.3.0-14
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-07-09 17:14:29 +00:00
|
|
|
* Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.3.0-13
|
|
|
|
- drop repotag
|
|
|
|
- fix license
|
|
|
|
|
2008-02-19 17:44:24 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:2.3.0-12jpp.2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-04-26 16:24:45 +00:00
|
|
|
* Wed Mar 07 2007 Permaine Cheung <pcheung@redhat.com> 0:2.3.0-11jpp.2
|
|
|
|
- Update spec file as per Fedora guidelines
|
2007-03-13 17:22:14 +00:00
|
|
|
|
2006-08-04 23:15:07 +00:00
|
|
|
* Thu Aug 03 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-11jpp.1
|
|
|
|
- Added missing requirements.
|
|
|
|
|
2006-07-22 08:21:13 +00:00
|
|
|
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> 0:2.3.0-10jpp_2fc
|
|
|
|
- Rebuilt
|
|
|
|
|
2006-07-21 20:38:01 +00:00
|
|
|
* Fri Jul 21 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-10jpp_2fc
|
|
|
|
- Removing vendor and distribution tags.
|
|
|
|
|
2006-07-20 15:43:31 +00:00
|
|
|
* Thu Jul 20 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-10jpp_1fc
|
|
|
|
- Added conditional native compilation.
|
|
|
|
- From gbenson@redhat:
|
|
|
|
- Build without Jython or Rhino for now.
|
|
|
|
- Build with servletapi5.
|
|
|
|
- Avoid Sun-specific classes.
|
2005-06-15 11:29:58 +00:00
|
|
|
|
2006-07-20 15:43:31 +00:00
|
|
|
* Wed Apr 26 2006 Fernando Nasser <fnasser@redhat.com> 0:2.3.0-9jpp
|
|
|
|
- First JPP 1.7 build
|
2005-06-08 17:00:36 +00:00
|
|
|
|
2006-07-20 15:43:31 +00:00
|
|
|
* Wed Nov 3 2004 Nicolas Mailhot <nim@jpackage.org> 0:2.3.0-8jpp
|
|
|
|
- Clean up specfile a bit
|
2005-06-02 16:02:07 +00:00
|
|
|
|
2006-07-20 15:43:31 +00:00
|
|
|
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:2.3.0-7jpp
|
|
|
|
- Build with ant-1.6.2
|
2004-09-09 03:38:04 +00:00
|
|
|
|
2004-09-09 03:38:00 +00:00
|
|
|
* Thu Oct 09 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-6jpp
|
|
|
|
- add javadoc symlinks
|
|
|
|
- change Apache Software License to Apache License
|
|
|
|
|
|
|
|
* Tue Aug 26 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-5jpp
|
|
|
|
- remove all Requires
|
|
|
|
|
|
|
|
* Fri Apr 12 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-4jpp
|
|
|
|
- fix strange permissions
|
|
|
|
|
|
|
|
* Fri Apr 11 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-3jpp
|
|
|
|
- rebuild for jpackage 1.5
|
|
|
|
|
|
|
|
* Wed Jan 22 2003 David Walluck <david@anti-microsoft.org> 2.3.0-2jpp
|
|
|
|
- Requires/BuildRequires: xalan-j2
|
|
|
|
- update %%description
|
|
|
|
|
|
|
|
* Mon Jan 13 2003 David Walluck <david@anti-microsoft.org> 2.3.0-1jpp
|
|
|
|
- version 2.3.0 (first jakarta release)
|
|
|
|
|
|
|
|
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-5jpp
|
|
|
|
- vendor, distribution, group tags
|
|
|
|
- versioned dir for javadoc
|
|
|
|
- section macro
|
|
|
|
|
|
|
|
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-4jpp
|
|
|
|
- javadoc in javadoc package
|
|
|
|
|
|
|
|
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.2-3jpp
|
|
|
|
- removed packager tag
|
|
|
|
- new jpp extension
|
|
|
|
- fixed url
|
|
|
|
|
|
|
|
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-2jpp
|
|
|
|
- first unified release
|
|
|
|
- used original tarball
|
|
|
|
- s/jPackage/JPackage
|
|
|
|
|
|
|
|
* Thu Aug 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2-1jpp
|
|
|
|
- first Mandrake release
|