diff --git a/tests/double-install.spec b/tests/double-install.spec index a065774..3481e16 100644 --- a/tests/double-install.spec +++ b/tests/double-install.spec @@ -46,13 +46,8 @@ cd .. %check # Internal check for the value of %%{pyproject_build_lib} -%if 0%{?rhel} == 9 -for dir in . markupsafe-%{markupsafe_version} tldr-%{tldr_version}; do - (cd $dir && test "%{pyproject_build_lib}" == "$(echo %{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version}):$(echo %{_pyproject_builddir}/pip-req-build-*/build/lib)") -done -%else cd markupsafe-%{markupsafe_version} -%if 0%{?fedora} == 36 +%if 0%{?rhel} == 9 test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/markupsafe-%{markupsafe_version}/build/lib.%{python3_platform}-%{python3_version}" %else test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/markupsafe-%{markupsafe_version}/build/lib.%{python3_platform}-cpython-%{python3_version_nodots}" @@ -60,7 +55,6 @@ test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/markupsafe-%{marku cd ../tldr-%{tldr_version} test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/tldr-%{tldr_version}/build/lib" cd .. -%endif %files diff --git a/tests/python-ldap.spec b/tests/python-ldap.spec index d36029b..c55ef14 100644 --- a/tests/python-ldap.spec +++ b/tests/python-ldap.spec @@ -95,8 +95,6 @@ grep -E '/site-packages/__pycache__/$' %{pyproject_files} && exit 1 || true # Internal check for the value of %%{pyproject_build_lib} in an archful package %if 0%{?rhel} == 9 -test "%{pyproject_build_lib}" == "$(echo %{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version})" -%elif 0%{?fedora} == 36 test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/build/lib.%{python3_platform}-%{python3_version}" %else test "%{pyproject_build_lib}" == "%{_builddir}/%{buildsubdir}/build/lib.%{python3_platform}-cpython-%{python3_version_nodots}" diff --git a/tests/tldr.spec b/tests/tldr.spec index 7152642..dfd190a 100644 --- a/tests/tldr.spec +++ b/tests/tldr.spec @@ -49,11 +49,7 @@ head -n1 %{buildroot}%{_bindir}/%{name}.py | grep -E '#!\s*%{python3}\s+%{py3_sh test ! -e %{buildroot}%{python3_sitelib}/*.dist-info/direct_url.json # Internal check for the value of %%{pyproject_build_lib} in a noarch package -%if 0%{?rhel} == 9 -test "%{pyproject_build_lib}" == "$(echo %{_pyproject_builddir}/pip-req-build-*/build/lib)" -%else test "%{pyproject_build_lib}" == "${PWD}/build/lib" -%endif %if 0%{?rhel} != 9 # Internal check for custom prefix