SHA256
3
0
forked from pool/cmake

Accepting request 986334 from home:cgiboudeaux:branches:devel:tools:building

- Fix the %%cmake macro which tried to run sed on 'CMakeLists.txt'
  without making sure it's not a folder.

Found while fixing the liboqs package which has a folder named CMakeLists.txt

OBS-URL: https://build.opensuse.org/request/show/986334
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=494
This commit is contained in:
Simon Lees 2022-07-03 12:07:34 +00:00 committed by Git OBS Bridge
parent 4bad45639d
commit e88273a269
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 2 07:32:54 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- 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 <dmueller@suse.com>

View File

@ -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 \