SHA256
1
0
forked from pool/bsf
OBS User unknown
2009-08-06 19:48:46 +00:00
committed by Git OBS Bridge
parent 86142ec734
commit 643b5023b5
7 changed files with 80 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package bsf (Version 2.3.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,22 +18,29 @@
# norootforbuild
# icecream 0
Name: bsf
BuildRequires: ant java2-devel-packages jython oldrhino servletapi4 xalan-j2 xml-commons-apis
#!BuildIgnore: rhino
%define name bsf
%define version 2.3.0
%define release 8jpp
%define section free
Name: bsf
BuildRequires: ant
BuildRequires: java-devel
BuildRequires: jython
BuildRequires: servletapi4
BuildRequires: xalan-j2
BuildRequires: xml-commons-apis
Version: 2.3.0
Release: 321
Release: 322
Summary: Bean Scripting Framework
License: The Apache Software License
License: Apache Software License ..
Url: http://jakarta.apache.org/bsf/
Group: Development/Libraries/Java
Source0: http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.gz
Patch: %{name}-java14compat.patch
Source0: http://jakarta.apache.org/builds/jakarta-%{name}/dev/v%{version}/src/%{name}-src-%{version}.tar.bz2
Source1: bsf-component-info.xml
Source2: bsf-2.3.0.pom
#Patch: %{name}-java14compat.patch
Patch0: bsf-disable-rhino.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -65,7 +72,7 @@ In addition, the following languages are supported with their own
%package javadoc
License: The Apache Software License
License: Apache Software License ..
PreReq: coreutils
Summary: Javadoc for bsf
Group: Development/Libraries/Java
@@ -89,14 +96,16 @@ Framework.
%prep
%setup -q
%patch
# remove all binary libs
find . -name "*.jar" -exec %{__rm} -f {} \;
%{__rm} -fr bsf
tag=`echo %{name}-%{version}-%{release} | sed 's|\.|_|g'`
sed -i "s/@TAG@/$tag/g" %{SOURCE1}
%patch0 -b .disable-rhino
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
export CLASSPATH=$(build-classpath oldrhino xalan-j2 jython servlet jspapi)
export CLASSPATH=$(build-classpath rhino xalan-j2 jython servlet jspapi)
cd src
ant realclean
ant compile
@@ -110,6 +119,10 @@ ant javadocs
%{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)
# pom and depmap frag
%{__install} -d -m 755 %{buildroot}%{_datadir}/maven2/poms
%{__install} -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-bsf.pom
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}
# javadoc
%{__install} -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr src/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
@@ -118,39 +131,17 @@ ln -sf ${jar} ${jar/-%{version}/}; done)
%clean
rm -rf $RPM_BUILD_ROOT
%post javadoc
%{__rm} -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ $1 -eq 0 ]; then
%{__rm} -f %{_javadocdir}/%{name}
fi
%files
%defattr(-,root,root)
%doc license.txt src/AUTHORS src/BUILDING src/CHANGES src/CHANGES.old src/INSTALL src/README src/TODO
%{_javadir}/*
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%files javadoc
%defattr(-,root,root)
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%ghost %{_javadocdir}/%{name}
%{_javadocdir}/%{name}
%changelog
* Wed Nov 05 2008 ro@suse.de
- buildignore rhino to fix build
* Mon Sep 25 2006 skh@suse.de
- don't use icecream
- use source="1.4" and target="1.4" for build with java 1.5
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jul 27 2005 jsmeix@suse.de
- Adjustments in the spec file.
* Mon Jul 18 2005 jsmeix@suse.de
- Current version 2.3.0 from JPackage.org
* Thu Sep 16 2004 skh@suse.de
- Fix prerequires in javadoc subpackage
* Sat Sep 04 2004 skh@suse.de
- Initial package created with version 2.3.0 (JPackage 1.5)