%global helm_folder /usr/lib/helm %global armada_folder /usr/lib/armada %global app_folder /usr/lib/application %global toolkit_version 0.2.19 %global helmchart_version 0.1.0 Summary: StarlingX SDO Application Helm charts Name: stx-sdo-helm Version: 1.0 Release: %{tis_patch_ver}%{?_tis_dist} License: Apache-2.0 Group: base Packager: Intel URL: unknown Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: helm BuildRequires: chartmuseum BuildRequires: openstack-helm-infra %description StarlingX SDO Application Helm charts %prep %setup %build # Stage helm-toolkit in the local repo cp %{helm_folder}/helm-toolkit-%{toolkit_version}.tgz helm-charts/ # Host a server for the charts chartmuseum --debug --port=8879 --context-path='/charts' --storage="local" --storage-local-rootdir="./helm-charts" & sleep 2 helm repo add local http://localhost:8879/charts # Make the charts. These produce a tgz file cd helm-charts make sdo cd - # terminate helm server (the last backgrounded task) kill %1 %install # helm_folder is created by openstack-helm-infra install -d -m 755 ${RPM_BUILD_ROOT}%{app_folder} install -p -D -m 755 files/metadata.yaml ${RPM_BUILD_ROOT}%{app_folder} install -d -m 755 ${RPM_BUILD_ROOT}%{helm_folder} install -p -D -m 755 helm-charts/*.tgz ${RPM_BUILD_ROOT}%{helm_folder} install -d -m 755 ${RPM_BUILD_ROOT}%{armada_folder} install -p -D -m 755 manifests/*.yaml ${RPM_BUILD_ROOT}%{armada_folder} %files %defattr(-,root,root,-) %{helm_folder}/* %{armada_folder}/* %{app_folder}/*