Centos8: update python-k8spp-plaform spec with python3
Spec update for python-k8sapp-platform to build python3 rpm Change-Id: I304ffdbbe49f77ef0d16f7d51093c0729f64d50e Story: 2006729 Task: 41898 Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
parent
5ae9afd448
commit
8e8730253c
|
@ -11,21 +11,21 @@ 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: Platform Integration K8S app
|
||||
|
||||
%package -n python2-%{pypi_name}
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: StarlingX sysinv extensions: Platform Integration K8S app
|
||||
|
||||
Requires: python-pbr >= 2.0.0
|
||||
Requires: python3-pbr >= 2.0.0
|
||||
Requires: sysinv >= 1.0
|
||||
|
||||
%description -n python2-%{pypi_name}
|
||||
%description -n python3-%{pypi_name}
|
||||
StarlingX sysinv extensions: Platform Integration K8S app
|
||||
|
||||
%prep
|
||||
|
@ -35,20 +35,19 @@ rm -rf %{pypi_name}.egg-info
|
|||
|
||||
%build
|
||||
export PBR_VERSION=%{version}
|
||||
%{__python2} setup.py build
|
||||
|
||||
%py2_build_wheel
|
||||
%{__python3} setup.py build
|
||||
%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
|
||||
install -m 644 dist/*.whl ${RPM_BUILD_ROOT}/plugins/
|
||||
|
||||
%files
|
||||
%{python2_sitelib}/%{sname}
|
||||
%{python2_sitelib}/%{sname}-*.egg-info
|
||||
%{python3_sitelib}/%{sname}
|
||||
%{python3_sitelib}/%{sname}-*.egg-info
|
||||
|
||||
%package wheels
|
||||
Summary: %{name} wheels
|
||||
|
|
Loading…
Reference in New Issue