!6 remove python2

From: @eaglegai
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
This commit is contained in:
openeuler-ci-bot 2020-10-29 20:44:44 +08:00 committed by Gitee
commit 0b3fbbf51d

View File

@ -6,7 +6,7 @@ modules, it should work on any platform with a Python implementation.
Name: python-ntplib
Version: 0.3.4
Release: 2
Release: 3
Summary: This module offers a simple interface to query NTP servers from Python.
License: MIT
@ -18,14 +18,6 @@ BuildArch: noarch
%description
%package_description
%package -n python2-ntplib
Summary: This module offers a simple interface to query NTP servers from Python 2.
BuildRequires: python2-devel python2-setuptools
%{?python_provide:%python_provide python2-ntplib}
%description -n python2-ntplib
%package_description
%package -n python3-ntplib
Summary: This module offers a simple interface to query NTP servers from Python 3.
BuildRequires: python3-devel python3-setuptools
@ -40,17 +32,11 @@ BuildRequires: python3-devel python3-setuptools
%autosetup -n ntplib-%{version} -p1
%build
%py2_build
%py3_build
%install
%py2_install
%py3_install
%files -n python2-ntplib
%{python2_sitelib}/ntplib.*
%{python2_sitelib}/ntplib-%{?version}-py?.?.egg-info
%files -n python3-ntplib
%{python3_sitelib}/ntplib.py
%{python3_sitelib}/ntplib-%{?version}-py?.?.egg-info
@ -60,6 +46,12 @@ BuildRequires: python3-devel python3-setuptools
%doc CHANGELOG
%changelog
* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 0.3.4-3
- Type:requirement
- ID:NA
- SUG:NA
- DESC:remove python2
* Fri Sep 11 2020 hanzhijun <hanzhijun1@huawei.com> - 0.3.4-2
- solve source url problem