From 8f752060af5314e80e9ed4dd0cbdb45d29fac1c1 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 30 Apr 2022 21:43:07 -0400 Subject: [PATCH] Adjust for pyproject-rpm-macros >= 1.1.0 --- python-hatch-vcs.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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