2008-07-28 04:26:46 +02:00
|
|
|
#
|
2011-09-22 10:26:48 +02:00
|
|
|
# spec file for package ant-contrib
|
2008-07-28 04:26:46 +02:00
|
|
|
#
|
2023-09-29 15:04:45 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-07-28 04:26:46 +02:00
|
|
|
#
|
2008-08-08 17:18:41 +02: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.
|
|
|
|
|
2022-11-08 09:49:18 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-07-28 04:26:46 +02:00
|
|
|
#
|
|
|
|
|
2013-08-22 14:02:27 +02:00
|
|
|
|
2013-11-06 15:23:51 +01:00
|
|
|
Name: ant-contrib
|
|
|
|
Version: 1.0b3
|
|
|
|
Release: 0
|
2008-07-28 04:26:46 +02:00
|
|
|
Summary: Collection of tasks for Ant
|
2013-08-22 14:02:27 +02:00
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
2023-09-29 15:04:45 +02:00
|
|
|
URL: https://ant-contrib.sourceforge.net/
|
|
|
|
Source0: https://prdownloads.sourceforge.net/ant-contrib/ant-contrib-%{version}-src.tar.gz
|
|
|
|
Source1: https://repo1.maven.org/maven2/%{name}/%{name}/1.0b3/%{name}-1.0b3.pom
|
2013-11-06 15:23:51 +01:00
|
|
|
# ASL 2.0 Licence text
|
|
|
|
# Upstream bug at https://sourceforge.net/tracker/?func=detail&aid=3590371&group_id=36177&atid=416920
|
|
|
|
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
|
Patch0: local-ivy.patch
|
|
|
|
Patch1: ant-contrib-antservertest.patch
|
2023-09-29 15:04:45 +02:00
|
|
|
Patch2: ant-contrib-1.0b3-enable-for-task.patch
|
|
|
|
Patch3: ant-contrib-sourcetarget.patch
|
2017-05-19 11:07:23 +02:00
|
|
|
BuildRequires: ant
|
2013-11-06 15:23:51 +01:00
|
|
|
BuildRequires: apache-ivy
|
2008-07-28 04:26:46 +02:00
|
|
|
BuildRequires: bcel >= 5.1
|
2013-11-06 15:23:51 +01:00
|
|
|
BuildRequires: commons-httpclient
|
|
|
|
BuildRequires: commons-logging
|
2018-05-15 08:06:22 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: java-devel >= 1.8
|
2023-09-29 15:04:45 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2013-11-15 09:26:01 +01:00
|
|
|
BuildRequires: junit
|
2013-11-06 15:23:51 +01:00
|
|
|
BuildRequires: xerces-j2
|
|
|
|
Requires: junit >= 3.8.1
|
|
|
|
Requires: xerces-j2
|
2014-07-07 11:26:15 +02:00
|
|
|
%requires_eq ant
|
|
|
|
BuildArch: noarch
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Ant-Contrib project is a collection of tasks (and at one point
|
|
|
|
maybe types and other tools) for Apache Ant.
|
|
|
|
|
|
|
|
%package manual
|
2013-11-06 15:23:51 +01:00
|
|
|
Summary: Manual for %{name}
|
|
|
|
Group: Documentation/Other
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%description manual
|
2013-11-06 15:23:51 +01:00
|
|
|
Documentation for %{name} tasks.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Api documentation for %{name}.
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%prep
|
2013-11-06 15:23:51 +01:00
|
|
|
%setup -q -n %{name}
|
2023-09-29 15:04:45 +02:00
|
|
|
cp %{SOURCE1} %{name}-%{version}.pom
|
2013-11-06 15:23:51 +01:00
|
|
|
cp %{SOURCE2} LICENSE-2.0.txt
|
2024-02-20 13:58:53 +01:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1
|
|
|
|
%patch -P 2 -p1
|
|
|
|
%patch -P 3 -p1
|
2023-09-29 15:04:45 +02:00
|
|
|
|
|
|
|
%pom_change_dep ant: org.apache.ant %{name}-%{version}.pom
|
2013-08-22 14:02:27 +02:00
|
|
|
|
2013-11-06 15:23:51 +01:00
|
|
|
find . -name '*.jar' -or -name '*.class' -exec rm -rf {} +
|
2013-08-22 14:02:27 +02:00
|
|
|
|
2013-11-06 15:23:51 +01:00
|
|
|
sed -i "s|xercesImpl|xerces-j2|g" ivy.xml ||:
|
|
|
|
# needs porting to latest ivy
|
|
|
|
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%build
|
2023-09-29 15:04:45 +02:00
|
|
|
%{ant} dist
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2013-11-06 15:23:51 +01:00
|
|
|
install -Dpm 644 target/%{name}.jar %{buildroot}%{_javadir}/ant/%{name}.jar
|
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/docs/api/* %{buildroot}%{_javadocdir}/%{name}
|
2018-05-15 08:06:22 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2013-11-06 15:23:51 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
|
|
|
|
echo "ant/ant-contrib" > %{buildroot}%{_sysconfdir}/ant.d/ant-contrib
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2023-09-29 15:04:45 +02:00
|
|
|
%{mvn_install_pom} %{name}-1.0b3.pom %{buildroot}/%{_mavenpomdir}/JPP.ant-%{name}.pom
|
2013-11-06 15:23:51 +01:00
|
|
|
%add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar
|
2008-07-28 04:26:46 +02:00
|
|
|
|
2023-09-29 15:04:45 +02:00
|
|
|
%files -f .mfiles
|
2008-07-28 04:26:46 +02:00
|
|
|
%defattr(0644,root,root,0755)
|
2023-09-29 15:04:45 +02:00
|
|
|
%license target/docs/LICENSE.txt LICENSE-2.0.txt
|
2013-11-06 15:23:51 +01:00
|
|
|
%config %{_sysconfdir}/ant.d/%{name}
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%files manual
|
2013-11-06 15:23:51 +01:00
|
|
|
%doc target/docs/manual/tasks/*
|
|
|
|
|
|
|
|
%files javadoc
|
2018-05-15 08:06:22 +02:00
|
|
|
%license target/docs/LICENSE.txt
|
|
|
|
%doc LICENSE-2.0.txt
|
2013-11-06 15:23:51 +01:00
|
|
|
%doc %{_javadocdir}/%{name}
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%changelog
|