2011-03-15 10:12:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package ant
|
|
|
|
#
|
2024-01-27 13:29:29 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-03-09 10:05:56 +01:00
|
|
|
# Copyright (c) 2000-2009, JPackage Project
|
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.
|
|
|
|
|
2018-10-17 21:42:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:51:08 +01:00
|
|
|
#
|
2011-03-15 10:12:19 +01:00
|
|
|
|
|
|
|
|
2017-10-04 11:08:49 +02:00
|
|
|
%global ant_home %{_datadir}/ant
|
2014-08-28 19:05:23 +02:00
|
|
|
%bcond_without bootstrap
|
|
|
|
%bcond_with junit
|
2019-02-08 09:52:49 +01:00
|
|
|
%bcond_with junit5
|
2014-08-28 19:05:23 +02:00
|
|
|
%bcond_with antlr
|
2009-04-29 00:51:30 +02:00
|
|
|
Name: ant
|
2023-08-31 09:01:31 +02:00
|
|
|
Version: 1.10.14
|
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
|
2020-05-15 07:24:55 +02:00
|
|
|
URL: https://ant.apache.org/
|
|
|
|
Source0: https://www.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.xz
|
2013-08-22 11:27:53 +02:00
|
|
|
Source1: apache-ant-1.8.ant.conf
|
2019-02-08 11:20:14 +01:00
|
|
|
Source10: ant-bootstrap.pom.in
|
2011-03-09 10:05:56 +01:00
|
|
|
Source1000: pre_checkin.sh
|
2020-05-15 07:24:55 +02:00
|
|
|
Source1001: https://www.apache.org/dist/ant/source/apache-ant-%{version}-src.tar.xz.asc
|
2014-01-02 10:17:02 +01:00
|
|
|
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
|
2018-10-26 12:55:47 +02:00
|
|
|
Patch2: apache-ant-bootstrap.patch
|
2017-10-26 08:45:48 +02:00
|
|
|
#PATCH-FEATURE-OPENSUSE bmwiedemann -- have fixed build dates
|
2018-10-26 12:55:47 +02:00
|
|
|
Patch3: reproducible-build-date.patch
|
2018-10-25 23:10:16 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE reproducible-build-manifest.patch -- have fixed "Created-by" in manifest
|
2018-10-26 12:55:47 +02:00
|
|
|
Patch5: reproducible-build-manifest.patch
|
2018-12-10 09:25:23 +01:00
|
|
|
Patch6: apache-ant-xml-apis.patch
|
2023-09-11 14:52:47 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE debian patch to use SOURCE_DATE_EPOCH for timestamp in property files
|
|
|
|
Patch7: reproducible-propertyfile-task.patch
|
2017-02-13 16:20:50 +01:00
|
|
|
BuildRequires: antlr-bootstrap
|
2018-05-15 08:05:51 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2023-09-29 15:05:34 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: unzip
|
2019-02-01 17:41:58 +01:00
|
|
|
BuildRequires: xml-commons-apis-bootstrap
|
2019-02-05 10:57:28 +01:00
|
|
|
#!BuildIgnore: xml-commons-apis
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildArch: noarch
|
2017-05-19 10:36:09 +02:00
|
|
|
# Needed for maven conversions
|
2017-06-09 11:04:32 +02:00
|
|
|
%if !%{with bootstrap}
|
2017-05-19 10:36:09 +02:00
|
|
|
BuildRequires: javapackages-local
|
2017-06-09 11:04:32 +02:00
|
|
|
%endif
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit} || %{with antlr} || %{with junit5}
|
2011-03-09 10:05:56 +01:00
|
|
|
BuildRequires: ant = %{version}
|
2019-02-05 10:51:10 +01:00
|
|
|
BuildRequires: hamcrest
|
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
|
2019-11-09 09:35:14 +01:00
|
|
|
BuildRequires: xz-java
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit5}
|
2019-02-08 11:20:14 +01:00
|
|
|
BuildRequires: apiguardian
|
2019-02-08 09:52:49 +01:00
|
|
|
BuildRequires: junit5
|
|
|
|
%endif
|
2017-05-09 13:09:03 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: strip-nondeterminism
|
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2018-05-15 08:05:51 +02:00
|
|
|
Requires: java-devel >= 1.8
|
2013-09-09 13:49:39 +02:00
|
|
|
Requires: javapackages-tools
|
2019-04-09 12:50:16 +02:00
|
|
|
Requires: xerces-j2
|
2018-12-10 09:25:23 +01:00
|
|
|
Requires: xml-apis
|
|
|
|
Requires: xml-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
|
2017-05-19 10:36:09 +02:00
|
|
|
Obsoletes: ant-javadoc
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with junit}
|
|
|
|
Requires: junit4
|
|
|
|
%requires_eq ant
|
|
|
|
%endif
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit5}
|
|
|
|
Requires: junit5
|
|
|
|
%requires_eq ant
|
|
|
|
%endif
|
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.
|
2019-02-08 09:52:49 +01:00
|
|
|
%elif %{with junit5}
|
2021-06-04 07:29:32 +02:00
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%description
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional JUnit5 tasks for Apache Ant.
|
2014-08-28 19:05:23 +02:00
|
|
|
%else
|
2021-06-04 07:29:32 +02:00
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%description
|
|
|
|
Apache Ant is a Java-based build tool. In theory, it is kind of like
|
2017-10-29 09:21:03 +01:00
|
|
|
Make. Build description files are written in XML.
|
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}
|
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
|
|
|
|
|
|
|
%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
|
2012-05-15 09:06:57 +02:00
|
|
|
Requires: ant = %{version}
|
2018-02-22 12:49:36 +01:00
|
|
|
Requires: perl
|
|
|
|
Requires: python3-base
|
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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: bsf
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: bsf
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%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
|
2018-12-10 09:25:23 +01:00
|
|
|
BuildRequires: xml-resolver
|
|
|
|
Requires: xml-resolver
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%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
|
2020-05-11 10:32:03 +02:00
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
Requires: apache-commons-logging
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%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
|
2020-05-11 10:32:03 +02:00
|
|
|
BuildRequires: apache-commons-net
|
|
|
|
Requires: apache-commons-net
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-commons-net
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional commons net tasks for Apache Ant.
|
|
|
|
|
|
|
|
%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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: bcel
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: bcel
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
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
|
2022-02-22 20:15:38 +01:00
|
|
|
BuildRequires: reload4j
|
|
|
|
Requires: reload4j
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: oro
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: oro
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: regexp
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: regexp
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
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
|
|
|
|
2019-11-08 12:17:19 +01:00
|
|
|
%package -n ant-imageio
|
|
|
|
Summary: Optional imageio tasks for ant
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
%requires_eq ant
|
|
|
|
|
|
|
|
%description -n ant-imageio
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional imageio tasks for Apache Ant.
|
|
|
|
|
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.
|
|
|
|
|
2023-01-26 07:54:58 +01:00
|
|
|
%package -n ant-jakartamail
|
|
|
|
Summary: Optional jakartamail tasks for ant
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
BuildRequires: jakarta-mail
|
|
|
|
Requires: jakarta-mail
|
|
|
|
%requires_eq ant
|
|
|
|
|
|
|
|
%description -n ant-jakartamail
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional jakartamail tasks for Apache Ant.
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: jdepend
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: jdepend
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%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
|
2017-10-04 11:08:49 +02:00
|
|
|
BuildRequires: jsch
|
2009-04-29 00:51:30 +02:00
|
|
|
Requires: jsch
|
2014-07-04 14:08:20 +02:00
|
|
|
%requires_eq ant
|
2009-04-29 00:51:30 +02:00
|
|
|
|
|
|
|
%description -n ant-jsch
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional jsch tasks for Apache Ant.
|
|
|
|
|
2019-11-09 09:35:14 +01:00
|
|
|
%package -n ant-xz
|
|
|
|
Summary: Opional xz tasks for ant
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Tools/Building
|
|
|
|
Requires: xz-java
|
|
|
|
%requires_eq ant
|
|
|
|
|
|
|
|
%description -n ant-xz
|
|
|
|
Apache Ant is a Java-based build tool.
|
|
|
|
|
|
|
|
This package contains optional xz 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.
|
|
|
|
|
|
|
|
%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//
|
2019-11-09 18:09:20 +01:00
|
|
|
find -name \*.jar -print -delete
|
2011-03-09 10:05:56 +01:00
|
|
|
|
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}
|
2024-02-20 12:57:22 +01:00
|
|
|
%patch -P 0 -p1
|
2011-03-09 14:20:10 +01:00
|
|
|
%endif
|
2024-02-20 12:57:22 +01:00
|
|
|
%patch -P 1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3 -p1
|
|
|
|
%patch -P 5 -p1
|
|
|
|
%patch -P 6 -p1
|
|
|
|
%patch -P 7 -p1
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2007-01-15 23:51:08 +01:00
|
|
|
# clean jar files
|
2017-10-29 09:21:03 +01:00
|
|
|
find . -name "*.jar" -print -delete
|
2013-08-22 11:27:53 +02:00
|
|
|
|
|
|
|
# failing testcases. TODO see why
|
2018-10-26 12:55:47 +02:00
|
|
|
%if %{with antlr} || %{with junit}
|
|
|
|
rm src/tests/junit/org/apache/tools/mail/MailMessageTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/ExecuteWatchdogTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java \
|
|
|
|
src/tests/junit/org/apache/tools/ant/taskdefs/TestProcess.java
|
|
|
|
%endif
|
2013-08-22 11:27:53 +02:00
|
|
|
|
2022-05-09 11:34:26 +02:00
|
|
|
# Test relies on internal JUnit 5 API that was changed
|
|
|
|
rm src/tests/junit/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatterTest.java
|
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
#install jars
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit} || %{with junit5}
|
2014-08-28 19:05:23 +02:00
|
|
|
build-jar-repository -s -p lib/optional junit4
|
|
|
|
%endif
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit5}
|
|
|
|
build-jar-repository -s -p lib/optional junit5 opentest4j
|
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with antlr}
|
|
|
|
# we need to build junit in antlr, but we remove it later
|
2022-02-22 20:15:38 +01:00
|
|
|
build-jar-repository -s -p lib/optional xerces-j2 xml-commons-apis-bootstrap antlr-bootstrap bcel javamail/mailapi jdepend junit4 reload4j/reload4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xalan-j2-serializer xml-resolver xz-java
|
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
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with antlr} || %{with junit} || %{with junit5}
|
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
|
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}"
|
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
|
2017-05-09 13:09:03 +02:00
|
|
|
%?strip_all_nondeterminism
|
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
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{without junit} && %{without junit5}
|
|
|
|
rm build/lib/ant-junit*.jar
|
2014-08-28 19:05:23 +02:00
|
|
|
%else
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{without junit}
|
|
|
|
rm build/lib/ant-junit.jar
|
|
|
|
rm build/lib/ant-junit4.jar
|
|
|
|
%else
|
|
|
|
# empty in this scenario
|
|
|
|
rm build/lib/ant-junitlauncher.jar
|
|
|
|
%endif
|
|
|
|
# remove all others
|
|
|
|
for i in build/lib/ant-*.jar ; do
|
|
|
|
case $i in
|
|
|
|
*/ant-junit*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
rm -v $i
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
2017-02-14 10:53:27 +01:00
|
|
|
%endif
|
2014-08-28 19:05:23 +02:00
|
|
|
|
2011-03-09 10:05:56 +01:00
|
|
|
for jar in build/lib/*.jar
|
|
|
|
do
|
|
|
|
jarname=$(basename $jar .jar)
|
2019-11-08 12:17:19 +01:00
|
|
|
pomname="${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}
|
2019-11-08 12:17:19 +01:00
|
|
|
destdir="%{buildroot}%{_javadir}/ant"; destname="ant/";pomname="$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
|
2019-03-18 20:48:22 +01:00
|
|
|
if [ "$jarname" = ant-bootstrap ]; then
|
2023-08-31 10:13:55 +02:00
|
|
|
mkdir -p src/etc/poms/${jarname}
|
|
|
|
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
|
2019-02-08 11:20:14 +01:00
|
|
|
fi
|
2011-03-09 10:05:56 +01:00
|
|
|
|
|
|
|
#install pom
|
2024-01-27 13:29:29 +01:00
|
|
|
%{mvn_install_pom} src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
2019-03-18 20:48:22 +01:00
|
|
|
if [ "$jarname" = ant-launcher ]; then
|
2018-10-31 11:21:17 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
2019-03-18 20:48:22 +01:00
|
|
|
elif [ "$jarname" = ant-jmf ]; then
|
2019-02-08 09:52:49 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -f jmf
|
2019-03-18 20:48:22 +01:00
|
|
|
elif [ "$jarname" = ant-swing ]; then
|
2019-02-08 09:52:49 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -f swing
|
2019-03-18 20:48:22 +01:00
|
|
|
elif [ "$jarname" = ant ]; then
|
2018-10-31 11:21:17 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a org.apache.ant:ant-nodeps,apache:ant,ant:ant
|
2019-11-09 09:35:14 +01:00
|
|
|
elif [ "$jarname" = ant-antlr -o "$jarname" = ant-bootstrap ]; then
|
2019-11-08 18:01:07 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
|
2018-10-31 11:21:17 +01:00
|
|
|
else
|
2019-11-08 18:01:07 +01:00
|
|
|
%if %{with junit} || %{with junit5}
|
2018-10-31 11:21:17 +01:00
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar
|
2019-11-08 18:01:07 +01:00
|
|
|
%else
|
|
|
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -f ${jarname}
|
|
|
|
%endif
|
2018-10-31 11:21:17 +01:00
|
|
|
fi
|
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
|
|
|
|
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
|
2023-08-31 10:13:55 +02:00
|
|
|
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
2017-10-04 11:08:49 +02:00
|
|
|
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
%if %{with junit}
|
2023-08-31 10:13:55 +02:00
|
|
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
%if %{with antlr}
|
2023-08-31 10:13:55 +02:00
|
|
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
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}
|
2024-04-24 21:28:11 +02:00
|
|
|
echo "junit hamcrest ant/ant-junit" > %{buildroot}%{_sysconfdir}/ant.d/junit
|
|
|
|
echo "junit4 hamcrest ant/ant-junit4" > %{buildroot}%{_sysconfdir}/ant.d/junit4
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%if %{with junit5}
|
2024-05-04 14:51:00 +02:00
|
|
|
echo "junit5 hamcrest junit opentest4j univocity-parsers open-test-reporting/events ant/ant-junitlauncher" > %{buildroot}%{_sysconfdir}/ant.d/junitlauncher
|
2019-02-08 09:52:49 +01:00
|
|
|
%endif
|
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with antlr}
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "antlr ant/ant-antlr" > %{buildroot}%{_sysconfdir}/ant.d/antlr
|
2020-05-11 10:32:03 +02:00
|
|
|
echo "rhino bsf ant/ant-apache-bsf" > %{buildroot}%{_sysconfdir}/ant.d/apache-bsf
|
2018-12-10 09:25:23 +01:00
|
|
|
echo "xml-resolver ant/ant-apache-resolver" > %{buildroot}%{_sysconfdir}/ant.d/apache-resolver
|
2020-05-11 10:32:03 +02:00
|
|
|
echo "apache-commons-logging ant/ant-commons-logging" > %{buildroot}%{_sysconfdir}/ant.d/commons-logging
|
|
|
|
echo "apache-commons-net ant/ant-commons-net" > %{buildroot}%{_sysconfdir}/ant.d/commons-net
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "bcel ant/ant-apache-bcel" > %{buildroot}%{_sysconfdir}/ant.d/apache-bcel
|
2022-02-22 20:15:38 +01:00
|
|
|
echo "reload4j/reload4j ant/ant-apache-log4j" > %{buildroot}%{_sysconfdir}/ant.d/apache-log4j
|
2011-03-09 10:05:56 +01:00
|
|
|
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
|
2019-11-08 12:17:19 +01:00
|
|
|
echo "ant/ant-imageio" > %{buildroot}%{_sysconfdir}/ant.d/imageio
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "javamail jaf ant/ant-javamail" > %{buildroot}%{_sysconfdir}/ant.d/javamail
|
2023-01-26 07:54:58 +01:00
|
|
|
echo "jakartamail jaf ant/ant-jakartamail" > %{buildroot}%{_sysconfdir}/ant.d/jakartamail
|
2011-03-09 10:05:56 +01:00
|
|
|
echo "jdepend ant/ant-jdepend" > %{buildroot}%{_sysconfdir}/ant.d/jdepend
|
|
|
|
echo "jsch ant/ant-jsch" > %{buildroot}%{_sysconfdir}/ant.d/jsch
|
2019-11-09 09:35:14 +01:00
|
|
|
echo "xz-java ant/ant-xz" > %{buildroot}%{_sysconfdir}/ant.d/xz
|
2011-03-09 10:05:56 +01:00
|
|
|
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 bootstrap}
|
2017-10-04 11:08:49 +02:00
|
|
|
find %{buildroot}%{_datadir}/ant%{_sysconfdir} -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 \
|
2017-10-29 09:21:03 +01:00
|
|
|
-print -delete
|
2009-04-29 00:51:30 +02:00
|
|
|
%endif
|
2018-02-23 11:45:12 +01:00
|
|
|
# remove *.orig
|
2018-08-24 22:48:52 +02:00
|
|
|
rm -rf %{buildroot}%{_bindir}/ant.orig
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2019-02-08 08:30:35 +01:00
|
|
|
pushd %{buildroot}%{_javadir}
|
2019-11-08 12:17:19 +01:00
|
|
|
for i in ant-bootstrap ant-launcher ant; do
|
|
|
|
ln -sf ant/${i}.jar ${i}.jar
|
2019-02-08 08:30:35 +01:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%files -f .mfiles
|
2019-02-08 08:30:35 +01:00
|
|
|
%license LICENSE NOTICE
|
|
|
|
%doc KEYS 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
|
2019-11-08 12:17:19 +01:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/%{name}-launcher.jar
|
2011-03-09 10:05:56 +01:00
|
|
|
%{_javadir}/%{name}-bootstrap.jar
|
|
|
|
%dir %{_javadir}/%{name}
|
2007-01-15 23:51:08 +01:00
|
|
|
%dir %{ant_home}
|
2017-10-04 11:08:49 +02:00
|
|
|
%dir %{ant_home}%{_sysconfdir}
|
2013-10-02 11:53:24 +02:00
|
|
|
%{ant_home}/bin
|
2017-10-04 11:08:49 +02:00
|
|
|
%{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
|
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
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
2017-10-04 11:08:49 +02:00
|
|
|
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with antlr}
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -f .mfiles
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-antlr.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/antlr
|
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}
|
2019-02-08 09:52:49 +01:00
|
|
|
%files -f .mfiles
|
2014-08-28 19:05:23 +02:00
|
|
|
%{ant_home}/lib/ant-junit*.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/junit
|
2016-01-17 09:38:49 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/junit4
|
2017-10-04 11:08:49 +02:00
|
|
|
%{ant_home}%{_sysconfdir}/junit-frames.xsl
|
|
|
|
%{ant_home}%{_sysconfdir}/junit-noframes.xsl
|
2017-05-19 10:36:09 +02:00
|
|
|
%endif
|
2019-02-08 09:52:49 +01:00
|
|
|
|
|
|
|
%if %{with junit5}
|
|
|
|
%files -f .mfiles
|
|
|
|
%{ant_home}/lib/ant-junitlauncher.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/junitlauncher
|
2014-08-28 19:05:23 +02:00
|
|
|
%endif
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
### Basic ant subpackages
|
2014-08-28 19:05:23 +02:00
|
|
|
%if %{with bootstrap}
|
2019-02-08 09:52:49 +01:00
|
|
|
%files -n ant-jmf -f .mfiles-jmf
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-jmf.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jmf
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-02-08 09:52:49 +01:00
|
|
|
%files -n ant-swing -f .mfiles-swing
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-swing.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/swing
|
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}
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-bsf -f .mfiles-ant-apache-bsf
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-bsf.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-resolver -f .mfiles-ant-apache-resolver
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-resolver.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-commons-logging -f .mfiles-ant-commons-logging
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-commons-logging.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-commons-net -f .mfiles-ant-commons-net
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-commons-net.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
|
2007-01-15 23:51:08 +01:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-bcel -f .mfiles-ant-apache-bcel
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-bcel.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-log4j -f .mfiles-ant-apache-log4j
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-log4j.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-oro -f .mfiles-ant-apache-oro
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-oro.jar
|
2017-10-04 11:08:49 +02:00
|
|
|
%{ant_home}%{_sysconfdir}/maudit-frames.xsl
|
2011-03-09 14:20:10 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-regexp -f .mfiles-ant-apache-regexp
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-regexp.jar
|
2011-03-09 14:20:10 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-apache-xalan2 -f .mfiles-ant-apache-xalan2
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-apache-xalan2.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/apache-xalan2
|
2019-11-08 12:17:19 +01:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-imageio -f .mfiles-ant-imageio
|
2019-11-08 12:17:19 +01:00
|
|
|
%{ant_home}/lib/ant-imageio.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/imageio
|
2011-03-09 10:05:56 +01:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-javamail -f .mfiles-ant-javamail
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-javamail.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/javamail
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2023-01-26 07:54:58 +01:00
|
|
|
%files -n ant-jakartamail -f .mfiles-ant-jakartamail
|
|
|
|
%{ant_home}/lib/ant-jakartamail.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jakartamail
|
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-jdepend -f .mfiles-ant-jdepend
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-jdepend.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
|
2017-10-04 11:08:49 +02:00
|
|
|
%{ant_home}%{_sysconfdir}/jdepend.xsl
|
|
|
|
%{ant_home}%{_sysconfdir}/jdepend-frames.xsl
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-jsch -f .mfiles-ant-jsch
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-jsch.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/jsch
|
2009-04-29 00:51:30 +02:00
|
|
|
|
2019-11-09 09:35:14 +01:00
|
|
|
%files -n ant-xz -f .mfiles-ant-xz
|
|
|
|
%{ant_home}/lib/ant-xz.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/xz
|
|
|
|
|
2019-11-08 18:01:07 +01:00
|
|
|
%files -n ant-testutil -f .mfiles-ant-testutil
|
2011-03-09 10:05:56 +01:00
|
|
|
%{ant_home}/lib/ant-testutil.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/testutil
|
|
|
|
|
2009-04-29 00:51:30 +02:00
|
|
|
%files -n ant-manual
|
2013-08-22 11:27:53 +02:00
|
|
|
%doc manual/*
|
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
|