Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
03e2fd3202
commit
9d718bf66e
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue