06168af5 |
Summary: Apache Commons Daemon
Name: commons-daemon
Version: 1.0.15 |
e02163c5 |
Release: 4%{?dist} |
06168af5 |
License: Apache
URL: http://commons.apache.org/proper/commons-daemon
Group: Applications/System
Vendor: VMware, Inc.
Distribution: Photon
BuildArch: x86_64
Source0: http://apache.mesi.com.ar//commons/daemon/source/commons-daemon-1.0.15-src.tar.gz
%define sha1 commons-daemon=ca6a448d1d214f714e214b35809a2117568970e3 |
97c9dddf |
Requires: openjre >= 1.8.0.45 |
f14e6e41 |
BuildRequires: openjre >= 1.8.0.45, openjdk >= 1.8.0.45, apache-ant >= 1.9.6 |
06168af5 |
|
8255ac07 |
%define _prefix /var/opt/%{name}-%{version} |
06168af5 |
%define _bindir %{_prefix}/bin
%description
The JNA package contains libraries for interop from Java to native libraries.
%prep
%setup -q -n %{name}-%{version}-src
%build |
f14e6e41 |
ANT_HOME=/var/opt/apache-ant-1.9.6 |
e02163c5 |
export JAVA_HOME=/var/opt/OpenJDK-1.8.0.72-bin |
06168af5 |
$ANT_HOME/bin/ant dist
export CFLAGS=-m64
export LDFLAGS=-m64
CURDIR=`pwd`
cd src/native/unix && ./configure && make
cd $CURDIR
%install
|
f14e6e41 |
ANT_HOME=/var/opt/apache-ant-1.9.6 |
06168af5 |
DIST_DIR=%{buildroot}%{_prefix}
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
mkdir -p -m 755 $DIST_DIR
mkdir -p -m 755 $DIST_DIR/bin
cp %{_builddir}/%{name}-%{version}-src/src/native/unix/jsvc $DIST_DIR/bin
cp %{_builddir}/%{name}-%{version}-src/dist/%{name}-%{version}.jar $DIST_DIR
chmod -R 755 $DIST_DIR
%files
%defattr(-,root,root)
%{_bindir}/jsvc
%{_prefix}/*.jar
%changelog |
e02163c5 |
* Fri Feb 26 2016 Kumar Kaushik <kaushikk@vmware.com> 1.0.15-4
- Updated JAVA_HOME path to point to latest JDK. |
8255ac07 |
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 1.0.15-3 |
e02163c5 |
- Changing path to /var/opt. |
97c9dddf |
* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0.15-2 |
e02163c5 |
- Updated dependencies after repackaging openjdk. |
06168af5 |
* Wed Jul 15 2015 Sriram Nambakam <snambakam@vmware.com> 1.0.15-1
- Initial commit |