!6 remove python2
From: @eaglegai Reviewed-by: @orange-snn Signed-off-by: @orange-snn
This commit is contained in:
commit
0b3fbbf51d
@ -6,7 +6,7 @@ modules, it should work on any platform with a Python implementation.
|
|||||||
|
|
||||||
Name: python-ntplib
|
Name: python-ntplib
|
||||||
Version: 0.3.4
|
Version: 0.3.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: This module offers a simple interface to query NTP servers from Python.
|
Summary: This module offers a simple interface to query NTP servers from Python.
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -18,14 +18,6 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
%package_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
|
%package -n python3-ntplib
|
||||||
Summary: This module offers a simple interface to query NTP servers from Python 3.
|
Summary: This module offers a simple interface to query NTP servers from Python 3.
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools
|
||||||
@ -40,17 +32,11 @@ BuildRequires: python3-devel python3-setuptools
|
|||||||
%autosetup -n ntplib-%{version} -p1
|
%autosetup -n ntplib-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%files -n python2-ntplib
|
|
||||||
%{python2_sitelib}/ntplib.*
|
|
||||||
%{python2_sitelib}/ntplib-%{?version}-py?.?.egg-info
|
|
||||||
|
|
||||||
%files -n python3-ntplib
|
%files -n python3-ntplib
|
||||||
%{python3_sitelib}/ntplib.py
|
%{python3_sitelib}/ntplib.py
|
||||||
%{python3_sitelib}/ntplib-%{?version}-py?.?.egg-info
|
%{python3_sitelib}/ntplib-%{?version}-py?.?.egg-info
|
||||||
@ -60,6 +46,12 @@ BuildRequires: python3-devel python3-setuptools
|
|||||||
%doc CHANGELOG
|
%doc CHANGELOG
|
||||||
|
|
||||||
%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
|
* Fri Sep 11 2020 hanzhijun <hanzhijun1@huawei.com> - 0.3.4-2
|
||||||
- solve source url problem
|
- solve source url problem
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user