diff --git a/python-termcolor.spec b/python-termcolor.spec index 53d652b..ef71ddd 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -25,7 +25,11 @@ License: MIT URL: https://pypi.python.org/pypi/termcolor Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,15 +44,15 @@ Available attributes: bold, dark, underline, blink, reverse, concealed. %setup -q -n termcolor-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license COPYING.txt -%doc CHANGES.rst README.rst +%doc CHANGES.md README.md %{python_sitelib}/* %changelog