diff --git a/python-pingparsing.changes b/python-pingparsing.changes index b008cc1..1461c3e 100644 --- a/python-pingparsing.changes +++ b/python-pingparsing.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 3 11:28:33 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue May 7 20:19:13 UTC 2024 - Dirk Müller diff --git a/python-pingparsing.spec b/python-pingparsing.spec index c0e4499..63915d9 100644 --- a/python-pingparsing.spec +++ b/python-pingparsing.spec @@ -1,7 +1,7 @@ # # spec file for package python-pingparsing # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/thombashi/pingparsing Source: https://github.com/thombashi/pingparsing/archive/v%{version}.tar.gz#/pingparsing-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 38.3.0} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-humanreadable >= 0.3 @@ -36,8 +38,8 @@ Requires: python-setuptools >= 38.3.0 Requires: python-simplejson Requires: python-subprocrunner >= 1.2.2 Requires: python-typepy >= 1.3.2 -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module humanreadable >= 0.3} @@ -58,10 +60,10 @@ pingparsing is a CLI-tool/Python-library for parsing ping command output. sed -i -e '/^#!\//, 1d' pingparsing/__main__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pingparsing %python_expand rm -rf %{buildroot}%{$python_sitelib}/examples %python_expand %fdupes %{buildroot}%{$python_sitelib}