55 lines
1.4 KiB
RPMSpec
55 lines
1.4 KiB
RPMSpec
%global helm_folder /usr/lib/helm
|
|
%global armada_folder /usr/lib/armada
|
|
%global toolkit_version 0.1.0
|
|
%global helmchart_version 0.1.0
|
|
|
|
Summary: StarlingX Openstack Application Helm charts
|
|
Name: stx-openstack-helm
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
URL: unknown
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: helm
|
|
BuildRequires: openstack-helm-infra
|
|
Requires: openstack-helm-infra
|
|
|
|
%description
|
|
StarlingX Openstack Application Helm charts
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
# initialize helm and stage the toolkit
|
|
helm init --client-only
|
|
# Host a server for the charts
|
|
cp %{helm_folder}/helm-toolkit-%{toolkit_version}.tgz .
|
|
helm serve --repo-path . &
|
|
helm repo rm local
|
|
helm repo add local http://localhost:8879/charts
|
|
|
|
# Make the charts. These produce a tgz file
|
|
make nova-api-proxy
|
|
|
|
# remove helm-toolkit. This will be packaged with openstack-helm-infra
|
|
rm ./helm-toolkit-%{toolkit_version}.tgz
|
|
|
|
%install
|
|
# helm_folder is created by openstack-helm-infra
|
|
install -d -m 755 ${RPM_BUILD_ROOT}%{helm_folder}
|
|
install -p -D -m 755 *.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
|
|
#helm_folder is owned by openstack-helm-infra
|
|
%defattr(-,root,root,-)
|
|
%{helm_folder}/*
|
|
%{armada_folder}/*
|