Blob Blame History Raw
%undefine __cmake_in_source_build

Name:           xtensor-python
Version:        0.24.1
Release:        3%{?dist}
Summary:        Python bindings for xtensor
License:        BSD

%global github
Source0:        %{github}/archive/%{version}/%{name}-%{version}.tar.gz

# 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:  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

%autosetup -p1



%make_build -C %{_vpath_builddir} xtest

%files devel
%license LICENSE

* Thu Jan 28 2021 Fedora Release Engineering <> - 0.24.1-3
- Rebuilt for

* Wed Jul 29 2020 Fedora Release Engineering <> - 0.24.1-2
- Rebuilt for

* Thu Jan 30 2020 - 0.24.1-0
- Upstream release

* Tue Sep 3 2019 - 0.23.1-0
- Initial package