diff --git a/python-strictyaml.spec b/python-strictyaml.spec index f9c0c0b..e7f3f6c 100644 --- a/python-strictyaml.spec +++ b/python-strictyaml.spec @@ -17,7 +17,7 @@ Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) +BuildRequires: pyproject-rpm-macros # We do not attempt to build the documentation, since it requires an # idiosyncratic build system (see https://hitchdev.com/) that is hopelessly @@ -43,6 +43,10 @@ Priorities: %description %{common_description} +%generate_buildrequires +%pyproject_buildrequires + + %package -n python3-%{srcname} Summary: %{summary} @@ -54,29 +58,28 @@ Summary: %{summary} %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{srcname} # There are no tests. (If there were, it would be as hard to run them as it is # to build the documentation.) -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc CHANGELOG.md %doc README.md -%{python3_sitelib}/%{srcname} -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info - %changelog * Mon Mar 29 2021 Benjamin A. Beasley - 1.4.0-1 - Update to 1.4.0 +- Start using pyproject-rpm-macros * Wed Jan 27 2021 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild