Create makefile for remote-clients
Story: 2004043 Task: 27553 Change-Id: Ibfc33a7d66beefe7be9e13e2dc3cbd590ed318e9 Signed-off-by: Marcela Rosales <marcela.a.rosales.jimenez@intel.com> Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
This commit is contained in:
parent
c4c4191a91
commit
4c8bcf1d3e
|
@ -28,21 +28,24 @@ BuildRequires: python-fmclient-sdk
|
||||||
|
|
||||||
%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
|
%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
|
||||||
%define remote_client_dir /usr/share/remote-clients
|
%define remote_client_dir /usr/share/remote-clients
|
||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Remote-Client files
|
Remote-Client files
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
mv %{name} wrs-%{name}-%{version}
|
|
||||||
find %{remote_client_dir} -name "*.tgz" -exec cp '{}' wrs-%{name}-%{version}/ \;
|
%build
|
||||||
sed -i 's/xxxVERSIONxxx/%{version}/g' wrs-%{name}-%{version}/README
|
make NAME=%{name} \
|
||||||
tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version}
|
VERSION=%{version} \
|
||||||
|
REMOTE_CLIENT_DIR=%{remote_client_dir}
|
||||||
|
|
||||||
# Install for guest-client package
|
# Install for guest-client package
|
||||||
%install
|
%install
|
||||||
install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
|
make install NAME=%{name} \
|
||||||
|
VERSION=%{version} \
|
||||||
|
SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
|
%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
NAME ?= remote-clients
|
||||||
|
VERSION ?= 2.0.6
|
||||||
|
REMOTE_CLIENT_DIR ?= /usr/share/remote-clients
|
||||||
|
SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
|
||||||
|
|
||||||
|
all:
|
||||||
|
mv $(NAME) wrs-$(NAME)-$(VERSION)
|
||||||
|
find $(REMOTE_CLIENT_DIR) -name "*.tgz" -exec cp '{}' wrs-$(NAME)-$(VERSION)/ \;
|
||||||
|
sed -i 's/xxxVERSIONxxx/$(VERSION)/g' wrs-$(NAME)-$(VERSION)/README
|
||||||
|
tar czf wrs-$(NAME)-$(VERSION).tgz wrs-$(NAME)-$(VERSION)
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz
|
Loading…
Reference in New Issue