SHA256
3
0
forked from pool/cmake

Accepting request 1080965 from home:gmbr3:Active

- macros: substitute exactly once otherwise some non default values
  won't work

OBS-URL: https://build.opensuse.org/request/show/1080965
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=527
This commit is contained in:
Dirk Mueller 2023-04-21 12:32:35 +00:00 committed by Git OBS Bridge
parent 04ff4295d9
commit bbc9c7d7f1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 20 19:52:52 UTC 2023 - Callum Farmer <gmbr3@opensuse.org>
- macros: substitute exactly once otherwise some non default values
won't work
-------------------------------------------------------------------
Wed Apr 5 16:34:32 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -7,8 +7,8 @@
%__builder %__make
%__sourcedir .
%__cmake_make_prefix_relative() %{lua:print((string.gsub((rpm.expand("%1")), ((rpm.expand("%{_prefix}")) .. "/"), "")))}
%__cmake_make_root_relative() %{lua:print((string.gsub((rpm.expand("%1")), "/", "")))}
%__cmake_make_prefix_relative() %{lua:print((string.gsub((rpm.expand("%1")), ((rpm.expand("%{_prefix}")) .. "/"), "", 1)))}
%__cmake_make_root_relative() %{lua:print((string.gsub((rpm.expand("%1")), "/", "", 1)))}
%cmake \
find %__sourcedir -type f -name CMakeLists.txt \\\