forked from pool/python-ntplib
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntplib?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 2 14:44:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 7 19:56:00 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
Wed Dec 7 19:56:00 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-ntplib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define upstream_name ntplib
|
%define upstream_name ntplib
|
||||||
Name: python-%{upstream_name}
|
Name: python-%{upstream_name}
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
@@ -24,14 +23,14 @@ Release: 0
|
|||||||
Summary: Python NTP library
|
Summary: Python NTP library
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: http://pypi.python.org/pypi/ntplib
|
URL: https://pypi.python.org/pypi/ntplib
|
||||||
Source0: ntplib-%{version}.tar.gz
|
Source0: ntplib-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -44,15 +43,15 @@ modules, it should work on any platform with a decent Python implementation.
|
|||||||
%setup -q -n %{upstream_name}-%{version}
|
%setup -q -n %{upstream_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc CHANGELOG
|
%doc CHANGELOG
|
||||||
%{python_sitelib}/ntplib*
|
%{python_sitelib}/ntplib.py
|
||||||
%pycache_only %{python_sitelib}/__pycache__
|
%{python_sitelib}/ntplib-%{version}*-info
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/ntplib*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user