path: root/packaging/cmake.spec
diff options
Diffstat (limited to 'packaging/cmake.spec')
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/cmake.spec b/packaging/cmake.spec
index 13b0c0a0a..70366943e 100644
--- a/packaging/cmake.spec
+++ b/packaging/cmake.spec
@@ -16,6 +16,13 @@ BuildRequires: pkgconfig(zlib)
BuildRequires: procps
BuildRequires: ncurses-devel
BuildRequires: gcc-c++
+# To remove /emul/usr/bin/cmake, it should be installed before cmake
+%ifarch armv7l
+Requires: qemu-accel-x86_64-armv7l
+%ifarch aarch64
+Requires: qemu-accel-x86_64-aarch64
CMake is used to control the software compilation process using simple platform
@@ -62,6 +69,19 @@ fdupes %{buildroot}%{_datadir}/%{name}
+%ifarch armv7l aarch64
+# WORKAROUND before Tizen:Base accepting Cmake 3.9
+if echo `cmake --version` | grep -q "%{version}"
+ echo "The correct version is working"
+ echo "Probably qemu is executing previous version. Remove it."
+ rm -f /emul/usr/bin/cmake
+ rm -f /emul/usr/bin/ccmake
%manifest %{name}.manifest