Accepting request 239256 from home:sleep_walker:branches:devel:tools:building

- reduce number of sed calls in %cmake RPM macro

OBS-URL: https://build.opensuse.org/request/show/239256
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=161
This commit is contained in:
Tomáš Chvátal 2014-07-02 08:57:25 +00:00 committed by Git OBS Bridge
parent 1e4fbe2b0d
commit 19a8bafd89
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 2 08:25:13 UTC 2014 - sleep_walker@suse.cz
- reduce number of sed calls in %cmake RPM macro
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 1 10:52:47 UTC 2014 - dvaleev@suse.com Tue Jul 1 10:52:47 UTC 2014 - dvaleev@suse.com

View File

@ -9,10 +9,7 @@
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \ FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
find . -name CMakeLists.txt \\\ find . -name CMakeLists.txt \\\
-exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_BUILD_TYPE.*)/{s/^/#IGNORE /g}' {} + \\\ -exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\\\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\\\)/{s/^/#IGNORE /}' {} + \
-exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_COLOR_MAKEFILE.*)/{s/^/#IGNORE /g}' {} + \\\
-exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_INSTALL_PREFIX.*)/{s/^/#IGNORE /g}' {} + \\\
-exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_VERBOSE_MAKEFILE.*)/{s/^/#IGNORE /g}' {} + \
mkdir -p build \ mkdir -p build \
cd build \ cd build \
%define enable_debug 1 \ %define enable_debug 1 \