RPM-build: Temporarily disable SMM backend until LibXS is provided in Fedora repo (#5373)

This commit is contained in:
SY Wang 2026-06-08 23:47:24 +08:00 committed by GitHub
parent 7b1171f5d6
commit cb2e80cfb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
# libxsmm is designed for x86_64 architectures only, see project's README
%bcond libxsmm %[ "%{_arch}" == "x86_64" ]
# %bcond libxs %[ "%{_arch}" == "x86_64" ]
# Disable LTO due to https://bugzilla.redhat.com/show_bug.cgi?id=2243158
%global _lto_cflags %nil
@ -29,9 +29,9 @@ BuildRequires: flexiblas-devel
BuildRequires: cmake(DBCSR)
BuildRequires: cmake(libint2)
BuildRequires: pkgconfig(fftw3)
%if %{with libxsmm}
BuildRequires: pkgconfig(libxsmm)
%endif
# %if %{with libxs}
# BuildRequires: pkgconfig(libxsmm)
# %endif
# cmake(Libxc) technically fails
# https://github.com/cp2k/cp2k/issues/3767
BuildRequires: libxc-devel
@ -143,11 +143,11 @@ cmake_common_args=(
"-DCP2K_USE_LIBINT2:BOOL=ON"
"-DCP2K_USE_LIBXC:BOOL=ON"
"-DCP2K_USE_SPGLIB:BOOL=ON"
%if %{with libxsmm}
"-DCP2K_USE_LIBXSMM:BOOL=ON"
%else
"-DCP2K_USE_LIBXSMM:BOOL=OFF"
%endif
# %if %{with libxs}
# "-DCP2K_USE_LIBXS:BOOL=ON"
# %else
"-DCP2K_USE_LIBXS:BOOL=OFF"
# %endif
)
for mpi in '' mpich openmpi; do
if [ -n "$mpi" ]; then