1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,62 @@ |
0 |
+Summary: Apache Commons Daemon |
|
1 |
+Name: commons-daemon |
|
2 |
+Version: 1.0.15 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: Apache |
|
5 |
+URL: http://commons.apache.org/proper/commons-daemon |
|
6 |
+Group: Applications/System |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+BuildArch: x86_64 |
|
10 |
+Source0: http://apache.mesi.com.ar//commons/daemon/source/commons-daemon-1.0.15-src.tar.gz |
|
11 |
+%define sha1 commons-daemon=ca6a448d1d214f714e214b35809a2117568970e3 |
|
12 |
+Requires: openjdk >= 1.8.0.45 |
|
13 |
+BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
14 |
+ |
|
15 |
+%define _prefix /opt/%{name}-%{version} |
|
16 |
+%define _bindir %{_prefix}/bin |
|
17 |
+ |
|
18 |
+%description |
|
19 |
+The JNA package contains libraries for interop from Java to native libraries. |
|
20 |
+ |
|
21 |
+%prep |
|
22 |
+ |
|
23 |
+%setup -q -n %{name}-%{version}-src |
|
24 |
+%build |
|
25 |
+ANT_HOME=/opt/apache-ant-1.9.4 |
|
26 |
+export JAVA_HOME=/opt/OpenJDK-1.8.0.45-bin |
|
27 |
+ |
|
28 |
+$ANT_HOME/bin/ant dist |
|
29 |
+ |
|
30 |
+export CFLAGS=-m64 |
|
31 |
+export LDFLAGS=-m64 |
|
32 |
+ |
|
33 |
+CURDIR=`pwd` |
|
34 |
+ |
|
35 |
+cd src/native/unix && ./configure && make |
|
36 |
+ |
|
37 |
+cd $CURDIR |
|
38 |
+ |
|
39 |
+%install |
|
40 |
+ |
|
41 |
+ANT_HOME=/opt/apache-ant-1.9.4 |
|
42 |
+DIST_DIR=%{buildroot}%{_prefix} |
|
43 |
+ |
|
44 |
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/* |
|
45 |
+ |
|
46 |
+mkdir -p -m 755 $DIST_DIR |
|
47 |
+mkdir -p -m 755 $DIST_DIR/bin |
|
48 |
+ |
|
49 |
+cp %{_builddir}/%{name}-%{version}-src/src/native/unix/jsvc $DIST_DIR/bin |
|
50 |
+cp %{_builddir}/%{name}-%{version}-src/dist/%{name}-%{version}.jar $DIST_DIR |
|
51 |
+ |
|
52 |
+chmod -R 755 $DIST_DIR |
|
53 |
+ |
|
54 |
+%files |
|
55 |
+%defattr(-,root,root) |
|
56 |
+%{_bindir}/jsvc |
|
57 |
+%{_prefix}/*.jar |
|
58 |
+ |
|
59 |
+%changelog |
|
60 |
+* Wed Jul 15 2015 Sriram Nambakam <snambakam@vmware.com> 1.0.15-1 |
|
61 |
+- Initial commit |
... | ... |
@@ -6,5 +6,5 @@ |
6 | 6 |
"gnutls-devel","guile-devel","json-c-devel","libestr-devel","libgcrypt-devel","liblogging-devel", |
7 | 7 |
"librelp-devel","libtasn1-devel","libunistring-devel","nettle-devel", |
8 | 8 |
"apache-ant","ant-contrib","apache-maven","apache-tomcat","jna", |
9 |
- "jaxws-ri"] |
|
9 |
+ "jaxws-ri","commons-daemon"] |
|
10 | 10 |
} |