causes more issues for distributions with split packaging than it solves
and even cmake's own comment is not sure whether it's good idea:
https://gitlab.kitware.com/cmake/cmake/-/blob/
164a156c7c26aaf4f30e73ae0cdb6d2e8a10e0a4/Source/cmExportFileGenerator.cxx#L1185-1192
Patch2: %{name}-jni.patch
Patch3: %{name}-findruby.patch
Patch4: %{name}-findruby2.patch
+Patch5: disable-completness-check.patch
URL: https://cmake.org/
# system zlib,bzip2,xz,zstd used only when without system libarchive
%if %{with gui}
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \
Modules/Compiler/XL-Fortran/cpp
--- /dev/null
+--- cmake-3.24.1/Source/cmExportInstallFileGenerator.cxx.orig 2022-08-17 18:54:57.000000000 +0200
++++ cmake-3.24.1/Source/cmExportInstallFileGenerator.cxx 2022-09-27 11:07:37.195039337 +0200
+@@ -163,7 +163,7 @@ bool cmExportInstallFileGenerator::Gener
+ this->LoadConfigFiles(os);
+
+ this->CleanupTemporaryVariables(os);
+- this->GenerateImportedFileCheckLoop(os);
++ //this->GenerateImportedFileCheckLoop(os);
+
+ bool result = true;
+ // Generate an import file for each configuration.