2019-11-06 19:49:35 +08:00
|
|
|
%define package_description \
|
|
|
|
|
The ntplib is a python module that offers a simple interface to query NTP. \
|
|
|
|
|
servers. It also provides utility functions to translate NTP fields' values to \
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Name: python-ntplib
|
2022-08-08 03:43:52 +08:00
|
|
|
Version: 0.4.0
|
|
|
|
|
Release: 1
|
2019-11-06 19:49:35 +08:00
|
|
|
Summary: This module offers a simple interface to query NTP servers from Python.
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://pypi.org/project/ntplib/
|
2022-08-08 03:43:52 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/b4/14/6b018fb602602d9f6cc7485cbad7c1be3a85d25cea18c233854f05284aed/ntplib-0.4.0.tar.gz
|
2019-11-06 19:49:35 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%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
|
|
|
|
|
%{?python_provide:%python_provide python3-ntplib}
|
|
|
|
|
|
|
|
|
|
%description -n python3-ntplib
|
|
|
|
|
%package_description
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n ntplib-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%files -n python3-ntplib
|
2022-03-31 20:16:39 +08:00
|
|
|
%{python3_sitelib}/ntplib*
|
|
|
|
|
%exclude %{python3_sitelib}/__pycache__/ntplib*.pyc
|
2019-11-06 19:49:35 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc CHANGELOG
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-08-08 03:43:52 +08:00
|
|
|
* Sun Sep 11 2022 tianlijing <tianlijing@kylinos.cn> - 0.4.0-1
|
|
|
|
|
- update to 0.4.0
|
|
|
|
|
|
2022-06-08 06:30:54 +00:00
|
|
|
* Thu Mar 31 2022 liuyumeng <liuyumeng5@h-partners.com> - 0.3.4-4
|
2022-03-31 20:16:39 +08:00
|
|
|
- change packaging to fix error
|
|
|
|
|
|
2020-10-29 10:15:54 +08:00
|
|
|
* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 0.3.4-3
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:remove python2
|
|
|
|
|
|
2020-09-10 20:28:13 +08:00
|
|
|
* Fri Sep 11 2020 hanzhijun <hanzhijun1@huawei.com> - 0.3.4-2
|
|
|
|
|
- solve source url problem
|
|
|
|
|
|
2020-07-28 16:45:49 +08:00
|
|
|
* Tue Jul 28 2020 liulong <liulong20@huawei.com> - 0.3.4-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update ntplib version to 0.3.4
|
|
|
|
|
|
2019-11-06 19:49:35 +08:00
|
|
|
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.3-13
|
|
|
|
|
- Package Init
|