update code
This commit is contained in:
commit
6da02385e0
BIN
ntplib-0.3.3.tar.gz
Normal file
BIN
ntplib-0.3.3.tar.gz
Normal file
Binary file not shown.
64
python-ntplib.spec
Normal file
64
python-ntplib.spec
Normal file
@ -0,0 +1,64 @@
|
||||
%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
|
||||
Version: 0.3.3
|
||||
Release: 13
|
||||
Summary: This module offers a simple interface to query NTP servers from Python.
|
||||
|
||||
License: MIT
|
||||
URL: https://pypi.org/project/ntplib/
|
||||
Source0: https://pypi.org/project/ntplib/0.3.3/ntplib-%{?version}.tar.gz
|
||||
|
||||
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
|
||||
%{?python_provide:%python_provide python3-ntplib}
|
||||
|
||||
%description -n python3-ntplib
|
||||
%package_description
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%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-0.3.3-py?.?.egg-info
|
||||
|
||||
%files -n python3-ntplib
|
||||
%{python3_sitelib}/ntplib.py
|
||||
%{python3_sitelib}/ntplib-0.3.3-py?.?.egg-info
|
||||
%{python3_sitelib}/__pycache__/ntplib*.pyc
|
||||
|
||||
%files help
|
||||
%doc CHANGELOG
|
||||
|
||||
%changelog
|
||||
* Sat Oct 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.3.3-13
|
||||
- Package Init
|
||||
Loading…
x
Reference in New Issue
Block a user