613bcdc
%undefine __cmake_in_source_build
613bcdc
b5c8075
Name:           xtensor
673377a
Version:        0.21.2
1c9e54a
Release:        2%{?dist}
b5c8075
Summary:        C++ tensors with broadcasting and lazy computing
b5c8075
License:        BSD
b5c8075
URL:            http://xtensor.readthedocs.io/
b5c8075
b5c8075
%global github  https://github.com/QuantStack/xtensor
b5c8075
Source0:        %{github}/archive/%{version}/%{name}-%{version}.tar.gz
b5c8075
b5c8075
# because xtl does so for armv7hl && ppc64le
b5c8075
# because tests fail for s390x
b5c8075
ExcludeArch:    armv7hl ppc64le s390x
b5c8075
b5c8075
BuildRequires:  cmake
b5c8075
BuildRequires:  gcc-c++
b5c8075
BuildRequires:  gtest-devel
b5c8075
BuildRequires:  xtl-devel
b5c8075
BuildRequires:  xsimd-devel
b5c8075
b5c8075
b5c8075
# there is no actual arched content - this is a header only library
b5c8075
%global debug_package %{nil}
b5c8075
b5c8075
%global _description %{expand:
b5c8075
xtensor is a C++ library meant for numerical analysis with multi-dimensional
b5c8075
array expressions.
b5c8075
b5c8075
xtensor provides:
b5c8075
- an extensible expression system enabling lazy broadcasting.
b5c8075
- an API following the idioms of the C++ standard library.
b5c8075
- tools to manipulate array expressions and build upon xtensor.}
b5c8075
b5c8075
b5c8075
%description %_description
b5c8075
b5c8075
%package devel
b5c8075
Summary:        %{summary}
b5c8075
Provides:       %{name} = %{version}-%{release}
b5c8075
Provides:       %{name}-static = %{version}-%{release}
b5c8075
Requires:       xtl-devel
b5c8075
Requires:       xsimd-devel
b5c8075
b5c8075
%description devel %_description
b5c8075
b5c8075
b5c8075
%prep
b5c8075
%autosetup -p1
b5c8075
b5c8075
%build
613bcdc
%cmake -DBUILD_TESTS=ON
613bcdc
%cmake_build
b5c8075
b5c8075
%install
613bcdc
%cmake_install
b5c8075
b5c8075
%check
613bcdc
%make_build -C %{_vpath_builddir} xtest
b5c8075
b5c8075
%files devel
b5c8075
%doc README.md
b5c8075
%license LICENSE
b5c8075
%{_includedir}/%{name}/
b5c8075
%{_libdir}/cmake/%{name}/
b5c8075
%{_libdir}/pkgconfig/%{name}.pc
b5c8075
b5c8075
%changelog
1c9e54a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.2-2
1c9e54a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c9e54a
673377a
* Thu Jan 16 2020 sguelton@redhat.com - 0.21.2-1
673377a
- Upstream version bump
673377a
b5c8075
* Tue Sep 3 2019 sguelton@redhat.com - 0.20.8-1
b5c8075
- Initial package