diff --git a/python-formats.changes b/python-formats.changes index 07a20a7..61b8102 100644 --- a/python-formats.changes +++ b/python-formats.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 13:07:59 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Jan 25 22:29:10 UTC 2020 - Martin Hauke diff --git a/python-formats.spec b/python-formats.spec index 4505765..7359a64 100644 --- a/python-formats.spec +++ b/python-formats.spec @@ -1,7 +1,7 @@ # # spec file for package python-formats # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2016-2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,7 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-formats Version: 0.1.1 Release: 0 @@ -28,7 +27,9 @@ URL: https://github.com/redodo/formats Source: https://files.pythonhosted.org/packages/source/f/formats/formats-%{version}.tar.gz Source1: https://raw.githubusercontent.com/redodo/formats/master/LICENSE Source2: https://raw.githubusercontent.com/redodo/formats/master/test_formats.py +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -43,14 +44,14 @@ cp %{SOURCE1} . cp %{SOURCE2} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand %python_exec -m unittest discover -v +%python_expand %pyunittest -v %files %{python_files} %license LICENSE