From 24eaf8f7882812944070d22ebb898602619de7c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 8 May 2012 05:18:21 +0000 Subject: [PATCH] - allow bootstrap build from ant 1.6.5 Changed files: ant.spec -> 1.127 no-resourcecount.patch -> 1.1 --- ant.spec | 7 ++++--- no-resourcecount.patch | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 no-resourcecount.patch diff --git a/ant.spec b/ant.spec index 7d29d69..39318bd 100644 --- a/ant.spec +++ b/ant.spec @@ -45,16 +45,15 @@ %undefine with_netrexx %endif +%define rel 11 %include /usr/lib/rpm/macros.java - -%define _rel 11 Summary: Ant build tool for Java Summary(fr.UTF-8): Outil de compilation pour java Summary(it.UTF-8): Tool per la compilazione di programmi java Summary(pl.UTF-8): Ant - narzędzie do budowania w Javie Name: ant Version: 1.7.1 -Release: %{bootstrap_release %_rel} +Release: %{bootstrap_release %rel} License: Apache Group: Development/Languages/Java Source0: http://www.apache.org/dist/ant/source/apache-%{name}-%{version}-src.tar.bz2 @@ -64,6 +63,7 @@ Patch0: %{name}-antRun.patch # patch1 has been applied to ant sources in svn. It won't be needed for the # next release of ant. Patch1: %{name}-gcjtask.patch +Patch2: no-resourcecount.patch URL: http://ant.apache.org/ %{?with_antlr:BuildRequires: antlr} %{!?with_bootstrap:BuildRequires: ant} @@ -538,6 +538,7 @@ jakarta i xml. %setup -q -n apache-%{name}-%{version} %patch0 -p1 %patch1 -p1 +%{?with_bootstrap:%patch2 -p1} # clean jar files find . -name "*.jar" -exec rm -f {} \; diff --git a/no-resourcecount.patch b/no-resourcecount.patch new file mode 100644 index 0000000..c5d1476 --- /dev/null +++ b/no-resourcecount.patch @@ -0,0 +1,22 @@ +https://ant.apache.org/manual/Tasks/resourcecount.html + +Display or set a property containing the size of a nested Resource Collection. +Can also be used as a condition. Since Apache Ant 1.7 + +--- apache-ant-1.7.1/build.xml~ 2008-06-27 08:05:23.000000000 +0300 ++++ apache-ant-1.7.1/build.xml 2012-05-08 08:09:17.536508489 +0300 +@@ -501,12 +501,14 @@ + + + ++ + + + -- 2.44.0