Import rpm: 46d7f5391ac87a3d4e870fcf40e01438f1e5bd06
This commit is contained in:
parent
f95f4f1dc9
commit
1febcfd639
25
ant-contrib-1.0b3.pom
Normal file
25
ant-contrib-1.0b3.pom
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>ant-contrib</groupId>
|
||||||
|
<artifactId>ant-contrib</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<name>Ant-Contrib Tasks</name>
|
||||||
|
<version>1.0b3</version>
|
||||||
|
<url>http://ant-contrib.sourceforge.net</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<url>http://ant-contrib.sourceforge.net/tasks/LICENSE.txt</url>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<scm>
|
||||||
|
<url>https://svn.sourceforge.net/svnroot/ant-contrib ant-contrib</url>
|
||||||
|
</scm>
|
||||||
|
<description>A collection of tasks (and at one point maybe types and other tools) for Apache Ant</description>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>ant</groupId>
|
||||||
|
<artifactId>ant</artifactId>
|
||||||
|
<version>1.5</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
13
ant-contrib-pom.patch
Normal file
13
ant-contrib-pom.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/ant-contrib-1.0b3.pom b/ant-contrib-1.0b3.pom
|
||||||
|
index 59dea4a..ca99233 100644
|
||||||
|
--- a/ant-contrib-1.0b3.pom
|
||||||
|
+++ b/ant-contrib-1.0b3.pom
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
<description>A collection of tasks (and at one point maybe types and other tools) for Apache Ant</description>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
- <groupId>ant</groupId>
|
||||||
|
+ <groupId>org.apache.ant</groupId>
|
||||||
|
<artifactId>ant</artifactId>
|
||||||
|
<version>1.5</version>
|
||||||
|
</dependency>
|
@ -3,27 +3,28 @@
|
|||||||
Summary: Collection of tasks for Ant
|
Summary: Collection of tasks for Ant
|
||||||
Name: ant-contrib
|
Name: ant-contrib
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 0.32.%{beta_number}%{?dist}
|
Release: 0.23.%{beta_number}%{?dist}
|
||||||
License: ASL 2.0 and ASL 1.1
|
License: ASL 2.0 and ASL 1.1
|
||||||
URL: http://ant-contrib.sourceforge.net/
|
URL: http://ant-contrib.sourceforge.net/
|
||||||
|
Group: Development/Libraries
|
||||||
Source0: https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-src.tar.bz2
|
Source0: https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-src.tar.bz2
|
||||||
|
Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/1.0b3/%{name}-1.0b3.pom
|
||||||
# ASL 2.0 Licence text
|
# ASL 2.0 Licence text
|
||||||
# Upstream bug at https://sourceforge.net/tracker/?func=detail&aid=3590371&group_id=36177&atid=416920
|
# 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
|
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
|
Patch0: local-ivy.patch
|
||||||
Patch2: %{name}-antservertest.patch
|
Patch2: %{name}-antservertest.patch
|
||||||
BuildRequires: ivy-local
|
Patch3: %{name}-pom.patch
|
||||||
BuildRequires: junit
|
BuildRequires: jpackage-utils >= 1.5
|
||||||
BuildRequires: ant-junit
|
BuildRequires: junit >= 3.8.0
|
||||||
|
BuildRequires: ant-junit >= 1.6.2
|
||||||
BuildRequires: xerces-j2
|
BuildRequires: xerces-j2
|
||||||
BuildRequires: bcel
|
BuildRequires: bcel >= 5.0
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel >= 1.4.2
|
||||||
BuildRequires: apache-ivy
|
BuildRequires: apache-ivy
|
||||||
BuildRequires: jakarta-commons-httpclient
|
Requires: java >= 1.4.2
|
||||||
BuildRequires: apache-commons-logging
|
Requires: junit >= 3.8.0
|
||||||
BuildRequires: apache-commons-parent
|
Requires: ant >= 1.6.2
|
||||||
Requires: java-headless
|
|
||||||
Requires: junit
|
|
||||||
Requires: ant
|
|
||||||
Requires: xerces-j2
|
Requires: xerces-j2
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -42,8 +43,12 @@ Api documentation for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
|
%patch0 -b .sav
|
||||||
%patch2
|
%patch2
|
||||||
|
|
||||||
|
cp %{SOURCE1} %{name}-1.0b3.pom
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
cp %{SOURCE2} LICENSE-2.0.txt
|
cp %{SOURCE2} LICENSE-2.0.txt
|
||||||
|
|
||||||
find -name '*.class' -exec rm -f '{}' \;
|
find -name '*.class' -exec rm -f '{}' \;
|
||||||
@ -53,63 +58,44 @@ sed -i "s|xercesImpl|xerces-j2|g" ivy.xml
|
|||||||
# needs porting to latest ivy
|
# needs porting to latest ivy
|
||||||
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java
|
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java
|
||||||
|
|
||||||
sed -i '/<ivy:configure /d' build.xml
|
|
||||||
rm -f ivy-conf.xml
|
|
||||||
|
|
||||||
sed -i '/<info /s//&revision="1.0b3" /' ivy.xml
|
|
||||||
%mvn_alias : ant-contrib:
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ant -Divy.mode=local dist
|
ant dist
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_artifact ivy.xml target/%{name}.jar
|
# jars
|
||||||
%mvn_install -J target/docs/api
|
install -Dpm 644 target/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{name}.jar
|
||||||
|
|
||||||
|
# javadoc
|
||||||
|
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
cp -pr target/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
|
||||||
echo "ant-contrib/ant-contrib" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-contrib
|
echo "ant/ant-contrib" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-contrib
|
||||||
|
|
||||||
%files -f .mfiles
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
|
install -pm 644 %{name}-1.0b3.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.ant-%{name}.pom
|
||||||
|
|
||||||
|
%add_maven_depmap JPP.ant-%{name}.pom ant/%{name}.jar
|
||||||
|
|
||||||
|
%files
|
||||||
%{_sysconfdir}/ant.d/ant-contrib
|
%{_sysconfdir}/ant.d/ant-contrib
|
||||||
|
%{_javadir}/ant/*.jar
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
%{_mavendepmapfragdir}/*
|
||||||
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
||||||
%doc target/docs/manual/tasks/*
|
%doc target/docs/manual/tasks/*
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc
|
||||||
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
|
||||||
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.32.b3
|
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0-0.23.b3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Mass rebuild 2013-12-27
|
||||||
|
|
||||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.31.b3
|
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.22.b3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
- Rebuild to regenerate API documentation
|
||||||
|
- Resolves: CVE-2013-1571
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.30.b3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-0.29.b3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.28.b3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Sep 09 2014 Clément David <c.david86@gmail.com> - 1.0-0.27.b3
|
|
||||||
- Fix incorrect ant.d path.
|
|
||||||
|
|
||||||
* Mon Aug 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.26.b3
|
|
||||||
- Build using XMvn Ivy resolver
|
|
||||||
|
|
||||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.25.b3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed May 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-0.24.b3
|
|
||||||
- Use .mfiles generated during build
|
|
||||||
|
|
||||||
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-0.23.b3
|
|
||||||
- Use Requires: java-headless rebuild (#1067528)
|
|
||||||
|
|
||||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.22.b3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.21.b3
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-0.21.b3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
43
local-ivy.patch
Normal file
43
local-ivy.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
--- build.xml.sav 2006-11-02 18:44:02.000000000 +0200
|
||||||
|
+++ build.xml 2011-12-15 13:36:38.630460824 +0200
|
||||||
|
@@ -20,22 +20,7 @@
|
||||||
|
<property name="dist.dir" location="dist" />
|
||||||
|
<property name="target.stage.dir" location="${target.dir}/stage" />
|
||||||
|
|
||||||
|
- <target name="init">
|
||||||
|
- <path id="ivy.lib.path">
|
||||||
|
- <fileset dir="lib/ivy/jars" includes="ivy-1.3.1.jar"/>
|
||||||
|
- <fileset dir="lib/commons-cli/jars" includes="commons-cli-1.0.jar"/>
|
||||||
|
- <fileset dir="lib/commons-codec/jars" includes="commons-codec-1.3.jar"/>
|
||||||
|
- <fileset dir="lib/commons-httpclient/jars" includes="commons-httpclient-3.0.1.jar"/>
|
||||||
|
- <fileset dir="lib/commons-logging/jars" includes="commons-logging-1.0.4.jar"/>
|
||||||
|
- <fileset dir="lib/oro/jars" includes="oro-2.0.8.jar"/>
|
||||||
|
- </path>
|
||||||
|
-
|
||||||
|
- <taskdef resource="fr/jayasoft/ivy/ant/antlib.xml"
|
||||||
|
- uri="antlib:fr.jayasoft.ivy.ant"
|
||||||
|
- classpathref="ivy.lib.path"/>
|
||||||
|
- </target>
|
||||||
|
-
|
||||||
|
- <target name="configure" depends="init">
|
||||||
|
+ <target name="configure" >
|
||||||
|
<ivy:configure file="ivy-conf.xml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
--- ivy-conf.xml.sav 2006-10-28 14:57:58.000000000 +0300
|
||||||
|
+++ ivy-conf.xml 2011-12-15 14:35:15.155840710 +0200
|
||||||
|
@@ -5,11 +5,11 @@
|
||||||
|
|
||||||
|
<resolvers>
|
||||||
|
<filesystem name="local">
|
||||||
|
- <ivy pattern="${ivy.conf.dir}/lib/[module]/ivy-[revision].xml" />
|
||||||
|
- <artifact pattern="${ivy.conf.dir}/lib/[module]/[ext]s/[artifact]-[revision].[ext]" />
|
||||||
|
+ <ivy pattern="${ivy.conf.dir}/lib/[module]/apache-ivy-[revision].xml" />
|
||||||
|
+ <artifact pattern="/usr/share/java/[artifact].[ext]" />
|
||||||
|
</filesystem>
|
||||||
|
|
||||||
|
- <ivyrep name="ivyrep" />
|
||||||
|
+ <ivyrep name="ivyrep" ivyroot="."/>
|
||||||
|
|
||||||
|
<chain name="default-resolver">
|
||||||
|
<resolver ref="local" />
|
Loading…
Reference in New Issue
Block a user