2011-03-15 10:12:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package ant
|
|
|
|
#
|
2015-03-18 10:30:45 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-03-09 10:05:56 +01:00
|
|
|
# Copyright (c) 2000-2009, JPackage Project
|
|
|
|
# All rights reserved.
|
2007-01-15 23:51:08 +01:00
|
|
|
#
|
2011-03-15 10:12:19 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:51:08 +01:00
|
|
|
#
|
2011-03-15 10:12:19 +01:00
|
|
|
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%bcond_without bootstrap
|
|
|
|
%bcond_with junit
|
|
|
|
%bcond_with antlr
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2011-12-15 09:55:54 +01:00
|
|
|
# disable javadoc build on arm platform - it delays a build a lot
|
2014-01-02 10:17:02 +01:00
|
|
|
# mvyskocil: ifarch does not work for noarch packages ...
|
2012-01-03 12:19:37 +01:00
|
|
|
%if %{_arch} != arm
|
2014-01-02 10:17:02 +01:00
|
|
|
%global build_javadoc 1
|
|
|
|
%else
|
|
|
|
%global build_javadoc 0
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
%global ant_home %{_datadir}/ant
|
|
|
|
|
2013-08-22 11:27:53 +02:00
|
|
|
%global major_version 1.9
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
Name: ant
|
2015-07-28 16:17:31 +02:00
|
|
|
Version: 1.9.6
|
2012-01-03 12:19:37 +01:00
|
|
|
Release: 0
|
2014-05-19 14:47:10 +02:00
|
|
|
Summary: Java-based build tool
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2007-01-15 23:51:08 +01:00
|
|
|
Group: Development/Tools/Building
|
2012-01-03 12:19:37 +01:00
|
|
|
Url: http://ant.apache.org/
|
2014-01-02 10:17:02 +01:00
|
|
|
Source0: http://www.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.bz2
|
2013-08-22 11:27:53 +02:00
|
|
|
Source1: apache-ant-1.8.ant.conf
|
2011-03-09 10:05:56 +01:00
|
|
|
Source1000: pre_checkin.sh
|
2014-01-02 10:17:02 +01:00
|
|
|
Source1001: http://www.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.bz2.asc
|
|
|
|
Source1002: ant.keyring
|
2013-08-22 11:27:53 +02:00
|
|
|
Patch0: apache-ant-no-test-jar.patch
|
|
|
|
Patch1: apache-ant-class-path-in-manifest.patch
|
2014-07-04 14:47:43 +02:00
|
|
|
#PATCH-FIX-SLE: fix building with old gcj by working around bugs
|
|
|
|
Patch2: apache-ant-old-gcj-build.patch
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2014-05-02 11:15:53 +02:00
|
|
|
BuildRequires: java-1_5_0-gcj-compat-devel
|
|
|
|
#!BuildIgnore: java-1_6_0-openjdk java-1_6_0-openjdk-devel
|
|
|
|
#!BuildIgnore: java-1_7_0-openjdk java-1_7_0-openjdk-devel
|
2011-03-09 10:05:56 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: java-devel >= 1.5.0
|
|
|
|
%endif
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: antlr-bootstrap
|
2013-09-09 13:49:39 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: unzip
|
2013-01-07 13:15:18 +01:00
|
|
|
#BuildRequires: xerces-j2-bootstrap
|
|
|
|
#!BuildIgnore: xerces-j2-bootstrap
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: xml-commons-apis-bootstrap
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with junit} || %{with antlr}
|
2011-03-09 10:05:56 +01:00
|
|
|
BuildRequires: ant = %{version}
|
2014-07-04 14:08:20 +02:00
|
|
|
BuildRequires: junit
|
2014-08-28 19:05:23 +02:00
|
|
|
#!BuildIgnore: antlr
|
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: xerces-j2
|
2012-05-15 09:06:57 +02:00
|
|
|
BuildRequires: xml-commons-apis
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2012-05-15 09:06:57 +02:00
|
|
|
Requires: java-devel >= 1.5.0
|
2013-09-09 13:49:39 +02:00
|
|
|
Requires: javapackages-tools
|
2007-01-15 23:51:08 +01:00
|
|
|
Requires: jaxp_parser_impl
|
|
|
|
Requires: xml-commons-apis
|
|
|
|
Requires: xml-commons-resolver
|
2011-03-09 10:05:56 +01:00
|
|
|
Obsoletes: apache-ant < %{version}
|
|
|
|
Provides: apache-ant = %{version}
|
|
|
|
Obsoletes: ant-nodeps < %{version}
|
|
|
|
Provides: ant-nodeps = %{version}
|
|
|
|
Obsoletes: ant-trax < %{version}
|
|
|
|
Provides: ant-trax = %{version}
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: antlr
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
Provides: ant-antlr = %{version}-%{release}
|
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with junit}
|
|
|
|
Requires: junit4
|
|
|
|
%requires_eq ant
|
|
|
|
%endif
|
2007-01-15 23:51:08 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with junit}
|
|
|
|
%description
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional JUnit tasks for Apache Ant.
|
|
|
|
%else
|
|
|
|
# FIXME: this should be different for antlr
|
2009-04-29 00:51:30 +02:00
|
|
|
%description
|
|
|
|
Apache Ant is a Java-based build tool. In theory, it is kind of like
|
|
|
|
Make, but without Make's wrinkles.
|
|
|
|
|
|
|
|
Why another build tool when there is already make, gnumake, nmake, jam,
|
|
|
|
and others? Because all those tools have limitations that Ant's
|
|
|
|
original author could not live with when developing software across
|
|
|
|
multiple platforms. Make-like tools are inherently shell-based--they
|
|
|
|
evaluate a set of dependencies then execute commands, not unlike what
|
|
|
|
you would issue in a shell. This means that you can easily extend these
|
|
|
|
tools by using or writing any program for the OS that you are working
|
|
|
|
on. However, this also means that you limit yourself to the OS, or at
|
|
|
|
least the OS type, such as Unix, that you are working on.
|
|
|
|
|
|
|
|
Makefiles are inherently evil as well. Anybody who has worked on them
|
|
|
|
for any time has run into the dreaded tab problem. "Is my command not
|
|
|
|
executing because I have a space in front of my tab???" said the
|
|
|
|
original author of Ant way too many times. Tools like Jam took care of
|
|
|
|
this to a great degree, but still have yet another format to use and
|
|
|
|
remember.
|
|
|
|
|
|
|
|
Ant is different. Instead of a model where it is extended with
|
|
|
|
shell-based commands, Ant is extended using Java classes. Instead of
|
|
|
|
writing shell commands, the configuration files are XML-based, calling
|
|
|
|
out a target tree where various tasks are executed. Each task is run by
|
|
|
|
an object that implements a particular task interface.
|
|
|
|
|
|
|
|
Granted, this removes some of the expressive power that is inherent by
|
|
|
|
being able to construct a shell command such as `find . -name foo -exec
|
|
|
|
rm {}`, but it gives you the ability to be cross-platform--to work
|
|
|
|
anywhere and everywhere. If you really need to execute a shell command,
|
|
|
|
Ant has an <exec> task that allows different commands to be executed
|
|
|
|
based on the OS used.
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2009-04-29 00:51:30 +02:00
|
|
|
%package -n ant-jmf
|
|
|
|
Summary: Optional jmf tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2007-01-15 23:51:08 +01:00
|
|
|
Group: Development/Tools/Building
|
2009-06-20 00:49:50 +02:00
|
|
|
Requires: ant = %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
Provides: ant-jmf = %{version}-%{release}
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%description -n ant-jmf
|
2007-01-15 23:51:08 +01:00
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
This package contains optional jmf tasks for Apache Ant.
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%package -n ant-swing
|
|
|
|
Summary: Optional swing tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
2009-06-20 00:49:50 +02:00
|
|
|
Requires: ant = %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
Provides: ant-swing = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n ant-swing
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional swing tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-scripts
|
2007-01-15 23:51:08 +01:00
|
|
|
Summary: Additional scripts for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2007-01-15 23:51:08 +01:00
|
|
|
Group: Development/Tools/Building
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: %{_bindir}/perl
|
|
|
|
Requires: %{_bindir}/python
|
2012-05-15 09:06:57 +02:00
|
|
|
Requires: ant = %{version}
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%description -n ant-scripts
|
2007-01-15 23:51:08 +01:00
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains additional perl and python scripts for Apache
|
|
|
|
Ant.
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif #if bootstrap
|
2014-08-28 19:05:23 +02:00
|
|
|
|
|
|
|
%if %{with antlr}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%package -n ant-apache-bsf
|
|
|
|
Summary: Optional apache bsf tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: bsf
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: bsf
|
|
|
|
|
|
|
|
%description -n ant-apache-bsf
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache bsf tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-apache-resolver
|
|
|
|
Summary: Optional apache resolver tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: xml-commons-resolver
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: xml-commons-resolver
|
|
|
|
|
|
|
|
%description -n ant-apache-resolver
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache resolver tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-commons-logging
|
|
|
|
Summary: Optional commons logging tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: jakarta-commons-logging
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: jakarta-commons-logging
|
|
|
|
|
|
|
|
%description -n ant-commons-logging
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional commons logging tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-commons-net
|
|
|
|
Summary: Optional commons net tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: jakarta-commons-net
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: jakarta-commons-net
|
|
|
|
|
|
|
|
%description -n ant-commons-net
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional commons net tasks for Apache Ant.
|
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
# Disable because we don't ship the dependencies
|
2009-04-29 00:51:30 +02:00
|
|
|
%if 0
|
|
|
|
%package -n ant-jai
|
|
|
|
Summary: Optional jai tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: jai
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: jai
|
|
|
|
|
|
|
|
%description -n ant-jai
|
|
|
|
Optional jai tasks for ant.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n ant-apache-bcel
|
|
|
|
Summary: Optional apache bcel tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: bcel
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: bcel
|
2011-03-09 10:05:56 +01:00
|
|
|
Provides: ant-jakarta-bcel = %{version}
|
|
|
|
Obsoletes: ant-jakarta-bcel < %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-apache-bcel
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache bcel tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-apache-log4j
|
|
|
|
Summary: Optional apache log4j tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: log4j
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2010-03-18 23:36:29 +01:00
|
|
|
BuildRequires: log4j-mini
|
2011-03-09 10:05:56 +01:00
|
|
|
Provides: ant-jakarta-log4j = %{version}
|
|
|
|
Obsoletes: ant-jakarta-log4j < %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-apache-log4j
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache log4j tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-apache-oro
|
|
|
|
Summary: Optional apache oro tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: oro
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: oro
|
2011-03-09 10:05:56 +01:00
|
|
|
Provides: ant-jakarta-oro = %{version}
|
|
|
|
Obsoletes: ant-jakarta-oro < %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-apache-oro
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache oro tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-apache-regexp
|
|
|
|
Summary: Optional apache regexp tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: regexp
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: regexp
|
2011-03-09 10:05:56 +01:00
|
|
|
Provides: ant-jakarta-regexp = %{version}
|
|
|
|
Obsoletes: ant-jakarta-regexp < %{version}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-apache-regexp
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional apache regexp tasks for Apache Ant.
|
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
%package -n ant-apache-xalan2
|
|
|
|
Summary: Optional apache xalan2 tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2011-03-09 10:05:56 +01:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
BuildRequires: regexp
|
2014-08-28 19:05:23 +02:00
|
|
|
BuildRequires: xalan-j2
|
2011-03-09 10:05:56 +01:00
|
|
|
Requires: regexp
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
%description -n ant-apache-xalan2
|
|
|
|
Optional apache xalan2 tasks for %{name}.
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%package -n ant-javamail
|
|
|
|
Summary: Optional javamail tasks for ant
|
2012-06-11 16:05:44 +02:00
|
|
|
License: CDDL-1.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
2011-03-09 10:05:56 +01:00
|
|
|
BuildRequires: javamail >= 1.2-5jpp
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: javamail >= 1.2-5jpp
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-javamail
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional javamail tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-jdepend
|
|
|
|
Summary: Optional jdepend tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: jdepend
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: jdepend
|
|
|
|
|
|
|
|
%description -n ant-jdepend
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional jdepend tasks for Apache Ant.
|
|
|
|
|
|
|
|
%package -n ant-jsch
|
|
|
|
Summary: Optional jsch tasks for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: jsch
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
BuildRequires: jsch
|
|
|
|
|
|
|
|
%description -n ant-jsch
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional jsch tasks for Apache Ant.
|
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
%package -n ant-testutil
|
|
|
|
Summary: Test utility classes for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2011-03-09 10:05:56 +01:00
|
|
|
Group: Development/Tools/Building
|
2013-08-22 11:27:53 +02:00
|
|
|
Requires: junit4
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
%description -n ant-testutil
|
|
|
|
Test utility tasks for %{name}.
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%package -n ant-manual
|
|
|
|
Summary: Manual for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
|
|
|
|
%description -n ant-manual
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains the manual for Apache Ant.
|
|
|
|
|
2012-01-03 12:19:37 +01:00
|
|
|
%if 0%{?build_javadoc}
|
2009-04-29 00:51:30 +02:00
|
|
|
%package -n ant-javadoc
|
|
|
|
Summary: Javadoc for ant
|
2012-01-03 12:19:37 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 00:51:30 +02:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
|
|
|
|
%description -n ant-javadoc
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains the javadoc documentation for Apache Ant.
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif #javadoc
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
|
|
|
|
2007-01-15 23:51:08 +01:00
|
|
|
%prep
|
2014-01-02 10:17:02 +01:00
|
|
|
%setup -q -n apache-ant-%{version}
|
2011-03-09 10:05:56 +01:00
|
|
|
#Fixup version
|
|
|
|
find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
# When bootstrapping, we don't have junit
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2013-08-22 11:27:53 +02:00
|
|
|
%patch0 -p1
|
2014-07-04 14:47:43 +02:00
|
|
|
%if 0%{?suse_version} < 1200
|
|
|
|
%patch2 -p1
|
|
|
|
%endif
|
2011-03-09 14:20:10 +01:00
|
|
|
%endif
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
# Fix class-path-in-manifest rpmlint warning
|
2013-08-22 11:27:53 +02:00
|
|
|
%patch1
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2007-01-15 23:51:08 +01:00
|
|
|
# clean jar files
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_bindir}/find . -name "*.jar" | %{_bindir}/xargs -t rm
|
|
|
|
|
|
|
|
# failing testcases. TODO see why
|
|
|
|
rm src/tests/junit/org/apache/tools/ant/types/selectors/SignedSelectorTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsFileSelectedTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsSignedTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/mail/MailMessageTest.java
|
|
|
|
|
|
|
|
#FIXME: need newer junit4 package
|
2013-12-04 15:59:27 +01:00
|
|
|
#rm src/tests/junit/org/example/junit/JUnit4Skippable.java
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
#install jars
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with junit}
|
|
|
|
build-jar-repository -s -p lib/optional junit4
|
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
|
|
|
# we need to build junit in antlr, but we remove it later
|
2015-07-29 13:13:33 +02:00
|
|
|
build-jar-repository -s -p lib/optional xerces-j2 xml-commons-jaxp-1.3-apis antlr-bootstrap bcel javamail/mailapi jdepend junit4 log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xalan-j2-serializer xml-commons-resolver
|
2011-03-09 10:05:56 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
# Fix file-not-utf8 rpmlint warning
|
|
|
|
iconv KEYS -f iso-8859-1 -t utf-8 -o KEYS.utf8
|
|
|
|
mv KEYS.utf8 KEYS
|
|
|
|
iconv LICENSE -f iso-8859-1 -t utf-8 -o LICENSE.utf8
|
|
|
|
mv LICENSE.utf8 LICENSE
|
2007-01-15 23:51:08 +01:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%build
|
2009-04-29 00:51:30 +02:00
|
|
|
export OPT_JAR_LIST=:
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with antlr} || %{with junit}
|
2014-07-04 14:08:20 +02:00
|
|
|
ant -Dbuild.sysclasspath=first jars test-jar
|
2013-08-22 11:27:53 +02:00
|
|
|
|
|
|
|
#remove empty jai and netrexx jars. Due to missing dependencies they contain only manifests.
|
|
|
|
rm -rf build/lib/ant-jai.jar build/lib/ant-netrexx.jar
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2012-01-03 12:19:37 +01:00
|
|
|
%if 0%{?build_javadoc}
|
2014-08-28 19:05:23 +02:00
|
|
|
export CLASSPATH=$(build-classpath xerces-j2 xml-commons-jaxp-1.3-apis antlr bcel jaf javamail/mailapi jdepend junit4 log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver)
|
2014-07-04 14:08:20 +02:00
|
|
|
ant javadocs
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2008-05-15 22:09:20 +02:00
|
|
|
export GC_MAXIMUM_HEAP_SIZE="134217728" #128M
|
2015-06-22 10:55:55 +02:00
|
|
|
export JAVA_HOME="%{java_home}"
|
|
|
|
export CLASSPATH="$JAVA_HOME/lib/tools.jar"
|
2014-05-02 11:15:53 +02:00
|
|
|
export BOOTJAVAC_OPTS="-C -Wno-deprecated"
|
2011-03-09 10:05:56 +01:00
|
|
|
sh -x ./build.sh --noconfig jars
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2007-01-15 23:51:08 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
# ANT_HOME and subdirs
|
2011-03-09 10:05:56 +01:00
|
|
|
mkdir -p %{buildroot}%{ant_home}/{lib,etc}
|
2007-01-15 23:51:08 +01:00
|
|
|
# jars
|
2011-03-09 10:05:56 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}/ant
|
2013-08-22 11:27:53 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if ! %{with junit}
|
|
|
|
rm build/lib/ant-junit*.jar
|
|
|
|
%else
|
|
|
|
# remove all others
|
|
|
|
for i in build/lib/ant-*.jar ; do
|
|
|
|
case $i in
|
|
|
|
*/ant-junit*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
rm -v $i
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
%endif
|
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
for jar in build/lib/*.jar
|
|
|
|
do
|
|
|
|
jarname=$(basename $jar .jar)
|
2011-03-09 14:20:10 +01:00
|
|
|
pomname="JPP.ant-${jarname}.pom"
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
#Determine where to put it
|
|
|
|
case $jarname in
|
|
|
|
#These go into %%{_javadir}, pom files have different names
|
|
|
|
ant | ant-bootstrap | ant-launcher)
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2015-06-22 10:55:55 +02:00
|
|
|
destdir="%{buildroot}%{_javadir}"; destname="";pomname="JPP-$jarname.pom"
|
2011-03-09 10:05:56 +01:00
|
|
|
%else
|
|
|
|
continue
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2011-03-09 10:05:56 +01:00
|
|
|
;;
|
2013-08-22 11:27:53 +02:00
|
|
|
ant-jmf|ant-swing)
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2015-06-22 10:55:55 +02:00
|
|
|
destdir="%{buildroot}%{_javadir}/ant"; destname="ant/";
|
2011-03-09 14:20:10 +01:00
|
|
|
%else
|
2013-08-22 11:27:53 +02:00
|
|
|
continue
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2013-08-22 11:27:53 +02:00
|
|
|
;;
|
|
|
|
#Bootstracp builds an incomplete ant-foo jars, don't ship them
|
|
|
|
*)
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2013-08-22 11:27:53 +02:00
|
|
|
continue
|
|
|
|
%else
|
2011-03-09 10:05:56 +01:00
|
|
|
#These go into %%{_javadir}/ant
|
2015-06-22 10:55:55 +02:00
|
|
|
destdir="%{buildroot}%{_javadir}/ant"; destname="ant/";
|
2013-08-22 11:27:53 +02:00
|
|
|
%endif
|
|
|
|
;;
|
2011-03-09 10:05:56 +01:00
|
|
|
esac
|
|
|
|
|
|
|
|
#instal jar
|
|
|
|
install -m 644 ${jar} ${destdir}/${jarname}.jar
|
|
|
|
# jar aliases
|
2013-08-22 11:27:53 +02:00
|
|
|
ln -sf ../../java/${destname}${jarname}.jar %{buildroot}%{ant_home}/lib/${jarname}.jar
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
#bootstrap does not have a pom
|
|
|
|
[ $jarname == ant-bootstrap ] && continue
|
|
|
|
|
|
|
|
#install pom
|
2013-08-22 11:27:53 +02:00
|
|
|
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
|
|
|
echo %%add_maven_depmap "${pomname}" "${destname}${jarname}.jar"
|
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
|
2011-03-09 10:05:56 +01:00
|
|
|
done
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2011-03-09 10:05:56 +01:00
|
|
|
#ant-parent pom
|
2013-08-22 11:27:53 +02:00
|
|
|
install -m 644 src/etc/poms/pom.xml %{buildroot}/%{_mavenpomdir}/JPP-ant-parent.pom
|
|
|
|
%add_maven_depmap JPP-ant-parent.pom
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2007-01-15 23:51:08 +01:00
|
|
|
# scripts: remove dos and os/2 scripts
|
|
|
|
rm -f src/script/*.bat
|
|
|
|
rm -f src/script/*.cmd
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
# XSLs
|
2011-03-09 10:05:56 +01:00
|
|
|
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
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
%if %{with junit}
|
|
|
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}/etc
|
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
|
|
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}/etc
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2007-01-15 23:51:08 +01:00
|
|
|
# install everything else
|
2011-03-09 10:05:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
cp -p src/script/* %{buildroot}%{_bindir}/
|
2013-10-02 11:53:24 +02:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/bin/
|
|
|
|
ln -sf %{_bindir}/antRun %{buildroot}/%{_datadir}/%{name}/bin/antRun
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
2009-04-29 00:51:30 +02:00
|
|
|
# default ant.conf
|
2011-03-09 10:05:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
2013-08-22 11:27:53 +02:00
|
|
|
cp -p %{SOURCE1} %{buildroot}%{_sysconfdir}/ant.conf
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
# OPT_JAR_LIST fragments
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "ant/ant-jmf" > %{buildroot}%{_sysconfdir}/%{name}.d/jmf
|
|
|
|
echo "ant/ant-swing" > %{buildroot}%{_sysconfdir}/%{name}.d/swing
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with junit}
|
|
|
|
echo "junit ant/ant-junit" > %{buildroot}%{_sysconfdir}/ant.d/junit
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with antlr}
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "antlr ant/ant-antlr" > %{buildroot}%{_sysconfdir}/ant.d/antlr
|
|
|
|
echo "bsf ant/ant-apache-bsf" > %{buildroot}%{_sysconfdir}/ant.d/apache-bsf
|
|
|
|
echo "xml-commons-resolver ant/ant-apache-resolver" > %{buildroot}%{_sysconfdir}/ant.d/apache-resolver
|
|
|
|
echo "jakarta-commons-logging ant/ant-commons-logging" > %{buildroot}%{_sysconfdir}/ant.d/commons-logging
|
|
|
|
echo "jakarta-commons-net ant/ant-commons-net" > %{buildroot}%{_sysconfdir}/ant.d/commons-net
|
|
|
|
#echo "jai ant/ant-jai" > %{buildroot}%{_sysconfdir}/ant.d/jai
|
|
|
|
echo "bcel ant/ant-apache-bcel" > %{buildroot}%{_sysconfdir}/ant.d/apache-bcel
|
|
|
|
echo "log4j ant/ant-apache-log4j" > %{buildroot}%{_sysconfdir}/ant.d/apache-log4j
|
|
|
|
echo "oro ant/ant-apache-oro" > %{buildroot}%{_sysconfdir}/ant.d/apache-oro
|
|
|
|
echo "regexp ant/ant-apache-regexp" > %{buildroot}%{_sysconfdir}/ant.d/apache-regexp
|
|
|
|
echo "xalan-j2 ant/ant-apache-xalan2" > %{buildroot}%{_sysconfdir}/ant.d/apache-xalan2
|
|
|
|
echo "javamail jaf ant/ant-javamail" > %{buildroot}%{_sysconfdir}/ant.d/javamail
|
|
|
|
echo "jdepend ant/ant-jdepend" > %{buildroot}%{_sysconfdir}/ant.d/jdepend
|
|
|
|
echo "jsch ant/ant-jsch" > %{buildroot}%{_sysconfdir}/ant.d/jsch
|
|
|
|
echo "testutil ant/ant-testutil" > %{buildroot}%{_sysconfdir}/ant.d/testutil
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
|
|
|
|
%if %{with antlr}
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2012-01-03 12:19:37 +01:00
|
|
|
%if 0%{?build_javadoc}
|
2011-03-09 10:05:56 +01:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/ant
|
|
|
|
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/ant
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif #javadoc
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2012-01-03 12:19:37 +01:00
|
|
|
%if 0%{?build_javadoc}
|
2007-01-15 23:51:08 +01:00
|
|
|
# fix link between manual and javadoc
|
2013-08-22 11:27:53 +02:00
|
|
|
(cd manual; ln -sf %{_javadocdir}/%{name} api)
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif #javadoc
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2011-03-09 10:05:56 +01:00
|
|
|
find %{buildroot}%{_datadir}/ant/etc -type f -name "*.xsl" \
|
2009-04-29 00:51:30 +02:00
|
|
|
-a ! -name ant-update.xsl \
|
|
|
|
-a ! -name changelog.xsl \
|
|
|
|
-a ! -name coverage-frames.xsl \
|
|
|
|
-a ! -name junit-frames-xalan1.xsl \
|
|
|
|
-a ! -name log.xsl \
|
|
|
|
-a ! -name mmetrics-frames.xsl \
|
|
|
|
-a ! -name tagdiff.xsl \
|
|
|
|
| xargs -t rm
|
|
|
|
%endif
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2011-03-15 10:12:19 +01:00
|
|
|
|
2007-01-15 23:51:08 +01:00
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2009-04-29 00:51:30 +02:00
|
|
|
%doc KEYS LICENSE NOTICE README WHATSNEW
|
2011-03-09 10:05:56 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
2007-01-15 23:51:08 +01:00
|
|
|
%attr(0755,root,root) %{_bindir}/ant
|
2009-04-29 00:51:30 +02:00
|
|
|
%attr(0755,root,root) %{_bindir}/antRun
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-launcher.jar
|
|
|
|
%{_javadir}/%{name}-bootstrap.jar
|
|
|
|
%dir %{_javadir}/%{name}
|
2007-01-15 23:51:08 +01:00
|
|
|
%dir %{ant_home}
|
2009-04-29 00:51:30 +02:00
|
|
|
%dir %{ant_home}/etc
|
2013-10-02 11:53:24 +02:00
|
|
|
%{ant_home}/bin
|
2009-04-29 00:51:30 +02:00
|
|
|
%{ant_home}/etc/ant-update.xsl
|
|
|
|
%{ant_home}/etc/changelog.xsl
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/etc/coverage-frames.xsl
|
|
|
|
%{ant_home}/etc/mmetrics-frames.xsl
|
2009-04-29 00:51:30 +02:00
|
|
|
%{ant_home}/etc/log.xsl
|
|
|
|
%{ant_home}/etc/tagdiff.xsl
|
|
|
|
%{ant_home}/etc/junit-frames-xalan1.xsl
|
2011-03-09 10:05:56 +01:00
|
|
|
# % {ant_home}/etc/common2master.xsl
|
|
|
|
# % {ant_home}/etc/printFailingTests.xsl
|
2007-01-15 23:51:08 +01:00
|
|
|
%dir %{ant_home}/lib
|
2011-03-09 10:05:56 +01:00
|
|
|
%dir %{_sysconfdir}/%{name}.d
|
2010-03-18 23:36:29 +01:00
|
|
|
%{ant_home}/lib/ant.jar
|
|
|
|
%{ant_home}/lib/ant-bootstrap.jar
|
|
|
|
%{ant_home}/lib/ant-launcher.jar
|
2011-03-09 10:05:56 +01:00
|
|
|
%dir %{_sysconfdir}/ant.d
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP-ant-launcher.pom
|
|
|
|
%{_mavenpomdir}/JPP-ant-parent.pom
|
|
|
|
%{_mavenpomdir}/JPP-ant.pom
|
2015-03-18 10:30:45 +01:00
|
|
|
%{_datadir}/maven-metadata/ant.xml
|
2013-08-22 11:27:53 +02:00
|
|
|
%dir %{_mavenpomdir}
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
2009-04-29 00:51:30 +02:00
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-antlr.jar
|
|
|
|
%{ant_home}/lib/ant-antlr.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/antlr
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-antlr.pom
|
2015-03-18 10:30:45 +01:00
|
|
|
%{_datadir}/maven-metadata/ant-antlr.xml
|
2013-08-22 11:27:53 +02:00
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%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
|
|
|
|
%{ant_home}/etc/junit-frames.xsl
|
|
|
|
%{ant_home}/etc/junit-noframes.xsl
|
|
|
|
%{_mavenpomdir}/JPP.ant-ant-junit*.pom
|
2015-03-18 10:30:45 +01:00
|
|
|
%{_datadir}/maven-metadata/ant-junit.xml
|
2014-08-28 19:05:23 +02:00
|
|
|
%dir %{_mavenpomdir}
|
|
|
|
%endif
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
### Basic ant subpackages
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2011-03-15 10:12:19 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-jmf
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-jmf.jar
|
|
|
|
%{ant_home}/lib/ant-jmf.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jmf
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-jmf.pom
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-swing
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-swing.jar
|
|
|
|
%{ant_home}/lib/ant-swing.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/swing
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-swing.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-scripts
|
2007-01-15 23:51:08 +01:00
|
|
|
%defattr(0755,root,root,0755)
|
|
|
|
%{_bindir}/*.pl
|
2009-04-29 00:51:30 +02:00
|
|
|
%{_bindir}/*.py*
|
|
|
|
%endif #if bootstrap
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with antlr}
|
2011-03-15 10:12:19 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-apache-bsf
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-apache-bsf.jar
|
|
|
|
%{ant_home}/lib/ant-apache-bsf.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-bsf.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-apache-resolver
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-apache-resolver.jar
|
|
|
|
%{ant_home}/lib/ant-apache-resolver.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-resolver.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-commons-logging
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-commons-logging.jar
|
|
|
|
%{ant_home}/lib/ant-commons-logging.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-commons-logging.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-commons-net
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-commons-net.jar
|
|
|
|
%{ant_home}/lib/ant-commons-net.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-commons-net.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
# Disable as we dont ship the dependencies
|
|
|
|
%if 0
|
|
|
|
|
|
|
|
%files -n ant-jai
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-jai.jar
|
|
|
|
%{ant_home}/lib/ant-jai.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jai
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-apache-bcel
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-apache-bcel.jar
|
|
|
|
%{ant_home}/lib/ant-apache-bcel.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-bcel.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-apache-log4j
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-apache-log4j.jar
|
|
|
|
%{ant_home}/lib/ant-apache-log4j.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-log4j.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-apache-oro
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-apache-oro.jar
|
|
|
|
%{ant_home}/lib/ant-apache-oro.jar
|
2011-03-09 14:20:10 +01:00
|
|
|
%{ant_home}/etc/maudit-frames.xsl
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-oro.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-apache-regexp
|
2011-03-09 10:05:56 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadir}/ant/ant-apache-regexp.jar
|
|
|
|
%{ant_home}/lib/ant-apache-regexp.jar
|
2011-03-09 14:20:10 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-regexp.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
%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
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-apache-xalan2.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-javamail
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-javamail.jar
|
|
|
|
%{ant_home}/lib/ant-javamail.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/javamail
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-javamail.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-jdepend
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-jdepend.jar
|
|
|
|
%{ant_home}/lib/ant-jdepend.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
|
2009-04-29 00:51:30 +02:00
|
|
|
%{ant_home}/etc/jdepend.xsl
|
|
|
|
%{ant_home}/etc/jdepend-frames.xsl
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-jdepend.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%files -n ant-jsch
|
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/ant/ant-jsch.jar
|
|
|
|
%{ant_home}/lib/ant-jsch.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jsch
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-jsch.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
%files -n ant-testutil
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_javadir}/ant/ant-testutil.jar
|
|
|
|
%{ant_home}/lib/ant-testutil.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/testutil
|
2013-08-22 11:27:53 +02:00
|
|
|
%{_mavenpomdir}/JPP.ant-ant-testutil.pom
|
|
|
|
%dir %{_mavenpomdir}
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-manual
|
2007-01-15 23:51:08 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2013-08-22 11:27:53 +02:00
|
|
|
%doc manual/*
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2012-01-03 12:19:37 +01:00
|
|
|
%if 0%{?build_javadoc}
|
2011-12-15 09:55:54 +01:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-javadoc
|
2007-01-15 23:51:08 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2011-03-09 14:20:10 +01:00
|
|
|
%{_javadocdir}/ant
|
2011-12-15 09:55:54 +01:00
|
|
|
%endif #javadoc
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2007-05-08 20:08:03 +02:00
|
|
|
%changelog
|