[Service]
Type=forking
-ExecStart=/opt/honeycomb/bin/start
-User=honeycomb
-Group=honeycomb
+ExecStart=/opt/honeycomb/honeycomb
[Install]
-WantedBy=multi-user.target
\ No newline at end of file
+WantedBy=multi-user.target
Group: Applications/Communications
License: Apache-1.0
URL: http://www.fd.io
-Source0: vpp-integration-karaf-%{_version}-SNAPSHOT.zip
+Source0: vpp-integration-distribution-%{_version}-SNAPSHOT-hc.zip
Source1: honeycomb.service
Requires: vpp, java >= 1:1.8.0
# Required for creating honeycomb group
%prep
# Extract Source0 (Honeycomb archive)
-%autosetup -n vpp-integration-karaf-%{_version}-SNAPSHOT
+%autosetup -n vpp-integration-distribution-%{_version}-SNAPSHOT
%install
# Create directory in build root for Honeycomb
mkdir -p $RPM_BUILD_ROOT/opt/%name
# Copy Honeycomb from archive to its dir in build root
-cp -r ../vpp-integration-karaf-%{_version}-SNAPSHOT/* $RPM_BUILD_ROOT/opt/%name
+cp -r ../vpp-integration-distribution-%{_version}-SNAPSHOT/* $RPM_BUILD_ROOT/opt/%name
# Create directory in build root for systemd .service file
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
# Copy Honeycomb's systemd .service file to correct dir in build root
set -xe
DIR=$(dirname $0)
DIR=$(readlink -f $DIR)
-ZIPDIR=${DIR}/../../vpp-integration/karaf/target/
-ZIPFILE=${ZIPDIR}/vpp-integration-karaf-1.0.0-SNAPSHOT.zip
+ZIPDIR=${DIR}/../../vpp-integration/minimal-distribution/target/
+ZIPFILE=${ZIPDIR}/vpp-integration-distribution-1.0.0-SNAPSHOT-hc.zip
mkdir -p ${DIR}/SOURCES/
cp $ZIPFILE ${DIR}/SOURCES/
cp ${DIR}/honeycomb.spec ${DIR}/SOURCES/