+++ /dev/null
-diff -urNp -x '*.orig' cmake-3.17.2.org/Auxiliary/CMakeLists.txt cmake-3.17.2/Auxiliary/CMakeLists.txt
---- cmake-3.17.2.org/Auxiliary/CMakeLists.txt 2020-04-28 16:23:06.000000000 +0200
-+++ cmake-3.17.2/Auxiliary/CMakeLists.txt 2021-04-12 22:18:36.892988114 +0200
-@@ -1,4 +1,4 @@
- install(DIRECTORY vim/indent vim/syntax DESTINATION ${CMAKE_DATA_DIR}/editors/vim)
--install(FILES cmake-mode.el DESTINATION ${CMAKE_DATA_DIR}/editors/emacs)
-+install(FILES cmake-mode.el DESTINATION ${CMAKE_INSTALL_DATADIR}/emacs/site-lisp)
- install(FILES cmake.m4 DESTINATION ${CMAKE_XDGDATA_DIR}/aclocal)
- add_subdirectory (bash-completion)
-diff -urNp -x '*.orig' cmake-3.17.2.org/Auxiliary/bash-completion/CMakeLists.txt cmake-3.17.2/Auxiliary/bash-completion/CMakeLists.txt
---- cmake-3.17.2.org/Auxiliary/bash-completion/CMakeLists.txt 2020-04-28 16:23:06.000000000 +0200
-+++ cmake-3.17.2/Auxiliary/bash-completion/CMakeLists.txt 2021-04-12 22:18:36.892988114 +0200
-@@ -5,4 +5,4 @@
- # add symlinks to the files in appropriate places
- # /etc/bash_completion.d/
- # DATADIR/completions (may be /usr/share/<package>/completions
--install(FILES cmake cpack ctest DESTINATION ${CMAKE_DATA_DIR}/completions)
-+install(FILES cmake cpack ctest DESTINATION ${CMAKE_INSTALL_DATADIR}/bash-completion/completions)
# Source0-md5: f96b91224aa14b09565325b51d60af43
Patch0: %{name}-lib64.patch
Patch1: %{name}-libx32.patch
-Patch2: %{name}-helpers.patch
Patch3: %{name}-findruby.patch
Patch4: %{name}-findruby2.patch
URL: https://cmake.org/
%if "%{_lib}" == "libx32"
%patch1 -p1
%endif
-#%patch2 -p1
%patch3 -p1
%patch4 -p1
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \
+ Modules/Compiler/XL-Fortran/cpp
+
cat > "init.cmake" <<EOF
SET (CURSES_INCLUDE_PATH "/usr/include/ncurses" CACHE PATH " " FORCE)
SET (CMAKE_INSTALL_SYSCONFDIR "%{_sysconfdir}" CACHE PATH " " FORCE)
%{_mandir}/man7/cmake-modules.7*
%{_mandir}/man7/cmake-packages.7*
%{_mandir}/man7/cmake-policies.7*
+%{_mandir}/man7/cmake-presets.7*
%{_mandir}/man7/cmake-properties.7*
%{_mandir}/man7/cmake-qt.7*
%{_mandir}/man7/cmake-server.7*
%{_datadir}/cmake/Modules/.NoDartCoverage
%{_datadir}/cmake/Modules/*
%{_datadir}/cmake/Templates
-%{_datadir}/cmake/editors
+#%{_datadir}/cmake/editors
%{_datadir}/cmake/include
%{_aclocaldir}/cmake.m4