Port to Fedora

This commit is contained in:
gbenson 2005-06-02 16:02:07 +00:00
parent a7cf78a037
commit b7d15928c6
3 changed files with 25 additions and 9 deletions

View File

@ -1 +1,4 @@
bsf-src-2.3.0.tar.gz bsf-src-2.3.0.tar.gz
bsf-2.3.0
noarch
*.src.rpm

11
bsf-javac.patch Normal file
View File

@ -0,0 +1,11 @@
--- bsf-2.3.0/src/bsf/src/org/apache/bsf/util/JavaUtils.java~ 2002-11-13 06:28:54.000000000 +0000
+++ bsf-2.3.0/src/bsf/src/org/apache/bsf/util/JavaUtils.java 2005-06-01 18:11:23.000000000 +0100
@@ -82,7 +82,7 @@
};
try
{
- return new sun.tools.javac.Main(System.err, "javac").compile(args);
+ return new com.sun.tools.javac.Main().compile(args) == 0;
}
catch (Throwable th)
{

View File

@ -1,6 +1,6 @@
%define name bsf %define name bsf
%define version 2.3.0 %define version 2.3.0
%define release 6jpp_1rh %define release 6jpp_0fc
%define section free %define section free
Name: %{name} Name: %{name}
@ -11,13 +11,10 @@ Summary: Bean Scripting Framework
License: Apache License License: Apache License
Url: http://jakarta.apache.org/bsf/ Url: http://jakarta.apache.org/bsf/
Group: Development/Libraries/Java Group: Development/Libraries/Java
#Vendor: JPackage Project
#Distribution: JPackage
Source0: http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.gz Source0: http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.gz
Patch1: bsf-javac.patch
BuildRequires: ant BuildRequires: ant
BuildRequires: jython BuildRequires: servletapi5
BuildRequires: oldrhino
BuildRequires: servlet
BuildRequires: xalan-j2 BuildRequires: xalan-j2
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
@ -58,16 +55,16 @@ Javadoc for %{name}.
%prep %prep
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%setup -q %setup -q
%patch1 -p1
# remove all binary libs # remove all binary libs
find . -name "*.jar" -exec rm -f {} \; find . -name "*.jar" -exec rm -f {} \;
rmdir $RPM_BUILD_DIR/bsf rmdir $RPM_BUILD_DIR/bsf
%build %build
export CLASSPATH=\ export CLASSPATH=\
%{_javadir}/oldrhino.jar:\
%{_javadir}/xalan-j2.jar:\ %{_javadir}/xalan-j2.jar:\
%{_javadir}/jython.jar:\ %{_javadir}/servletapi5.jar:\
%{_javadir}/servlet.jar %{_javadir}/jspapi.jar
cd src cd src
ant realclean ant realclean
ant compile ant compile
@ -113,6 +110,11 @@ fi
%ghost %{_javadocdir}/%{name} %ghost %{_javadocdir}/%{name}
%changelog %changelog
* Thu Jun 2 2005 Gary Benson <gbenson@redhat.com>
- Build without Jython or Rhino for now.
- Build with servletapi5.
- Avoid Sun-specific classes.
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:2.3.0-6jpp_1rh * Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:2.3.0-6jpp_1rh
- RH vacuuming - RH vacuuming