diff --git a/python-docopt.changes b/python-docopt.changes index 87097a7..f731420 100644 --- a/python-docopt.changes +++ b/python-docopt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 12:22:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 30 15:11:31 UTC 2024 - Antonio Larrosa diff --git a/python-docopt.spec b/python-docopt.spec index 4ada517..620df66 100644 --- a/python-docopt.spec +++ b/python-docopt.spec @@ -1,7 +1,7 @@ # # spec file for package python-docopt # -# 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: http://docopt.org Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -44,16 +46,17 @@ and instead can write only the help message. sed -i "s|#! %{_bindir}/env python||" examples/git/git.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE-MIT %doc README.rst %doc examples/ -%{python_sitelib}/* +%{python_sitelib}/docopt +%{python_sitelib}/docopt-%{version}*-info %changelog