From 9ed6823c5da57944caa471b7d3fc463feb5e744b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E5=B0=8F=E5=93=A5?= Date: Wed, 4 Aug 2021 01:07:47 +0000 Subject: [PATCH] fix python3-pbr install fail problem without python2 --- python-pbr.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python-pbr.spec b/python-pbr.spec index bb87f12..b13acc8 100644 --- a/python-pbr.spec +++ b/python-pbr.spec @@ -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 - 5.4.5-3 +- fix python3-pbr install fail problem without python2 + * Wed 16 Jun 2021 sunguoshuai - 5.4.5-2 - Add some buildrequires packages for testing and skip some testcases.