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:
@@ -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 \\\
|
||||
|
Reference in New Issue
Block a user