diff --git a/python-hatch-vcs.spec b/python-hatch-vcs.spec index 36d7b02..ca208d7 100644 --- a/python-hatch-vcs.spec +++ b/python-hatch-vcs.spec @@ -19,6 +19,8 @@ Source0: %{pypi_source hatch_vcs} BuildArch: noarch BuildRequires: python3-devel +# RHBZ#1985340 +BuildRequires: pyproject-rpm-macros >= 1.1.0 # For script in %%generate_buildrequires: BuildRequires: python3dist(tomli) @@ -87,10 +89,7 @@ EOF %files -n python3-hatch-vcs -f %{pyproject_files} -# The license file is installed in an unusual subdirectory. See -# https://bugzilla.redhat.com/show_bug.cgi?id=1985340. -%dir %{python3_sitelib}/hatch_vcs-%{version}.dist-info/license_files -%license %{python3_sitelib}/hatch_vcs-%{version}.dist-info/license_files/LICENSE.txt +%license LICENSE.txt %doc HISTORY.md %doc README.md