74 lines
1.7 KiB
RPMSpec
74 lines
1.7 KiB
RPMSpec
%undefine __cmake_in_source_build
|
|
|
|
Name: xtensor-python
|
|
Version: 0.29.0
|
|
Release: %autorelease
|
|
Summary: Python bindings for xtensor
|
|
License: BSD-3-Clause
|
|
URL: https://xtensor-python.readthedocs.io/
|
|
|
|
%global github https://github.com/QuantStack/xtensor-python
|
|
Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
Patch0: %{github}/pull/331.diff
|
|
|
|
# because xtensor does so for armv7hl, ppc64le and s390x
|
|
ExcludeArch: armv7hl ppc64le s390x
|
|
|
|
BuildRequires: make
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: gtest-devel
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: pybind11-devel
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: xtensor-devel
|
|
BuildRequires: python3-numpy
|
|
|
|
|
|
# there is no actual arched content - this is a header only library
|
|
%global debug_package %{nil}
|
|
|
|
%global _description %{expand:
|
|
xtensor-python enables in-place use of Numpy arrays in C++ with all the
|
|
benefits from xtensor:
|
|
- C++ universal function and broadcasting.
|
|
- STL-compliant APIs.
|
|
- A broad coverage of NumPy APIs.}
|
|
|
|
|
|
%description %_description
|
|
|
|
%package devel
|
|
Summary: %{summary}
|
|
Provides: %{name} = %{version}-%{release}
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
Requires: pybind11-devel
|
|
Requires: python3-devel
|
|
Requires: xtensor-devel
|
|
Requires: python3-numpy
|
|
|
|
%description devel %_description
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%cmake -DBUILD_TESTS=ON
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%cmake_build --target xtest
|
|
|
|
%files devel
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_includedir}/%{name}/
|
|
%{_datadir}/cmake/%{name}/
|
|
%{_datadir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|
|
%autochangelog
|