From 052c239cab780c2df7b9d5ad246450d353f1d3b5 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 29 Sep 2020 13:14:46 +0200 Subject: [PATCH] Modify clikit to not use %pyproject_save_files and add check there --- tests/python-clikit.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/python-clikit.spec b/tests/python-clikit.spec index bf90f90..341ec86 100644 --- a/tests/python-clikit.spec +++ b/tests/python-clikit.spec @@ -36,9 +36,16 @@ Summary: %{summary} %install %pyproject_install -%pyproject_save_files clikit + +%check +# Internal check that the RECORD and REQUESTED files are +# always removed in %%pyproject_wheel +test ! $(find %{buildroot}%{python3_sitelib}/ | grep -E "*.dist-info/RECORD$") +test ! $(find %{buildroot}%{python3_sitelib}/ | grep -E "*.dist-info/REQUESTED$") -%files -n python3-%{pypi_name} -f %{pyproject_files} +%files -n python3-%{pypi_name} %doc README.md %license LICENSE +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/