
The ORAN O2 app provides O-RAN spec compliant O2 interfaces. This commit packages the existing O2 helm charts into a fluxCD application Test Plan: Pass: oran-o2 present in /usr/local/share/applications/helm/ after CentOS ISO installation Pass: oran-o2 present in /usr/local/share/applications/helm/ after Debian ISO installation Pass: oran-o2 is applied on AIO-SX CentOS Pass: oran-o2 is applied on AIO-SX Debian Pass: oran-o2 is applied on DC AIO-DX CentOS Pass: oran-o2 is applied with overrides on AIO-SX CentOS Pass: oran-o2 is applied with overrides on AIO-SX Debian Pass: oran-o2 is applied with overrides on DC Central AIO-DX CentOS Story: 2010278 Task: 46684 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I290c12f8d0f5c02588920ef3cd3e23b1ad80b0d2
53 lines
1.1 KiB
RPMSpec
53 lines
1.1 KiB
RPMSpec
%global app_name oran-o2
|
|
%global pypi_name k8sapp-oran-o2
|
|
%global sname k8sapp_oran_o2
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
Summary: StarlingX sysinv extensions: ORAN O2
|
|
|
|
License: Apache-2.0
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-pbr
|
|
BuildRequires: python2-pip
|
|
BuildRequires: python2-wheel
|
|
|
|
%description
|
|
StarlingX sysinv extensions: ORAN O2 K8S app
|
|
|
|
%prep
|
|
%setup
|
|
# Remove bundled egg-info
|
|
rm -rf %{pypi_name}.egg-info
|
|
|
|
%build
|
|
export PBR_VERSION=%{version}
|
|
%{__python2} setup.py build
|
|
|
|
%py2_build_wheel
|
|
|
|
%install
|
|
export PBR_VERSION=%{version}.%{tis_patch_ver}
|
|
export SKIP_PIP_INSTALL=1
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
mkdir -p ${RPM_BUILD_ROOT}/plugins/%{app_name}
|
|
install -m 644 dist/*.whl ${RPM_BUILD_ROOT}/plugins/%{app_name}/
|
|
|
|
%files
|
|
%{python2_sitelib}/%{sname}
|
|
%{python2_sitelib}/%{sname}-*.egg-info
|
|
|
|
%package wheels
|
|
Summary: %{name} wheels
|
|
|
|
%description wheels
|
|
Contains python wheels for %{name}
|
|
|
|
%files wheels
|
|
/plugins/*
|