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
|
|
|
#
|
2015-03-18 10:43:07 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2008-07-28 04:26:46 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
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
|
2010-10-11 12:25:02 +02:00
|
|
|
Url: http://ant-contrib.sourceforge.net/
|
2013-11-06 15:23:51 +01:00
|
|
|
Source0: http://prdownloads.sourceforge.net/ant-contrib/ant-contrib-%{version}-src.tar.gz
|
|
|
|
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/1.0b3/%{name}-1.0b3.pom
|
|
|
|
# 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
|
|
|
|
Patch2: ant-contrib-pom.patch
|
2015-03-13 13:45:32 +01:00
|
|
|
Patch3: ant-contrib-1.0b3-enable-for-task.patch
|
2013-11-06 15:23:51 +01:00
|
|
|
BuildRequires: ant >= 1.7.1
|
|
|
|
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
|
|
|
|
BuildRequires: java-devel
|
2013-09-09 14:14:36 +02:00
|
|
|
BuildRequires: javapackages-tools
|
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
|
2008-07-28 04:26:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-07-07 11:26:15 +02:00
|
|
|
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}
|
|
|
|
cp %{SOURCE1} %{name}-1.0b3.pom
|
|
|
|
cp %{SOURCE2} LICENSE-2.0.txt
|
2014-07-07 11:26:15 +02:00
|
|
|
%patch0
|
|
|
|
%patch1
|
2013-11-06 15:23:51 +01:00
|
|
|
%patch2 -p1
|
2015-03-13 13:45:32 +01:00
|
|
|
%patch3 -p1
|
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
|
2013-11-06 15:23:51 +01: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}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
|
|
|
|
echo "ant/ant-contrib" > %{buildroot}%{_sysconfdir}/ant.d/ant-contrib
|
|
|
|
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 644 %{name}-1.0b3.pom %{buildroot}/%{_mavenpomdir}/JPP.ant-%{name}.pom
|
|
|
|
|
|
|
|
echo "call add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar"
|
|
|
|
%add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2013-11-06 15:23:51 +01:00
|
|
|
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
|
|
|
%config %{_sysconfdir}/ant.d/%{name}
|
|
|
|
%{_javadir}/ant/%{name}.jar
|
|
|
|
%{_mavenpomdir}/JPP.ant-%{name}.pom
|
2015-03-18 10:43:07 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%files manual
|
|
|
|
%defattr(-,root,root,-)
|
2013-11-06 15:23:51 +01:00
|
|
|
%doc target/docs/manual/tasks/*
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
|
|
|
%doc %{_javadocdir}/%{name}
|
2008-07-28 04:26:46 +02:00
|
|
|
|
|
|
|
%changelog
|