From abd0b2c0840900d9916f20e0735f375f1d3ece22 Mon Sep 17 00:00:00 2001 From: basebuilder_pel7ppc64lebuilder0 Date: Mon, 18 Nov 2019 15:21:59 +0100 Subject: [PATCH] python-psutil add python3 support Signed-off-by: basebuilder_pel7ppc64lebuilder0 --- SPECS/python-psutil.spec | 41 +++++++--------------------------------- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/SPECS/python-psutil.spec b/SPECS/python-psutil.spec index fe0347b9..ec337b80 100644 --- a/SPECS/python-psutil.spec +++ b/SPECS/python-psutil.spec @@ -35,28 +35,15 @@ Group: Development/Languages %{_desc} -%package -n python%{python3_pkgversion}-psutil +%package -n python3-psutil Summary: %{_sum} Group: Development/Languages %{?python_provide:%python_provide python%{python3_pkgversion}-psutil} -%description -n python%{python3_pkgversion}-psutil +%description -n python3-psutil %{_desc} -%if 0%{?python3_other_pkgversion} -%package -n python%{python3_other_pkgversion}-psutil -Summary: %{_sum} -Group: Development/Languages -%{?python_provide:%python_provide python%{python3_other_pkgversion}-psutil} - -BuildRequires: python%{python3_other_pkgversion}-devel - -%description -n python%{python3_other_pkgversion}-psutil -%{_desc} -%endif - - %prep %autosetup -n %{short_name}-%{version} @@ -69,18 +56,13 @@ done %build -%py2_build -%py3_build -%if 0%{?python3_other_pkgversion} -%py3_other_build -%endif +%{__python2} setup.py build +%{__python3} setup.py build + %install -%py2_install -%py3_install -%if 0%{?python3_other_pkgversion} -%py3_other_install -%endif +%{__python2} setup.py install --optimize 2 --root %{buildroot} +%{__python3} setup.py install --optimize 2 --root %{buildroot} %files -n python2-psutil @@ -99,15 +81,6 @@ done %{python3_sitearch}/*.so -%if 0%{?python3_other_pkgversion} -%files -n python%{python3_other_pkgversion}-psutil -%license LICENSE -%doc CREDITS HISTORY.rst README.rst TODO -%{python3_other_sitearch}/%{short_name}/ -%{python3_other_sitearch}/*.egg-info -%{python3_other_sitearch}/*.so -%endif - %changelog * Sun Nov 12 2018 Orion Poplawski - 2.2.1-4