xtensor-python/xtensor-python.spec
Igor Raits 9d718bf66e
Improve compatibility with new CMake macro
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-07-05 20:26:12 +02:00

74 lines
1.7 KiB
RPMSpec

%undefine __cmake_in_source_build
Name: xtensor-python
Version: 0.24.1
Release: 1%{?dist}
Summary: Python bindings for xtensor
License: BSD
URL: https://xtensor-python.readthedocs.io/
%global github https://github.com/QuantStack/xtensor-python
Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz
# because xtensor does so for armv7hl, ppc64le and s390x
ExcludeArch: armv7hl ppc64le s390x
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
%prep
%autosetup -p1
%build
%cmake -DBUILD_TESTS=ON
%cmake_build
%install
%cmake_install
%check
%make_build -C %{_vpath_builddir} xtest
%files devel
%doc README.md
%license LICENSE
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}/
%changelog
* Thu Jan 30 2020 sguelton@redhat.com - 0.24.1-0
- Upstream release
* Tue Sep 3 2019 sguelton@redhat.com - 0.23.1-0
- Initial package