summaryrefslogtreecommitdiffstats
path: root/redhat/applications/utilities/mathemagics/mathemagics.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/utilities/mathemagics/mathemagics.spec')
-rw-r--r--redhat/applications/utilities/mathemagics/mathemagics.spec2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/applications/utilities/mathemagics/mathemagics.spec b/redhat/applications/utilities/mathemagics/mathemagics.spec
index 3bb95745c..be04a512f 100644
--- a/redhat/applications/utilities/mathemagics/mathemagics.spec
+++ b/redhat/applications/utilities/mathemagics/mathemagics.spec
@@ -78,7 +78,7 @@ Mathemagics is a RPN Calculator.
%build
-if ! rpm -E %%cmake|grep -q "cd build"; then
+if ! rpm -E %%cmake|grep -e 'cd build\|cd ${CMAKE_BUILD_DIR:-build}'; then
%__mkdir_p build
cd build
fi