SHA256
1
0
forked from pool/ant

Don't depend on java-1_5_0-gcj-compat anymore

OBS-URL: https://build.opensuse.org/package/show/Java:packages/ant?expand=0&rev=100
This commit is contained in:
Fridrich Strba 2017-10-04 09:08:49 +00:00 committed by Git OBS Bridge
parent acd6fc17f0
commit 8caf1149ad
6 changed files with 138 additions and 231 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
- Remove dependency on java-1_5_0-gcj-compat-devel and build even
the bootstrap package with java source and target 1.6
-------------------------------------------------------------------
Fri Sep 29 07:06:59 UTC 2017 - fstrba@suse.com

View File

@ -3,7 +3,6 @@
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,15 +17,12 @@
#
%global ant_home %{_datadir}/ant
%global major_version 1.9
##### WARNING: please do not edit this auto generated spec file. Use the ant.spec! #####
%bcond_with bootstrap
%bcond_with junit
%bcond_without antlr
%global ant_home %{_datadir}/ant
%global major_version 1.9
Name: ant-antlr
Version: 1.9.9
Release: 0
@ -45,24 +41,18 @@ Patch1: apache-ant-class-path-in-manifest.patch
Patch3: reproducible.patch
Patch4: apache-ant-1.9.9-sourcetarget.patch
Patch5: apache-ant-bootstrap.patch
%if %{with bootstrap}
BuildRequires: java-1_5_0-gcj-compat-devel
#BuildRequires: java-devel >= 1.5
BuildConflicts: java-devel >= 1.9
#!BuildIgnore: java-9-openjdk java-9-openjdk-devel java-9-openjdk-headless
%else
BuildRequires: java-devel >= 1.6.0
%endif
BuildRequires: antlr-bootstrap
BuildRequires: java-devel >= 1.6
BuildRequires: javapackages-tools
BuildRequires: unzip
BuildRequires: xml-commons-apis-bootstrap
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildArch: noarch
# Needed for maven conversions
%if !%{with bootstrap}
BuildRequires: javapackages-local
%endif
BuildRequires: unzip
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildRequires: xml-commons-apis-bootstrap
%if %{with junit} || %{with antlr}
BuildRequires: ant = %{version}
BuildRequires: junit
@ -76,7 +66,7 @@ BuildRequires: xml-commons-apis
BuildRequires: strip-nondeterminism
%endif
%if %{with bootstrap}
Requires: java-devel >= 1.5.0
Requires: java-devel >= 1.6
Requires: javapackages-tools
Requires: jaxp_parser_impl
Requires: xml-commons-apis
@ -98,9 +88,6 @@ Obsoletes: ant-javadoc
Requires: junit4
%requires_eq ant
%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with junit}
%description
Apache Ant is a Java-based build tool.
@ -154,14 +141,13 @@ Ant.
%endif #if bootstrap
%if %{with antlr}
%package -n ant-apache-bsf
Summary: Optional apache bsf tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bsf
Requires: bsf
%requires_eq ant
BuildRequires: bsf
%description -n ant-apache-bsf
Apache Ant is a Java-based build tool.
@ -172,9 +158,9 @@ This package contains optional apache bsf tasks for Apache Ant.
Summary: Optional apache resolver tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: xml-commons-resolver
Requires: xml-commons-resolver
%requires_eq ant
BuildRequires: xml-commons-resolver
%description -n ant-apache-resolver
Apache Ant is a Java-based build tool.
@ -185,9 +171,9 @@ This package contains optional apache resolver tasks for Apache Ant.
Summary: Optional commons logging tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-logging
Requires: jakarta-commons-logging
%requires_eq ant
BuildRequires: jakarta-commons-logging
%description -n ant-commons-logging
Apache Ant is a Java-based build tool.
@ -198,9 +184,9 @@ This package contains optional commons logging tasks for Apache Ant.
Summary: Optional commons net tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-net
Requires: jakarta-commons-net
%requires_eq ant
BuildRequires: jakarta-commons-net
%description -n ant-commons-net
Apache Ant is a Java-based build tool.
@ -211,9 +197,9 @@ This package contains optional commons net tasks for Apache Ant.
Summary: Optional apache bcel tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bcel
Requires: bcel
%requires_eq ant
BuildRequires: bcel
Provides: ant-jakarta-bcel = %{version}
Obsoletes: ant-jakarta-bcel < %{version}
@ -226,9 +212,9 @@ This package contains optional apache bcel tasks for Apache Ant.
Summary: Optional apache log4j tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: log4j-mini
Requires: log4j
%requires_eq ant
BuildRequires: log4j-mini
Provides: ant-jakarta-log4j = %{version}
Obsoletes: ant-jakarta-log4j < %{version}
@ -241,9 +227,9 @@ This package contains optional apache log4j tasks for Apache Ant.
Summary: Optional apache oro tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: oro
Requires: oro
%requires_eq ant
BuildRequires: oro
Provides: ant-jakarta-oro = %{version}
Obsoletes: ant-jakarta-oro < %{version}
@ -256,9 +242,9 @@ This package contains optional apache oro tasks for Apache Ant.
Summary: Optional apache regexp tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: regexp
Requires: regexp
%requires_eq ant
BuildRequires: regexp
Provides: ant-jakarta-regexp = %{version}
Obsoletes: ant-jakarta-regexp < %{version}
@ -296,9 +282,9 @@ This package contains optional javamail tasks for Apache Ant.
Summary: Optional jdepend tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jdepend
Requires: jdepend
%requires_eq ant
BuildRequires: jdepend
%description -n ant-jdepend
Apache Ant is a Java-based build tool.
@ -309,9 +295,9 @@ This package contains optional jdepend tasks for Apache Ant.
Summary: Optional jsch tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jsch
Requires: jsch
%requires_eq ant
BuildRequires: jsch
%description -n ant-jsch
Apache Ant is a Java-based build tool.
@ -351,9 +337,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
%endif
%patch1
%patch3 -p1
%if ! %{with bootstrap}
%patch4 -p1
%endif
%patch5 -p1
# clean jar files
@ -395,7 +379,7 @@ rm -rf build/lib/ant-jai.jar build/lib/ant-netrexx.jar
%if %{with bootstrap}
export GC_MAXIMUM_HEAP_SIZE="134217728" #128M
export JAVA_HOME="%{java_home}"
export BOOTJAVAC_OPTS="-source 1.5 -target 1.5"
export BOOTJAVAC_OPTS="-source 1.6 -target 1.6"
sh -x ./build.sh --noconfig jars
%endif
@ -466,7 +450,7 @@ do
#install pom
%if !%{with bootstrap}
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
echo %%add_maven_depmap "${pomname}" "${destname}${jarname}.jar"
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
%endif
@ -482,14 +466,14 @@ rm -f src/script/*.bat
rm -f src/script/*.cmd
# XSLs
cp -p src/etc/*.xsl %{buildroot}%{ant_home}/etc
rm -f %{buildroot}%{ant_home}/etc/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
%endif
%if %{with junit}
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with antlr}
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with bootstrap}
@ -535,7 +519,7 @@ echo "testutil ant/ant-testutil" > %{buildroot}%{_sysconfdir}/ant.d/testutil
%endif
%if %{with bootstrap}
find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
find %{buildroot}%{_datadir}/ant%{_sysconfdir} -type f -name "*.xsl" \
-a ! -name ant-update.xsl \
-a ! -name changelog.xsl \
-a ! -name coverage-frames.xsl \
@ -547,9 +531,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif
%if %{with bootstrap}
%files
%defattr(0644,root,root,0755)
%doc KEYS LICENSE NOTICE README WHATSNEW
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/ant
@ -559,15 +541,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%{_javadir}/%{name}-bootstrap.jar
%dir %{_javadir}/%{name}
%dir %{ant_home}
%dir %{ant_home}/etc
%dir %{ant_home}%{_sysconfdir}
%{ant_home}/bin
%{ant_home}/etc/ant-update.xsl
%{ant_home}/etc/changelog.xsl
%{ant_home}/etc/coverage-frames.xsl
%{ant_home}/etc/mmetrics-frames.xsl
%{ant_home}/etc/log.xsl
%{ant_home}/etc/tagdiff.xsl
%{ant_home}/etc/junit-frames-xalan1.xsl
%{ant_home}%{_sysconfdir}/ant-update.xsl
%{ant_home}%{_sysconfdir}/changelog.xsl
%{ant_home}%{_sysconfdir}/coverage-frames.xsl
%{ant_home}%{_sysconfdir}/mmetrics-frames.xsl
%{ant_home}%{_sysconfdir}/log.xsl
%{ant_home}%{_sysconfdir}/tagdiff.xsl
%{ant_home}%{_sysconfdir}/junit-frames-xalan1.xsl
# % {ant_home}/etc/common2master.xsl
# % {ant_home}/etc/printFailingTests.xsl
%dir %{ant_home}/lib
@ -587,9 +569,9 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
#%dir %{_mavenpomdir}
%endif
%if %{with antlr}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-antlr.jar
%{ant_home}/lib/ant-antlr.jar
%config(noreplace) %{_sysconfdir}/ant.d/antlr
@ -604,13 +586,12 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%if %{with junit}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-junit*.jar
%{ant_home}/lib/ant-junit*.jar
%config(noreplace) %{_sysconfdir}/ant.d/junit
%config(noreplace) %{_sysconfdir}/ant.d/junit4
%{ant_home}/etc/junit-frames.xsl
%{ant_home}/etc/junit-noframes.xsl
%{ant_home}%{_sysconfdir}/junit-frames.xsl
%{ant_home}%{_sysconfdir}/junit-noframes.xsl
%{_mavenpomdir}/JPP.ant-ant-junit*.pom
%if %{defined _maven_repository}
%config(noreplace) %{_mavendepmapfragdir}/ant-junit
@ -622,16 +603,13 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
### Basic ant subpackages
%if %{with bootstrap}
%files -n ant-jmf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jmf.jar
%{ant_home}/lib/ant-jmf.jar
%config(noreplace) %{_sysconfdir}/ant.d/jmf
#%{_mavenpomdir}/JPP.ant-ant-jmf.pom
%files -n ant-swing
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-swing.jar
%{ant_home}/lib/ant-swing.jar
%config(noreplace) %{_sysconfdir}/ant.d/swing
@ -645,9 +623,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif #if bootstrap
%if %{with antlr}
%files -n ant-apache-bsf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bsf.jar
%{ant_home}/lib/ant-apache-bsf.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
@ -655,7 +631,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-resolver
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-resolver.jar
%{ant_home}/lib/ant-apache-resolver.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
@ -663,7 +638,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-logging
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-logging.jar
%{ant_home}/lib/ant-commons-logging.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
@ -671,7 +645,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-net
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-net.jar
%{ant_home}/lib/ant-commons-net.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
@ -679,7 +652,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-bcel
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bcel.jar
%{ant_home}/lib/ant-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
@ -687,7 +659,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-log4j
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-log4j.jar
%{ant_home}/lib/ant-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
@ -695,16 +666,14 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-oro
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-oro.jar
%{ant_home}/lib/ant-apache-oro.jar
%{ant_home}/etc/maudit-frames.xsl
%{ant_home}%{_sysconfdir}/maudit-frames.xsl
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
%{_mavenpomdir}/JPP.ant-ant-apache-oro.pom
%dir %{_mavenpomdir}
%files -n ant-apache-regexp
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-regexp.jar
%{ant_home}/lib/ant-apache-regexp.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
@ -712,7 +681,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-xalan2
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-xalan2.jar
%{ant_home}/lib/ant-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-xalan2
@ -720,7 +688,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-javamail
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-javamail.jar
%{ant_home}/lib/ant-javamail.jar
%config(noreplace) %{_sysconfdir}/ant.d/javamail
@ -728,17 +695,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-jdepend
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jdepend.jar
%{ant_home}/lib/ant-jdepend.jar
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
%{ant_home}/etc/jdepend.xsl
%{ant_home}/etc/jdepend-frames.xsl
%{ant_home}%{_sysconfdir}/jdepend.xsl
%{ant_home}%{_sysconfdir}/jdepend-frames.xsl
%{_mavenpomdir}/JPP.ant-ant-jdepend.pom
%dir %{_mavenpomdir}
%files -n ant-jsch
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jsch.jar
%{ant_home}/lib/ant-jsch.jar
%config(noreplace) %{_sysconfdir}/ant.d/jsch
@ -746,7 +711,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-testutil
%defattr(-,root,root,-)
%{_javadir}/ant/ant-testutil.jar
%{ant_home}/lib/ant-testutil.jar
%config(noreplace) %{_sysconfdir}/ant.d/testutil
@ -754,7 +718,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-manual
%defattr(0644,root,root,0755)
%doc manual/*
%endif

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
- Remove dependency on java-1_5_0-gcj-compat-devel and build even
the bootstrap package with java source and target 1.6
-------------------------------------------------------------------
Fri Sep 29 07:06:59 UTC 2017 - fstrba@suse.com

View File

@ -3,7 +3,6 @@
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,15 +17,12 @@
#
%global ant_home %{_datadir}/ant
%global major_version 1.9
##### WARNING: please do not edit this auto generated spec file. Use the ant.spec! #####
%bcond_with bootstrap
%bcond_without junit
%bcond_with antlr
%global ant_home %{_datadir}/ant
%global major_version 1.9
Name: ant-junit
Version: 1.9.9
Release: 0
@ -45,24 +41,18 @@ Patch1: apache-ant-class-path-in-manifest.patch
Patch3: reproducible.patch
Patch4: apache-ant-1.9.9-sourcetarget.patch
Patch5: apache-ant-bootstrap.patch
%if %{with bootstrap}
BuildRequires: java-1_5_0-gcj-compat-devel
#BuildRequires: java-devel >= 1.5
BuildConflicts: java-devel >= 1.9
#!BuildIgnore: java-9-openjdk java-9-openjdk-devel java-9-openjdk-headless
%else
BuildRequires: java-devel >= 1.6.0
%endif
BuildRequires: antlr-bootstrap
BuildRequires: java-devel >= 1.6
BuildRequires: javapackages-tools
BuildRequires: unzip
BuildRequires: xml-commons-apis-bootstrap
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildArch: noarch
# Needed for maven conversions
%if !%{with bootstrap}
BuildRequires: javapackages-local
%endif
BuildRequires: unzip
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildRequires: xml-commons-apis-bootstrap
%if %{with junit} || %{with antlr}
BuildRequires: ant = %{version}
BuildRequires: junit
@ -76,7 +66,7 @@ BuildRequires: xml-commons-apis
BuildRequires: strip-nondeterminism
%endif
%if %{with bootstrap}
Requires: java-devel >= 1.5.0
Requires: java-devel >= 1.6
Requires: javapackages-tools
Requires: jaxp_parser_impl
Requires: xml-commons-apis
@ -98,9 +88,6 @@ Obsoletes: ant-javadoc
Requires: junit4
%requires_eq ant
%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with junit}
%description
Apache Ant is a Java-based build tool.
@ -154,14 +141,13 @@ Ant.
%endif #if bootstrap
%if %{with antlr}
%package -n ant-apache-bsf
Summary: Optional apache bsf tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bsf
Requires: bsf
%requires_eq ant
BuildRequires: bsf
%description -n ant-apache-bsf
Apache Ant is a Java-based build tool.
@ -172,9 +158,9 @@ This package contains optional apache bsf tasks for Apache Ant.
Summary: Optional apache resolver tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: xml-commons-resolver
Requires: xml-commons-resolver
%requires_eq ant
BuildRequires: xml-commons-resolver
%description -n ant-apache-resolver
Apache Ant is a Java-based build tool.
@ -185,9 +171,9 @@ This package contains optional apache resolver tasks for Apache Ant.
Summary: Optional commons logging tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-logging
Requires: jakarta-commons-logging
%requires_eq ant
BuildRequires: jakarta-commons-logging
%description -n ant-commons-logging
Apache Ant is a Java-based build tool.
@ -198,9 +184,9 @@ This package contains optional commons logging tasks for Apache Ant.
Summary: Optional commons net tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-net
Requires: jakarta-commons-net
%requires_eq ant
BuildRequires: jakarta-commons-net
%description -n ant-commons-net
Apache Ant is a Java-based build tool.
@ -211,9 +197,9 @@ This package contains optional commons net tasks for Apache Ant.
Summary: Optional apache bcel tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bcel
Requires: bcel
%requires_eq ant
BuildRequires: bcel
Provides: ant-jakarta-bcel = %{version}
Obsoletes: ant-jakarta-bcel < %{version}
@ -226,9 +212,9 @@ This package contains optional apache bcel tasks for Apache Ant.
Summary: Optional apache log4j tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: log4j-mini
Requires: log4j
%requires_eq ant
BuildRequires: log4j-mini
Provides: ant-jakarta-log4j = %{version}
Obsoletes: ant-jakarta-log4j < %{version}
@ -241,9 +227,9 @@ This package contains optional apache log4j tasks for Apache Ant.
Summary: Optional apache oro tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: oro
Requires: oro
%requires_eq ant
BuildRequires: oro
Provides: ant-jakarta-oro = %{version}
Obsoletes: ant-jakarta-oro < %{version}
@ -256,9 +242,9 @@ This package contains optional apache oro tasks for Apache Ant.
Summary: Optional apache regexp tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: regexp
Requires: regexp
%requires_eq ant
BuildRequires: regexp
Provides: ant-jakarta-regexp = %{version}
Obsoletes: ant-jakarta-regexp < %{version}
@ -296,9 +282,9 @@ This package contains optional javamail tasks for Apache Ant.
Summary: Optional jdepend tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jdepend
Requires: jdepend
%requires_eq ant
BuildRequires: jdepend
%description -n ant-jdepend
Apache Ant is a Java-based build tool.
@ -309,9 +295,9 @@ This package contains optional jdepend tasks for Apache Ant.
Summary: Optional jsch tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jsch
Requires: jsch
%requires_eq ant
BuildRequires: jsch
%description -n ant-jsch
Apache Ant is a Java-based build tool.
@ -351,9 +337,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
%endif
%patch1
%patch3 -p1
%if ! %{with bootstrap}
%patch4 -p1
%endif
%patch5 -p1
# clean jar files
@ -395,7 +379,7 @@ rm -rf build/lib/ant-jai.jar build/lib/ant-netrexx.jar
%if %{with bootstrap}
export GC_MAXIMUM_HEAP_SIZE="134217728" #128M
export JAVA_HOME="%{java_home}"
export BOOTJAVAC_OPTS="-source 1.5 -target 1.5"
export BOOTJAVAC_OPTS="-source 1.6 -target 1.6"
sh -x ./build.sh --noconfig jars
%endif
@ -466,7 +450,7 @@ do
#install pom
%if !%{with bootstrap}
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
echo %%add_maven_depmap "${pomname}" "${destname}${jarname}.jar"
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
%endif
@ -482,14 +466,14 @@ rm -f src/script/*.bat
rm -f src/script/*.cmd
# XSLs
cp -p src/etc/*.xsl %{buildroot}%{ant_home}/etc
rm -f %{buildroot}%{ant_home}/etc/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
%endif
%if %{with junit}
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with antlr}
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with bootstrap}
@ -535,7 +519,7 @@ echo "testutil ant/ant-testutil" > %{buildroot}%{_sysconfdir}/ant.d/testutil
%endif
%if %{with bootstrap}
find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
find %{buildroot}%{_datadir}/ant%{_sysconfdir} -type f -name "*.xsl" \
-a ! -name ant-update.xsl \
-a ! -name changelog.xsl \
-a ! -name coverage-frames.xsl \
@ -547,9 +531,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif
%if %{with bootstrap}
%files
%defattr(0644,root,root,0755)
%doc KEYS LICENSE NOTICE README WHATSNEW
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/ant
@ -559,15 +541,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%{_javadir}/%{name}-bootstrap.jar
%dir %{_javadir}/%{name}
%dir %{ant_home}
%dir %{ant_home}/etc
%dir %{ant_home}%{_sysconfdir}
%{ant_home}/bin
%{ant_home}/etc/ant-update.xsl
%{ant_home}/etc/changelog.xsl
%{ant_home}/etc/coverage-frames.xsl
%{ant_home}/etc/mmetrics-frames.xsl
%{ant_home}/etc/log.xsl
%{ant_home}/etc/tagdiff.xsl
%{ant_home}/etc/junit-frames-xalan1.xsl
%{ant_home}%{_sysconfdir}/ant-update.xsl
%{ant_home}%{_sysconfdir}/changelog.xsl
%{ant_home}%{_sysconfdir}/coverage-frames.xsl
%{ant_home}%{_sysconfdir}/mmetrics-frames.xsl
%{ant_home}%{_sysconfdir}/log.xsl
%{ant_home}%{_sysconfdir}/tagdiff.xsl
%{ant_home}%{_sysconfdir}/junit-frames-xalan1.xsl
# % {ant_home}/etc/common2master.xsl
# % {ant_home}/etc/printFailingTests.xsl
%dir %{ant_home}/lib
@ -587,9 +569,9 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
#%dir %{_mavenpomdir}
%endif
%if %{with antlr}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-antlr.jar
%{ant_home}/lib/ant-antlr.jar
%config(noreplace) %{_sysconfdir}/ant.d/antlr
@ -604,13 +586,12 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%if %{with junit}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-junit*.jar
%{ant_home}/lib/ant-junit*.jar
%config(noreplace) %{_sysconfdir}/ant.d/junit
%config(noreplace) %{_sysconfdir}/ant.d/junit4
%{ant_home}/etc/junit-frames.xsl
%{ant_home}/etc/junit-noframes.xsl
%{ant_home}%{_sysconfdir}/junit-frames.xsl
%{ant_home}%{_sysconfdir}/junit-noframes.xsl
%{_mavenpomdir}/JPP.ant-ant-junit*.pom
%if %{defined _maven_repository}
%config(noreplace) %{_mavendepmapfragdir}/ant-junit
@ -622,16 +603,13 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
### Basic ant subpackages
%if %{with bootstrap}
%files -n ant-jmf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jmf.jar
%{ant_home}/lib/ant-jmf.jar
%config(noreplace) %{_sysconfdir}/ant.d/jmf
#%{_mavenpomdir}/JPP.ant-ant-jmf.pom
%files -n ant-swing
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-swing.jar
%{ant_home}/lib/ant-swing.jar
%config(noreplace) %{_sysconfdir}/ant.d/swing
@ -645,9 +623,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif #if bootstrap
%if %{with antlr}
%files -n ant-apache-bsf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bsf.jar
%{ant_home}/lib/ant-apache-bsf.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
@ -655,7 +631,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-resolver
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-resolver.jar
%{ant_home}/lib/ant-apache-resolver.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
@ -663,7 +638,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-logging
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-logging.jar
%{ant_home}/lib/ant-commons-logging.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
@ -671,7 +645,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-net
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-net.jar
%{ant_home}/lib/ant-commons-net.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
@ -679,7 +652,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-bcel
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bcel.jar
%{ant_home}/lib/ant-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
@ -687,7 +659,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-log4j
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-log4j.jar
%{ant_home}/lib/ant-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
@ -695,16 +666,14 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-oro
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-oro.jar
%{ant_home}/lib/ant-apache-oro.jar
%{ant_home}/etc/maudit-frames.xsl
%{ant_home}%{_sysconfdir}/maudit-frames.xsl
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
%{_mavenpomdir}/JPP.ant-ant-apache-oro.pom
%dir %{_mavenpomdir}
%files -n ant-apache-regexp
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-regexp.jar
%{ant_home}/lib/ant-apache-regexp.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
@ -712,7 +681,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-xalan2
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-xalan2.jar
%{ant_home}/lib/ant-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-xalan2
@ -720,7 +688,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-javamail
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-javamail.jar
%{ant_home}/lib/ant-javamail.jar
%config(noreplace) %{_sysconfdir}/ant.d/javamail
@ -728,17 +695,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-jdepend
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jdepend.jar
%{ant_home}/lib/ant-jdepend.jar
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
%{ant_home}/etc/jdepend.xsl
%{ant_home}/etc/jdepend-frames.xsl
%{ant_home}%{_sysconfdir}/jdepend.xsl
%{ant_home}%{_sysconfdir}/jdepend-frames.xsl
%{_mavenpomdir}/JPP.ant-ant-jdepend.pom
%dir %{_mavenpomdir}
%files -n ant-jsch
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jsch.jar
%{ant_home}/lib/ant-jsch.jar
%config(noreplace) %{_sysconfdir}/ant.d/jsch
@ -746,7 +711,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-testutil
%defattr(-,root,root,-)
%{_javadir}/ant/ant-testutil.jar
%{ant_home}/lib/ant-testutil.jar
%config(noreplace) %{_sysconfdir}/ant.d/testutil
@ -754,7 +718,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-manual
%defattr(0644,root,root,0755)
%doc manual/*
%endif

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 4 09:07:19 UTC 2017 - fstrba@suse.com
- Remove dependency on java-1_5_0-gcj-compat-devel and build even
the bootstrap package with java source and target 1.6
-------------------------------------------------------------------
Fri Sep 29 07:06:59 UTC 2017 - fstrba@suse.com

117
ant.spec
View File

@ -3,7 +3,6 @@
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,14 +17,11 @@
#
%global ant_home %{_datadir}/ant
%global major_version 1.9
%bcond_without bootstrap
%bcond_with junit
%bcond_with antlr
%global ant_home %{_datadir}/ant
%global major_version 1.9
Name: ant
Version: 1.9.9
Release: 0
@ -44,24 +40,18 @@ Patch1: apache-ant-class-path-in-manifest.patch
Patch3: reproducible.patch
Patch4: apache-ant-1.9.9-sourcetarget.patch
Patch5: apache-ant-bootstrap.patch
%if %{with bootstrap}
BuildRequires: java-1_5_0-gcj-compat-devel
#BuildRequires: java-devel >= 1.5
BuildConflicts: java-devel >= 1.9
#!BuildIgnore: java-9-openjdk java-9-openjdk-devel java-9-openjdk-headless
%else
BuildRequires: java-devel >= 1.6.0
%endif
BuildRequires: antlr-bootstrap
BuildRequires: java-devel >= 1.6
BuildRequires: javapackages-tools
BuildRequires: unzip
BuildRequires: xml-commons-apis-bootstrap
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildArch: noarch
# Needed for maven conversions
%if !%{with bootstrap}
BuildRequires: javapackages-local
%endif
BuildRequires: unzip
#BuildRequires: xerces-j2-bootstrap
#!BuildIgnore: xerces-j2-bootstrap
BuildRequires: xml-commons-apis-bootstrap
%if %{with junit} || %{with antlr}
BuildRequires: ant = %{version}
BuildRequires: junit
@ -75,7 +65,7 @@ BuildRequires: xml-commons-apis
BuildRequires: strip-nondeterminism
%endif
%if %{with bootstrap}
Requires: java-devel >= 1.5.0
Requires: java-devel >= 1.6
Requires: javapackages-tools
Requires: jaxp_parser_impl
Requires: xml-commons-apis
@ -97,9 +87,6 @@ Obsoletes: ant-javadoc
Requires: junit4
%requires_eq ant
%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %{with junit}
%description
Apache Ant is a Java-based build tool.
@ -153,14 +140,13 @@ Ant.
%endif #if bootstrap
%if %{with antlr}
%package -n ant-apache-bsf
Summary: Optional apache bsf tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bsf
Requires: bsf
%requires_eq ant
BuildRequires: bsf
%description -n ant-apache-bsf
Apache Ant is a Java-based build tool.
@ -171,9 +157,9 @@ This package contains optional apache bsf tasks for Apache Ant.
Summary: Optional apache resolver tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: xml-commons-resolver
Requires: xml-commons-resolver
%requires_eq ant
BuildRequires: xml-commons-resolver
%description -n ant-apache-resolver
Apache Ant is a Java-based build tool.
@ -184,9 +170,9 @@ This package contains optional apache resolver tasks for Apache Ant.
Summary: Optional commons logging tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-logging
Requires: jakarta-commons-logging
%requires_eq ant
BuildRequires: jakarta-commons-logging
%description -n ant-commons-logging
Apache Ant is a Java-based build tool.
@ -197,9 +183,9 @@ This package contains optional commons logging tasks for Apache Ant.
Summary: Optional commons net tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jakarta-commons-net
Requires: jakarta-commons-net
%requires_eq ant
BuildRequires: jakarta-commons-net
%description -n ant-commons-net
Apache Ant is a Java-based build tool.
@ -210,9 +196,9 @@ This package contains optional commons net tasks for Apache Ant.
Summary: Optional apache bcel tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: bcel
Requires: bcel
%requires_eq ant
BuildRequires: bcel
Provides: ant-jakarta-bcel = %{version}
Obsoletes: ant-jakarta-bcel < %{version}
@ -225,9 +211,9 @@ This package contains optional apache bcel tasks for Apache Ant.
Summary: Optional apache log4j tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: log4j-mini
Requires: log4j
%requires_eq ant
BuildRequires: log4j-mini
Provides: ant-jakarta-log4j = %{version}
Obsoletes: ant-jakarta-log4j < %{version}
@ -240,9 +226,9 @@ This package contains optional apache log4j tasks for Apache Ant.
Summary: Optional apache oro tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: oro
Requires: oro
%requires_eq ant
BuildRequires: oro
Provides: ant-jakarta-oro = %{version}
Obsoletes: ant-jakarta-oro < %{version}
@ -255,9 +241,9 @@ This package contains optional apache oro tasks for Apache Ant.
Summary: Optional apache regexp tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: regexp
Requires: regexp
%requires_eq ant
BuildRequires: regexp
Provides: ant-jakarta-regexp = %{version}
Obsoletes: ant-jakarta-regexp < %{version}
@ -295,9 +281,9 @@ This package contains optional javamail tasks for Apache Ant.
Summary: Optional jdepend tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jdepend
Requires: jdepend
%requires_eq ant
BuildRequires: jdepend
%description -n ant-jdepend
Apache Ant is a Java-based build tool.
@ -308,9 +294,9 @@ This package contains optional jdepend tasks for Apache Ant.
Summary: Optional jsch tasks for ant
License: Apache-2.0
Group: Development/Tools/Building
BuildRequires: jsch
Requires: jsch
%requires_eq ant
BuildRequires: jsch
%description -n ant-jsch
Apache Ant is a Java-based build tool.
@ -350,9 +336,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
%endif
%patch1
%patch3 -p1
%if ! %{with bootstrap}
%patch4 -p1
%endif
%patch5 -p1
# clean jar files
@ -394,7 +378,7 @@ rm -rf build/lib/ant-jai.jar build/lib/ant-netrexx.jar
%if %{with bootstrap}
export GC_MAXIMUM_HEAP_SIZE="134217728" #128M
export JAVA_HOME="%{java_home}"
export BOOTJAVAC_OPTS="-source 1.5 -target 1.5"
export BOOTJAVAC_OPTS="-source 1.6 -target 1.6"
sh -x ./build.sh --noconfig jars
%endif
@ -465,7 +449,7 @@ do
#install pom
%if !%{with bootstrap}
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
echo %%add_maven_depmap "${pomname}" "${destname}${jarname}.jar"
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
%endif
@ -481,14 +465,14 @@ rm -f src/script/*.bat
rm -f src/script/*.cmd
# XSLs
cp -p src/etc/*.xsl %{buildroot}%{ant_home}/etc
rm -f %{buildroot}%{ant_home}/etc/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
%endif
%if %{with junit}
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with antlr}
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}/etc
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with bootstrap}
@ -534,7 +518,7 @@ echo "testutil ant/ant-testutil" > %{buildroot}%{_sysconfdir}/ant.d/testutil
%endif
%if %{with bootstrap}
find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
find %{buildroot}%{_datadir}/ant%{_sysconfdir} -type f -name "*.xsl" \
-a ! -name ant-update.xsl \
-a ! -name changelog.xsl \
-a ! -name coverage-frames.xsl \
@ -546,9 +530,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif
%if %{with bootstrap}
%files
%defattr(0644,root,root,0755)
%doc KEYS LICENSE NOTICE README WHATSNEW
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/ant
@ -558,15 +540,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%{_javadir}/%{name}-bootstrap.jar
%dir %{_javadir}/%{name}
%dir %{ant_home}
%dir %{ant_home}/etc
%dir %{ant_home}%{_sysconfdir}
%{ant_home}/bin
%{ant_home}/etc/ant-update.xsl
%{ant_home}/etc/changelog.xsl
%{ant_home}/etc/coverage-frames.xsl
%{ant_home}/etc/mmetrics-frames.xsl
%{ant_home}/etc/log.xsl
%{ant_home}/etc/tagdiff.xsl
%{ant_home}/etc/junit-frames-xalan1.xsl
%{ant_home}%{_sysconfdir}/ant-update.xsl
%{ant_home}%{_sysconfdir}/changelog.xsl
%{ant_home}%{_sysconfdir}/coverage-frames.xsl
%{ant_home}%{_sysconfdir}/mmetrics-frames.xsl
%{ant_home}%{_sysconfdir}/log.xsl
%{ant_home}%{_sysconfdir}/tagdiff.xsl
%{ant_home}%{_sysconfdir}/junit-frames-xalan1.xsl
# % {ant_home}/etc/common2master.xsl
# % {ant_home}/etc/printFailingTests.xsl
%dir %{ant_home}/lib
@ -586,9 +568,9 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
#%dir %{_mavenpomdir}
%endif
%if %{with antlr}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-antlr.jar
%{ant_home}/lib/ant-antlr.jar
%config(noreplace) %{_sysconfdir}/ant.d/antlr
@ -603,13 +585,12 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%if %{with junit}
%files
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-junit*.jar
%{ant_home}/lib/ant-junit*.jar
%config(noreplace) %{_sysconfdir}/ant.d/junit
%config(noreplace) %{_sysconfdir}/ant.d/junit4
%{ant_home}/etc/junit-frames.xsl
%{ant_home}/etc/junit-noframes.xsl
%{ant_home}%{_sysconfdir}/junit-frames.xsl
%{ant_home}%{_sysconfdir}/junit-noframes.xsl
%{_mavenpomdir}/JPP.ant-ant-junit*.pom
%if %{defined _maven_repository}
%config(noreplace) %{_mavendepmapfragdir}/ant-junit
@ -621,16 +602,13 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
### Basic ant subpackages
%if %{with bootstrap}
%files -n ant-jmf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jmf.jar
%{ant_home}/lib/ant-jmf.jar
%config(noreplace) %{_sysconfdir}/ant.d/jmf
#%{_mavenpomdir}/JPP.ant-ant-jmf.pom
%files -n ant-swing
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-swing.jar
%{ant_home}/lib/ant-swing.jar
%config(noreplace) %{_sysconfdir}/ant.d/swing
@ -644,9 +622,7 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%endif #if bootstrap
%if %{with antlr}
%files -n ant-apache-bsf
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bsf.jar
%{ant_home}/lib/ant-apache-bsf.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
@ -654,7 +630,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-resolver
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-resolver.jar
%{ant_home}/lib/ant-apache-resolver.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
@ -662,7 +637,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-logging
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-logging.jar
%{ant_home}/lib/ant-commons-logging.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
@ -670,7 +644,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-commons-net
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-commons-net.jar
%{ant_home}/lib/ant-commons-net.jar
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
@ -678,7 +651,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-bcel
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-bcel.jar
%{ant_home}/lib/ant-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
@ -686,7 +658,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-log4j
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-log4j.jar
%{ant_home}/lib/ant-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
@ -694,16 +665,14 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-oro
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-apache-oro.jar
%{ant_home}/lib/ant-apache-oro.jar
%{ant_home}/etc/maudit-frames.xsl
%{ant_home}%{_sysconfdir}/maudit-frames.xsl
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
%{_mavenpomdir}/JPP.ant-ant-apache-oro.pom
%dir %{_mavenpomdir}
%files -n ant-apache-regexp
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-regexp.jar
%{ant_home}/lib/ant-apache-regexp.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
@ -711,7 +680,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-apache-xalan2
%defattr(-,root,root,-)
%{_javadir}/ant/ant-apache-xalan2.jar
%{ant_home}/lib/ant-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/ant.d/apache-xalan2
@ -719,7 +687,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-javamail
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-javamail.jar
%{ant_home}/lib/ant-javamail.jar
%config(noreplace) %{_sysconfdir}/ant.d/javamail
@ -727,17 +694,15 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-jdepend
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jdepend.jar
%{ant_home}/lib/ant-jdepend.jar
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
%{ant_home}/etc/jdepend.xsl
%{ant_home}/etc/jdepend-frames.xsl
%{ant_home}%{_sysconfdir}/jdepend.xsl
%{ant_home}%{_sysconfdir}/jdepend-frames.xsl
%{_mavenpomdir}/JPP.ant-ant-jdepend.pom
%dir %{_mavenpomdir}
%files -n ant-jsch
%defattr(0644,root,root,0755)
%{_javadir}/ant/ant-jsch.jar
%{ant_home}/lib/ant-jsch.jar
%config(noreplace) %{_sysconfdir}/ant.d/jsch
@ -745,7 +710,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-testutil
%defattr(-,root,root,-)
%{_javadir}/ant/ant-testutil.jar
%{ant_home}/lib/ant-testutil.jar
%config(noreplace) %{_sysconfdir}/ant.d/testutil
@ -753,7 +717,6 @@ find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
%dir %{_mavenpomdir}
%files -n ant-manual
%defattr(0644,root,root,0755)
%doc manual/*
%endif