diff --git a/cmake.changes b/cmake.changes index b3fc3b6..56b1e23 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jul 2 07:32:54 UTC 2022 - Christophe Giboudeaux + +- Fix the %%cmake macro which tried to run sed on 'CMakeLists.txt' + without making sure it's not a folder. + ------------------------------------------------------------------- Sun Jun 5 00:03:22 UTC 2022 - Dirk Müller diff --git a/cmake.macros b/cmake.macros index 42ef8f5..3bf4da2 100644 --- a/cmake.macros +++ b/cmake.macros @@ -8,7 +8,7 @@ %__sourcedir . %cmake \ - find %__sourcedir -name CMakeLists.txt \\\ + find %__sourcedir -type f -name CMakeLists.txt \\\ -exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \ mkdir -p %__builddir \ cd %__builddir \