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 %define cgcs_sdk_deploy_dir /opt/deploy/cgcs_sdk %define remote_client_dir /usr/share/remote-clients +%global debug_package %{nil} %description Remote-Client files %prep %setup -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} + +%build +make NAME=%{name} \ + VERSION=%{version} \ + REMOTE_CLIENT_DIR=%{remote_client_dir} # Install for guest-client package %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 %{cgcs_sdk_deploy_dir}/wrs-%{name}-%{version}.tgz - 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 @@ +# +# 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