- Add patch to fix build.

This commit is contained in:
Alexander Kurtakov 2010-08-31 06:41:48 +03:00
parent 01eece8701
commit 582b3ca0bf
2 changed files with 26 additions and 2 deletions

19
fix-deps.patch Normal file
View File

@ -0,0 +1,19 @@
--- pom.xml.sav 2010-05-25 19:35:37.000000000 +0300
+++ pom.xml 2010-08-31 06:29:27.741235987 +0300
@@ -75,6 +75,16 @@ under the License.
<artifactId>ant-nodeps</artifactId>
<version>1.8.1</version>
</dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-container-default</artifactId>
+ <version>1.5.4</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ <version>1.0</version>
+ </dependency>
</dependencies>
<profiles>

View File

@ -1,6 +1,6 @@
Name: maven-antrun-plugin
Version: 1.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Maven AntRun Plugin
Group: Development/Libraries
@ -9,6 +9,7 @@ URL: http://maven.apache.org/plugins/maven-antrun-plugin/
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-antrun-plugin-1.4
# tar caf maven-antrun-plugin-1.4.tar.xz maven-antrun-plugin-1.4/
Source0: %{name}-%{version}.tar.xz
Patch0: fix-deps.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
@ -48,7 +49,8 @@ API documentation for %{name}.
%prep
%setup -q #You may need to update this according to your Source0
%setup -q
%patch0
%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
@ -102,6 +104,9 @@ rm -rf %{buildroot}
%{_javadocdir}/%{name}
%changelog
* Tue Aug 31 2010 Alexander Kurtakov <akurtako@redhat.com> 1.4-3
- Add patch to fix build.
* Fri May 28 2010 Alexander Kurtakov <akurtako@redhat.com> 1.4-2
- Add provides/obsoletes.