diff --git a/python-cmdln.changes b/python-cmdln.changes index bba4c24..c78854c 100644 --- a/python-cmdln.changes +++ b/python-cmdln.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 09:36:40 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Oct 23 14:44:10 UTC 2020 - Matej Cepl diff --git a/python-cmdln.spec b/python-cmdln.spec index 5ba5889..b29bede 100644 --- a/python-cmdln.spec +++ b/python-cmdln.spec @@ -1,7 +1,7 @@ # # spec file for package python-cmdln # -# Copyright (c) 2020 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cmdln Version: 2.0.0 Release: 0 @@ -26,7 +25,9 @@ Group: Development/Libraries/Python URL: https://github.com/trentm/cmdln Source: https://files.pythonhosted.org/packages/source/c/cmdln/cmdln-%{version}.zip BuildRequires: %{python_module base} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros BuildRequires: tcl BuildRequires: unzip @@ -50,15 +51,16 @@ sed -i '/^#!/d' lib/cmdln.py chmod -x examples/* %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %check %files %{python_files} -%doc LICENSE.txt docs/ examples/ +%license LICENSE.txt +%doc docs/ examples/ %{python_sitelib}/cmdln* %pycache_only %{python_sitelib}/__pycache__/*