!5 remove python2

From: @wcc_140409
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2020-10-30 16:29:57 +08:00 committed by Gitee
commit 9fafa54650

View File

@ -1,11 +1,12 @@
%define debug_package %{nil}
Name: python-kmod
Version: 0.9.1
Release: 1
Release: 2
Summary: Python module to work with kernel modules
License: LGPLv2+
URL: https://github.com/agrover/python-kmod/
Source0: https://files.pythonhosted.org/packages/source/k/kmod/kmod-%{version}.tar.gz
BuildRequires: python2-devel python3-devel python2-setuptools python2-Cython python3-Cython python3 kmod-devel python-unversioned-command
BuildRequires: python3-devel python3-Cython python3 kmod-devel python3-unversioned-command
%global _description\
Python bindings for kmod/libkmod. \
@ -14,12 +15,6 @@ python-kmod is a Python wrapper module for libkmod, exposing common module opera
%description %_description
%package -n python2-kmod
Summary: Python module to work with kernel modules
%{?python_provide:%python_provide python2-kmod}
%description -n python2-kmod %_description
%package -n python3-kmod
Summary: Python module to work with kernel modules
@ -31,18 +26,11 @@ Summary: Python module to work with kernel modules
%autosetup -n kmod-%{version} -p1
%build
%{__python} setup.py build
%{__python3} setup.py build
%install
%{__python} setup.py install --skip-build --root %{buildroot}
%{__python3} setup.py install --skip-build --root %{buildroot}
%files -n python2-kmod
%{python_sitearch}/kmod/
%{python_sitearch}/*.egg-info
%doc COPYING.LESSER
%files -n python3-kmod
%{python3_sitearch}/kmod/
%{python3_sitearch}/*.egg-info
@ -52,6 +40,12 @@ Summary: Python module to work with kernel modules
%doc README
%changelog
* Fri Oct 30 2020 wuchaochao <wuchaochao4@huawei.com> - 0.9.1-2
- Type:bufix
- CVE:NA
- SUG:NA
- DESC:remove python2
* Thu Jul 30 2020 tianwei <tianwei12@huawei.com> - 0.9.1-1
- Package update to release 0.9.1