diff --git a/tests/python-entrypoints.spec b/tests/python-entrypoints.spec index bc0a024..aa6d2d9 100644 --- a/tests/python-entrypoints.spec +++ b/tests/python-entrypoints.spec @@ -42,8 +42,8 @@ Summary: %{summary} %check # Internal check: Top level __pycache__ is never owned -grep -vE '/__pycache__$' %{pyproject_files} -grep -vE '/__pycache__/$' %{pyproject_files} +! grep -E '/__pycache__$' %{pyproject_files} +! grep -E '/__pycache__/$' %{pyproject_files} grep -F '/__pycache__/' %{pyproject_files} diff --git a/tests/python-isort.spec b/tests/python-isort.spec index e160b63..684a2fe 100644 --- a/tests/python-isort.spec +++ b/tests/python-isort.spec @@ -47,7 +47,7 @@ test -d %{buildroot}%{python3_sitelib}/%{modname}/ test -d %{buildroot}%{python3_sitelib}/%{modname}-%{version}.dist-info/ # Internal check that executables are not present when +auto was not used with %%pyproject_save_files -grep -vF %{buildroot}%{_bindir}/%{modname} %{pyproject_files} +! grep -F %{buildroot}%{_bindir}/%{modname} %{pyproject_files} %files -n python3-%{modname} -f %{pyproject_files} diff --git a/tests/python-ldap.spec b/tests/python-ldap.spec index 1aec33e..aafe0e2 100644 --- a/tests/python-ldap.spec +++ b/tests/python-ldap.spec @@ -64,14 +64,14 @@ test -f %{buildroot}%{python3_sitearch}/_ldap.cpython-*.so # Internal check: Unmatched modules are not supposed to be listed in %%{pyproject_files} # We'll list them explicitly -grep -vF %{python3_sitearch}/ldif.py %{pyproject_files} -grep -vF %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.pyc %{pyproject_files} -grep -vF %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.opt-1.pyc %{pyproject_files} -grep -vF %{python3_sitearch}/slapdtest/ %{pyproject_files} +! grep -F %{python3_sitearch}/ldif.py %{pyproject_files} +! grep -F %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.pyc %{pyproject_files} +! grep -F %{python3_sitearch}/__pycache__/ldif.cpython-%{python3_version_nodots}.opt-1.pyc %{pyproject_files} +! grep -F %{python3_sitearch}/slapdtest %{pyproject_files} # Internal check: Top level __pycache__ is never owned -grep -vE '/__pycache__$' %{pyproject_files} -grep -vE '/__pycache__/$' %{pyproject_files} +! grep -E '/__pycache__$' %{pyproject_files} +! grep -E '/__pycache__/$' %{pyproject_files} %files -n python3-ldap -f %{pyproject_files}