summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Cordoba <erich.cordoba.malibran@intel.com>2019-01-29 12:03:10 -0600
committerErich Cordoba <erich.cordoba.malibran@intel.com>2019-01-29 12:08:56 -0600
commit4c8bcf1d3ecc89680baa1b619da9f7f813661f9e (patch)
tree9ba57c66072bbddb884070fef8108be6007172cc
parentc4c4191a91f4740f17c165c7caf41d15abeac989 (diff)
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>
Notes
Notes (review): Code-Review+2: jerry <jerry.sun@windriver.com> Workflow+1: jerry <jerry.sun@windriver.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 31 Jan 2019 14:00:45 +0000 Reviewed-on: https://review.openstack.org/633794 Project: openstack/stx-clients Branch: refs/heads/master
-rw-r--r--remote-clients/centos/remote-clients.spec15
-rw-r--r--remote-clients/remote-clients/Makefile17
2 files changed, 26 insertions, 6 deletions
diff --git a/remote-clients/centos/remote-clients.spec b/remote-clients/centos/remote-clients.spec
index 70c4abf..ad17f47 100644
--- a/remote-clients/centos/remote-clients.spec
+++ b/remote-clients/centos/remote-clients.spec
@@ -28,21 +28,24 @@ BuildRequires: python-fmclient-sdk
28 28
29%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk 29%define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
30%define remote_client_dir /usr/share/remote-clients 30%define remote_client_dir /usr/share/remote-clients
31%global debug_package %{nil}
31 32
32%description 33%description
33Remote-Client files 34Remote-Client files
34 35
35%prep 36%prep
36%setup 37%setup
37mv %{name} wrs-%{name}-%{version} 38
38find %{remote_client_dir} -name "*.tgz" -exec cp '{}' wrs-%{name}-%{version}/ \; 39%build
39sed -i 's/xxxVERSIONxxx/%{version}/g' wrs-%{name}-%{version}/README 40make NAME=%{name} \
40tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version} 41 VERSION=%{version} \
42 REMOTE_CLIENT_DIR=%{remote_client_dir}
41 43
42# Install for guest-client package 44# Install for guest-client package
43%install 45%install
44install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz 46make install NAME=%{name} \
47 VERSION=%{version} \
48 SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
45 49
46%files 50%files
47%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz 51%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
48
diff --git a/remote-clients/remote-clients/Makefile b/remote-clients/remote-clients/Makefile
new file mode 100644
index 0000000..ac6b73e
--- /dev/null
+++ b/remote-clients/remote-clients/Makefile
@@ -0,0 +1,17 @@
1#
2# SPDX-License-Identifier: Apache-2.0
3#
4
5NAME ?= remote-clients
6VERSION ?= 2.0.6
7REMOTE_CLIENT_DIR ?= /usr/share/remote-clients
8SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
9
10all:
11 mv $(NAME) wrs-$(NAME)-$(VERSION)
12 find $(REMOTE_CLIENT_DIR) -name "*.tgz" -exec cp '{}' wrs-$(NAME)-$(VERSION)/ \;
13 sed -i 's/xxxVERSIONxxx/$(VERSION)/g' wrs-$(NAME)-$(VERSION)/README
14 tar czf wrs-$(NAME)-$(VERSION).tgz wrs-$(NAME)-$(VERSION)
15
16install:
17 install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz