Compare commits

..

No commits in common. "31e779e9015dc69dc97aa663bc2a7ab65ecc3631" and "5b972ac8690e1d8b0ff5177fc945ea49465b4485" have entirely different histories.

3 changed files with 19 additions and 19 deletions

BIN
ntplib-0.3.4.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -5,19 +5,27 @@ text (mode, leap indicator...). Since it's pure Python, and only depends on core
modules, it should work on any platform with a Python implementation. modules, it should work on any platform with a Python implementation.
Name: python-ntplib Name: python-ntplib
Version: 0.4.0 Version: 0.3.4
Release: 1 Release: 1
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
URL: https://pypi.org/project/ntplib/ URL: https://pypi.org/project/ntplib/
Source0: https://files.pythonhosted.org/packages/b4/14/6b018fb602602d9f6cc7485cbad7c1be3a85d25cea18c233854f05284aed/ntplib-0.4.0.tar.gz Source0: https://github.com/cf-natali/ntplib/archive/ntplib-%{?version}.tar.gz
BuildArch: noarch 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
@ -32,34 +40,26 @@ 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* %{python3_sitelib}/ntplib.py
%exclude %{python3_sitelib}/__pycache__/ntplib*.pyc %{python3_sitelib}/ntplib-%{?version}-py?.?.egg-info
%{python3_sitelib}/__pycache__/ntplib*.pyc
%files help %files help
%doc CHANGELOG %doc CHANGELOG
%changelog %changelog
* Sun Sep 11 2022 tianlijing <tianlijing@kylinos.cn> - 0.4.0-1
- update to 0.4.0
* Thu Mar 31 2022 liuyumeng <liuyumeng5@h-partners.com> - 0.3.4-4
- change packaging to fix error
* 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
* Tue Jul 28 2020 liulong <liulong20@huawei.com> - 0.3.4-1 * Tue Jul 28 2020 liulong <liulong20@huawei.com> - 0.3.4-1
- Type:requirement - Type:requirement
- ID:NA - ID:NA