Centos 8: update python-k8sapp-portieris spec with python3

Spec update for python-k8sapp-portieris to build python3 rpm

Change-Id: Ic94aeea511f2841c4bb1ea523aea04bd09b43741
Story: 2006729
Task: 42025
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
Angie Wang 2021-03-09 14:15:38 -06:00
parent 131e476093
commit 152abadc22
1 changed files with 9 additions and 9 deletions

View File

@ -12,10 +12,10 @@ Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-setuptools
BuildRequires: python-pbr
BuildRequires: python2-pip
BuildRequires: python2-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
%description
StarlingX sysinv extensions: Portieris K8S app
@ -27,20 +27,20 @@ rm -rf %{pypi_name}.egg-info
%build
export PBR_VERSION=%{version}
%{__python2} setup.py build
%{__python3} setup.py build
%py2_build_wheel
%py3_build_wheel
%install
export PBR_VERSION=%{version}.%{tis_patch_ver}
export SKIP_PIP_INSTALL=1
%{__python2} setup.py install --skip-build --root %{buildroot}
%{__python3} 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
%{python3_sitelib}/%{sname}
%{python3_sitelib}/%{sname}-*.egg-info
%package wheels
Summary: %{name} wheels