14
0
forked from pool/python-ntplib
Files
python-ntplib/python-ntplib.spec
Dirk Mueller 6bbc5a6024 Accepting request 1041216 from home:yarunachalam:branches:devel:languages:python
- Update to version 0.4.0 - 2021-05-28
  - flake8 conformance
  - Add ROA Reference ID
- Update to version 0.3.4 - 2020-04-28
  - Re-release of 0.3.3 (0.3.3 was mistakenly deleted from PyPI)

OBS-URL: https://build.opensuse.org/request/show/1041216
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntplib?expand=0&rev=5
2022-12-07 21:30:01 +00:00

59 lines
1.8 KiB
RPMSpec

#
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define upstream_name ntplib
Name: python-%{upstream_name}
Version: 0.4.0
Release: 0
Summary: Python NTP library
License: MIT
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/ntplib
Source0: ntplib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
This module offers a simple interface to query NTP servers from Python.
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 decent Python implementation.
%prep
%setup -q -n %{upstream_name}-%{version}
%build
%python_build
%install
%python_install
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG
%{python_sitelib}/ntplib*
%pycache_only %{python_sitelib}/__pycache__
%changelog