Browse Source

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>
Erich Cordoba 2 months ago
parent
commit
4c8bcf1d3e
2 changed files with 26 additions and 6 deletions
  1. 9
    6
      remote-clients/centos/remote-clients.spec
  2. 17
    0
      remote-clients/remote-clients/Makefile

+ 9
- 6
remote-clients/centos/remote-clients.spec View File

@@ -28,21 +28,24 @@ BuildRequires: python-fmclient-sdk
28 28
 
29 29
 %define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk
30 30
 %define remote_client_dir /usr/share/remote-clients
31
+%global debug_package %{nil}
31 32
 
32 33
 %description
33 34
 Remote-Client files
34 35
 
35 36
 %prep
36 37
 %setup
37
-mv %{name} wrs-%{name}-%{version}
38
-find %{remote_client_dir} -name "*.tgz" -exec cp '{}' wrs-%{name}-%{version}/ \;
39
-sed -i 's/xxxVERSIONxxx/%{version}/g' wrs-%{name}-%{version}/README
40
-tar czf wrs-%{name}-%{version}.tgz wrs-%{name}-%{version}
38
+
39
+%build
40
+make NAME=%{name} \
41
+     VERSION=%{version} \
42
+     REMOTE_CLIENT_DIR=%{remote_client_dir}
41 43
 
42 44
 # Install for guest-client package
43 45
 %install
44
-install -D -m 644 wrs-%{name}-%{version}.tgz %{buildroot}%{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
46
+make install NAME=%{name} \
47
+     VERSION=%{version} \
48
+     SDK_DEPLOY_DIR=%{buildroot}%{cgcs_sdk_deploy_dir}
45 49
 
46 50
 %files
47 51
 %{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz
48
-

+ 17
- 0
remote-clients/remote-clients/Makefile View File

@@ -0,0 +1,17 @@
1
+#
2
+# SPDX-License-Identifier: Apache-2.0
3
+#
4
+
5
+NAME ?= remote-clients
6
+VERSION ?= 2.0.6
7
+REMOTE_CLIENT_DIR ?= /usr/share/remote-clients
8
+SDK_DEPLOY_DIR ?= /opt/deploy/cgcs_sdk
9
+
10
+all:
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
+
16
+install:
17
+	install -D -m 644 wrs-$(NAME)-$(VERSION).tgz $(SDK_DEPLOY_DIR)/wrs-$(NAME)-$(VERSION).tgz

Loading…
Cancel
Save