SHA256
1
0
forked from pool/ant

- Build with antlr-bootstrap, ignore antlr(-java)

OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant?expand=0&rev=11
This commit is contained in:
2010-09-01 07:54:41 +00:00
committed by Git OBS Bridge
parent 971f4661db
commit 877f7429e4
6 changed files with 27 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ Name: ant
# This line is not a comment, please do not remove it!
#%(sh %{_sourcedir}/ant-antlr-prepare.sh %{_sourcedir} %{name})
Version: 1.7.1
Release: 7
Release: 8
%if %bootstrap
Summary: Antlr Task for ant
%else
@@ -37,7 +37,8 @@ Summary: Antlr Task for ant
License: Apache Software License ..
Url: http://jakarta.apache.org/
Group: Development/Tools/Building
Source0: %{cvs_name}-%{version}-src.tar.bz2
# rm src/etc/testcases/taskdefs/zip/test.exe
Source0: %{cvs_name}-%{version}-src-suse.tar.bz2
Source2: %{cvs_name}-%{major_version}.ant.conf
Source1: http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
Source3: http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.pom
@@ -67,7 +68,6 @@ Source26: http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/an
Source1000: ant-antlr-prepare.sh
# Fix some places where copies of classes are included in the wrong jarfiles
Patch0: apache-ant-jars.patch
#Patch1: apache-ant-bz163689.patch
Patch2: apache-ant-gnu-classpath.patch
Patch3: apache-ant-no-test-jar.patch
# SUSE patches
@@ -75,6 +75,7 @@ Patch103: apache-ant-source-level.patch
BuildRequires: jpackage-utils >= 1.7.5
BuildRequires: java-1_5_0-gcj-compat-devel
BuildRequires: antlr-bootstrap
#!BuildIgnore: antlr antlr-java
BuildRequires: unzip
BuildRequires: xerces-j2-bootstrap
BuildRequires: xml-commons-apis-bootstrap
@@ -85,7 +86,6 @@ BuildRequires: ant
BuildRequires: junit
BuildRequires: xml-commons-apis
BuildRequires: xerces-j2
#!BuildIgnore: antlr
%endif
%if %bootstrap
Requires: xerces-j2 >= 2.7.1-2
@@ -494,7 +494,7 @@ find . -name "*.jar" | %{_bindir}/xargs -t rm
%build
export OPT_JAR_LIST=:
%if ! %bootstrap
export CLASSPATH=$(build-classpath xerces-j2 xml-commons-apis antlr bcel jaf javamail/mailapi jdepend junit log4j oro regexp bsf commons-logging commons-net jsch xml-commons-resolver)
export CLASSPATH=$(build-classpath xerces-j2 xml-commons-apis antlr-bootstrap bcel jaf javamail/mailapi jdepend junit log4j oro regexp bsf commons-logging commons-net jsch xml-commons-resolver)
%{ant} jars
%{ant} javadocs
%else