Disable dwz with ROCm

Work around a problem with running out of memory and thrashing the build machine.
Eanble opencv for Fedora

Signed-off-by: Tom Rix <trix@redhat.com>
This commit is contained in:
Tom Rix 2024-05-02 11:07:50 -04:00
commit f28581bb0c

View file

@ -50,13 +50,22 @@
%bcond_without tensorpipe
# For testing openvs
%if 0%{?fedora}
%bcond_without opencv
%else
%bcond_with opencv
%endif
# For testing cuda
%ifarch x86_64
%bcond_with cuda
%endif
# Disable dwz with rocm because memory can be exhausted
%if %{with rocm}
%define _find_debuginfo_dwz_opts %{nil}
%endif
Name: python-%{pypi_name}
%if %{with gitcommit}
Version: %{pypi_version}^git%{date0}.%{shortcommit0}