Initial package
This commit is contained in:
parent
b458c4a10e
commit
825bb4efe7
4 changed files with 71 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/xtensor-python-0.23.1.tar.gz
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# xtensor-python
|
||||
|
||||
The xtensor-python package
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (xtensor-python-0.23.1.tar.gz) = 73e1462b0bd1212c2d935927924536ab161def404d622be485a87f5ffcd8356484f6a3d3b520cdf7d3b9f92d9da3fc9a58515cbdf7ac34b9a26e4787a81e2e24
|
||||
69
xtensor-python.spec
Normal file
69
xtensor-python.spec
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
Name: xtensor-python
|
||||
Version: 0.23.1
|
||||
Release: 0%{?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 .
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
%check
|
||||
%make_build xtest
|
||||
|
||||
%files devel
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{_includedir}/%{name}/
|
||||
%{_libdir}/cmake/%{name}/
|
||||
|
||||
%changelog
|
||||
* Tue Sep 3 2019 sguelton@redhat.com - 0.23.1-0
|
||||
- Initial package
|
||||
Loading…
Add table
Add a link
Reference in a new issue