Browse Source

python-psutil add python3 support

Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64lebuilder0 5 years ago
parent
commit
abd0b2c084
  1. 41
      SPECS/python-psutil.spec

41
SPECS/python-psutil.spec

@ -35,28 +35,15 @@ Group: Development/Languages
%{_desc} %{_desc}




%package -n python%{python3_pkgversion}-psutil %package -n python3-psutil
Summary: %{_sum} Summary: %{_sum}
Group: Development/Languages Group: Development/Languages
%{?python_provide:%python_provide python%{python3_pkgversion}-psutil} %{?python_provide:%python_provide python%{python3_pkgversion}-psutil}


%description -n python%{python3_pkgversion}-psutil %description -n python3-psutil
%{_desc} %{_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 %prep
%autosetup -n %{short_name}-%{version} %autosetup -n %{short_name}-%{version}


@ -69,18 +56,13 @@ done




%build %build
%py2_build %{__python2} setup.py build
%py3_build %{__python3} setup.py build
%if 0%{?python3_other_pkgversion}
%py3_other_build
%endif


%install %install
%py2_install %{__python2} setup.py install --optimize 2 --root %{buildroot}
%py3_install %{__python3} setup.py install --optimize 2 --root %{buildroot}
%if 0%{?python3_other_pkgversion}
%py3_other_install
%endif




%files -n python2-psutil %files -n python2-psutil
@ -99,15 +81,6 @@ done
%{python3_sitearch}/*.so %{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 %changelog
* Sun Nov 12 2018 Orion Poplawski <orion@nwra.com> - 2.2.1-4 * Sun Nov 12 2018 Orion Poplawski <orion@nwra.com> - 2.2.1-4

Loading…
Cancel
Save