Browse code

Install maven-ant-tasks along with apache-ant

Sriram Nambakam authored on 2015/08/13 04:58:00
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Apache Ant
2 2
 Name:		apache-ant
3 3
 Version:	1.9.4
4
-Release:	0%{?dist}
4
+Release:	1%{?dist}
5 5
 License:	Apache
6 6
 URL:		http://ant.apache.org
7 7
 Group:		Applications/System
... ...
@@ -12,6 +12,8 @@ Source0:	http://apache.mirrors.lucidnetworks.net//ant/source/%{name}-%{version}-
12 12
 %define sha1 apache-ant=01fe8219e50765beafc69de8b7886f882dee73ec
13 13
 Source1:	http://hamcrest.googlecode.com/files/hamcrest-1.3.tar.gz
14 14
 %define sha1 hamcrest=f0ab4d66186b894a06d89d103c5225cf53697db3
15
+Source2:    http://dl.bintray.com/vmware/photon_sources/1.0/maven-ant-tasks-2.1.3.tar.gz
16
+%define sha1 maven-ant-tasks=f38c0cc7b38007b09638366dbaa4ee902d9c255b
15 17
 Requires: openjdk >= 1.8.0.45, python2
16 18
 BuildRequires: openjdk >= 1.8.0.45
17 19
 
... ...
@@ -26,6 +28,7 @@ The Ant package contains binaries for a build system
26 26
 
27 27
 %setup -q
28 28
 tar xf %{SOURCE1}
29
+tar xf %{SOURCE2}
29 30
 %build
30 31
 ANT_DIST_DIR=/opt/apache-ant-1.9.4
31 32
 
... ...
@@ -45,11 +48,25 @@ mkdir -p -m 700 %{buildroot}/opt
45 45
 
46 46
 cp -r /opt/apache-ant-1.9.4 %{buildroot}/opt
47 47
 
48
+cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-2.1.3/maven-ant-tasks-2.1.3.jar %{buildroot}/%{_libdir}/ 
49
+
50
+MAVEN_ANT_TASKS_DIR=%{buildroot}/opt/%{name}-%{version}/maven-ant-tasks
51
+
52
+mkdir -p -m 700 $MAVEN_ANT_TASKS_DIR
53
+cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-2.1.3/LICENSE $MAVEN_ANT_TASKS_DIR/
54
+cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-2.1.3/NOTICE $MAVEN_ANT_TASKS_DIR/
55
+cp %{_builddir}/%{name}-%{version}/maven-ant-tasks-2.1.3/README.txt $MAVEN_ANT_TASKS_DIR/
56
+chown -R root:root $MAVEN_ANT_TASKS_DIR
57
+chmod 644 $MAVEN_ANT_TASKS_DIR/*
58
+
48 59
 %files
49 60
 %defattr(-,root,root)
50 61
 %{_bindir}/*
51 62
 %{_libdir}/*
63
+%{_prefix}/maven-ant-tasks/*
52 64
 
53 65
 %changelog
66
+*   Wed Aug 12 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
67
+-   Added maven ant tasks
54 68
 *	Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
55 69
 -	Initial build.	First version