Improve compatibility with new CMake macro

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
ignatenkobrain 2020-07-05 20:26:12 +02:00
commit 9d718bf66e
No known key found for this signature in database
GPG key ID: 115D5AB89C5C1E1E

View file

@ -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