From 9d718bf66e2a2a444f9a46dd002a2f09119f1ada Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Sun, 5 Jul 2020 20:26:12 +0200 Subject: [PATCH] Improve compatibility with new CMake macro Signed-off-by: Igor Raits --- xtensor-python.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xtensor-python.spec b/xtensor-python.spec index 356a42a..ad61976 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -1,3 +1,5 @@ +%undefine __cmake_in_source_build + Name: xtensor-python Version: 0.24.1 Release: 1%{?dist} @@ -49,14 +51,14 @@ Requires: python3-numpy %autosetup -p1 %build -%cmake -DBUILD_TESTS=ON . -%make_build +%cmake -DBUILD_TESTS=ON +%cmake_build %install -%make_install +%cmake_install %check -%make_build xtest +%make_build -C %{_vpath_builddir} xtest %files devel %doc README.md