- Added conditional native compilation.
- From gbenson@redhat: - Build without Jython or Rhino for now. - Build with servletapi5. - Avoid Sun-specific classes.
This commit is contained in:
parent
b180e22805
commit
1e013f5b8d
169
bsf.spec
169
bsf.spec
@ -1,28 +1,70 @@
|
|||||||
%define name bsf
|
# Copyright (c) 2000-2005, JPackage Project
|
||||||
%define version 2.3.0
|
# All rights reserved.
|
||||||
%define release 6jpp_4fc
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
|
%define _with_gcj_support 1
|
||||||
|
|
||||||
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
||||||
|
|
||||||
%define section free
|
%define section free
|
||||||
|
|
||||||
Name: %{name}
|
Name: bsf
|
||||||
Version: %{version}
|
Version: 2.3.0
|
||||||
Release: %{release}
|
Release: 10jpp_1fc
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Bean Scripting Framework
|
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
|
||||||
|
#http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.gz
|
||||||
Source0: %{name}-src-%{version}-RHCLEAN.tar.bz2
|
Source0: %{name}-src-%{version}-RHCLEAN.tar.bz2
|
||||||
Patch1: bsf-javac.patch
|
Patch1: %{name}-javac.patch
|
||||||
BuildRequires: jpackage-utils >= 1.6
|
BuildRequires: jpackage-utils >= 1.6
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: servletapi5
|
BuildRequires: servlet
|
||||||
BuildRequires: xalan-j2
|
|
||||||
BuildRequires: tomcat5-jsp-2.0-api
|
BuildRequires: tomcat5-jsp-2.0-api
|
||||||
Requires: servletapi5
|
BuildRequires: xalan-j2
|
||||||
Requires: xalan-j2
|
Requires: servletapi5
|
||||||
Requires: tomcat5-jsp-2.0-api
|
Requires: xalan-j2
|
||||||
|
Requires: tomcat5-jsp-2.0-api
|
||||||
|
%if ! %{gcj_support}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
BuildRequires: java-gcj-compat-devel
|
||||||
|
Requires(post): java-gcj-compat
|
||||||
|
Requires(postun): java-gcj-compat
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Bean Scripting Framework (BSF) is a set of Java classes which provides
|
Bean Scripting Framework (BSF) is a set of Java classes which provides
|
||||||
@ -53,61 +95,81 @@ engines:
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Group: Development/Documentation
|
Group: Development/Documentation
|
||||||
Prereq: coreutils
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%{__rm} -fr %{buildroot}
|
||||||
%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 {} \;
|
||||||
find . -name "*.zip" -exec rm -f {} \;
|
%{__rm} -fr bsf
|
||||||
find . -name "*.class" -exec rm -f {} \;
|
|
||||||
find . -name "*.tar.gz" -exec rm -f {} \;
|
%patch1 -p1
|
||||||
rmdir $RPM_BUILD_DIR/bsf
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CLASSPATH=`build-classpath xalan-j2 servletapi5 jspapi`
|
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
|
||||||
|
export CLASSPATH=$(build-classpath xalan-j2 servlet jspapi)
|
||||||
cd src
|
cd src
|
||||||
ant realclean
|
ant realclean
|
||||||
ant compile
|
ant compile
|
||||||
rm -rf bsf/src/org/apache/bsf/engines/java
|
%{__rm} -rf bsf/src/org/apache/bsf/engines/java
|
||||||
ant javadocs
|
ant javadocs
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# jar
|
# jar
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
%{__install} -d -m 755 %{buildroot}%{_javadir}
|
||||||
install -m 644 src/build/lib/%{name}.jar \
|
%{__install} -m 644 src/build/lib/%{name}.jar \
|
||||||
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
%{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do \
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
|
||||||
ln -sf ${jar} ${jar/-%{version}/}; done)
|
ln -sf ${jar} ${jar/-%{version}/}; done)
|
||||||
# javadoc
|
# javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr src/build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
%{__cp} -pr src/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
||||||
|
|
||||||
# docs
|
%if %{gcj_support}
|
||||||
cp -f src/{AUTHORS,BUILDING,CHANGES,CHANGES.old,INSTALL,README,TODO} .
|
%{_bindir}/aot-compile-rpm
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%post javadoc
|
%post javadoc
|
||||||
rm -f %{_javadocdir}/%{name}
|
%{__rm} -f %{_javadocdir}/%{name}
|
||||||
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%postun javadoc
|
%postun javadoc
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
rm -f %{_javadocdir}/%{name}
|
%{__rm} -f %{_javadocdir}/%{name}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
%post
|
||||||
|
%if %{gcj_support}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%if %{gcj_support}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc license.txt AUTHORS BUILDING CHANGES CHANGES.old INSTALL README TODO
|
%doc license.txt src/AUTHORS src/BUILDING src/CHANGES src/CHANGES.old src/INSTALL src/README src/TODO
|
||||||
%{_javadir}/*
|
%{_javadir}/*
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_javadocdir}/%{name}-%{version}
|
%dir %{_javadocdir}/%{name}-%{version}
|
||||||
@ -115,34 +177,21 @@ fi
|
|||||||
%ghost %{_javadocdir}/%{name}
|
%ghost %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Jun 5 2006 Deepak Bhole <dbhole@redhat.com> - 0:2.3.0-6jpp_4fc
|
* Thu Jul 20 2006 Deepak Bhole <dbhole@redhat.com> 0:2.3.0-10jpp_1fc
|
||||||
- Add missing Requires/BuildRequires for tomcat5-jsp-2.0-api and others.
|
- Added conditional native compilation.
|
||||||
|
- From gbenson@redhat:
|
||||||
|
- Build without Jython or Rhino for now.
|
||||||
|
- Build with servletapi5.
|
||||||
|
- Avoid Sun-specific classes.
|
||||||
|
|
||||||
* Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 0:2.3.0-6jpp_3fc
|
* Wed Apr 26 2006 Fernando Nasser <fnasser@redhat.com> 0:2.3.0-9jpp
|
||||||
- stop scriptlet spew
|
- First JPP 1.7 build
|
||||||
|
|
||||||
* Thu Feb 2 2006 Thomas Fitzsimmons <fitzsim@redhat.com> - 0:2.3.0-6jpp_2fc.2
|
* Wed Nov 3 2004 Nicolas Mailhot <nim@jpackage.org> 0:2.3.0-8jpp
|
||||||
- Bump release number.
|
- Clean up specfile a bit
|
||||||
|
|
||||||
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> 0:2.3.0-7jpp
|
||||||
- rebuilt
|
- Build with ant-1.6.2
|
||||||
|
|
||||||
* Tue Jun 21 2005 Gary Benson <gbenson@redhat.com> 0:2.3.0-6jpp_2fc
|
|
||||||
- Remove classes and tarballs from the tarball too.
|
|
||||||
|
|
||||||
* Wed Jun 15 2005 Gary Benson <gbenson@redhat.com> 0:2.3.0-6jpp_1fc
|
|
||||||
- Build into Fedora.
|
|
||||||
|
|
||||||
* Wed Jun 8 2005 Gary Benson <gbenson@redhat.com>
|
|
||||||
- Remove jarfiles and zipfiles from the tarball.
|
|
||||||
|
|
||||||
* 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
|
|
||||||
- RH vacuuming
|
|
||||||
|
|
||||||
* Thu Oct 09 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-6jpp
|
* Thu Oct 09 2003 David Walluck <david@anti-microsoft.org> 0:2.3.0-6jpp
|
||||||
- add javadoc symlinks
|
- add javadoc symlinks
|
||||||
|
Loading…
Reference in New Issue
Block a user