From 595fc3b049e672bab8014e6cbc84cb268cdcfa82 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 29 Sep 2020 13:05:38 +0200 Subject: [PATCH] Add check for RECORD and REQUESTED files --- tests/python-zope-event.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/python-zope-event.spec b/tests/python-zope-event.spec index 5a826d7..99cb9ff 100644 --- a/tests/python-zope-event.spec +++ b/tests/python-zope-event.spec @@ -34,6 +34,12 @@ Summary: %{summary} %pyproject_install %pyproject_save_files zope +auto +%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-zope-event -f %{pyproject_files} %doc README.rst %license LICENSE.txt