diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index d56ffdd..4e7d436 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -44,14 +44,16 @@ Summary: %{summary} %build -%py3_build +%pyproject_wheel # Remove (incorrect) Python shebang from package's __main__.py file. sed -i '\|/usr/bin/env|d' build/lib/pydocstyle/__main__.py %install -%py3_install +%pyproject_install + +%pyproject_save_files %{pypi_name} %check @@ -70,12 +72,10 @@ sed -E -i 's|"python(2\|3)?( -m pydocstyle)|"%{__python3}\2|' \ %pytest -v src/tests -%files -n python3-%{pypi_name} -%license LICENSE-MIT +%files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %{_bindir}/pydocstyle -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + %changelog * Fri May 19 2023 Tadej Janež - 6.3.0-1 @@ -83,6 +83,7 @@ sed -E -i 's|"python(2\|3)?( -m pydocstyle)|"%{__python3}\2|' \ - Use %%{url} in %%{Source0} to avoid redundance - Introduce %%_description to avoid %%description duplication - Use the new automatic build-time dependency generator +- Use new %%{pyproject_*} macros * Fri Jan 20 2023 Fedora Release Engineering - 6.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild