From: Jan Rękorajski Date: Thu, 10 Feb 2022 22:48:25 +0000 (+0100) Subject: - uupdaed files, fix shebang X-Git-Tag: auto/th/cmake-3.22.2-1 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=4b26647302ed68ffc37dc54f9a90da6c5d51e2f8;p=packages%2Fcmake.git - uupdaed files, fix shebang --- diff --git a/cmake-helpers.patch b/cmake-helpers.patch deleted file mode 100644 index 904863f..0000000 --- a/cmake-helpers.patch +++ /dev/null @@ -1,18 +0,0 @@ -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//completions --install(FILES cmake cpack ctest DESTINATION ${CMAKE_DATA_DIR}/completions) -+install(FILES cmake cpack ctest DESTINATION ${CMAKE_INSTALL_DATADIR}/bash-completion/completions) diff --git a/cmake.spec b/cmake.spec index 820adf1..ac2eb0c 100644 --- a/cmake.spec +++ b/cmake.spec @@ -25,7 +25,6 @@ Source0: https://cmake.org/files/v3.22/%{name}-%{version}.tar.gz # 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/ @@ -127,10 +126,12 @@ Bashowe dopełnianie parametrów dla cmake'a. %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" <