fix python3-pbr install fail problem without python2
This commit is contained in:
parent
1eb5c76367
commit
9ed6823c5d
@ -1,6 +1,6 @@
|
||||
Name: python-pbr
|
||||
Version: 5.4.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Python Build Reasonableness
|
||||
License: ASL 2.0
|
||||
URL: http://pypi.python.org/pypi/pbr
|
||||
@ -52,11 +52,11 @@ export SKIP_PIP_INSTALL=1
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/pbr/tests
|
||||
mv %{buildroot}%{_bindir}/pbr %{buildroot}%{_bindir}/pbr-3
|
||||
ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
|
||||
%py2_install
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
@ -79,6 +79,9 @@ ln -s ./pbr-3 %{buildroot}%{_bindir}/pbr
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 04 2021 shixuantong <shixuantong@huawei.com> - 5.4.5-3
|
||||
- fix python3-pbr install fail problem without python2
|
||||
|
||||
* Wed 16 Jun 2021 sunguoshuai<sunguoshuai@huawei.com> - 5.4.5-2
|
||||
- Add some buildrequires packages for testing and skip some testcases.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user