blob: 27460a5e1d0051226c6d94aba625d2cf253f1363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
Name: xtensor
Version: 0.24.0
Release: 1
Summary: Multi-dimensional array library for C++
License: BSD-3-Clause
URL: https://github.com/xtensor-stack/xtensor
%global github https://github.com/xtensor-stack/xtensor
Source: %{github}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: xtl-devel >= 0.7.0
# Header-only library - no debug package needed
%global debug_package %{nil}
%description
xtensor is a C++ library meant for numerical analysis with
multi-dimensional array expressions.
xtensor provides:
- An extensible expression system enabling lazy broadcasting.
- An API following the idioms of the C++ standard library.
- Tools to manipulate array expressions and build upon xtensor.
%package devel
Summary: %{summary}
Provides: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
BuildArch: noarch
Requires: xtl-devel >= 0.7.0
%description devel
Development files for xtensor library. This is a header-only library.
%prep
%autosetup -n %{name}-%{version}
%build
%cmake -DBUILD_TESTS=OFF \
-DBUILD_BENCHMARK=OFF \
-DXTENSOR_USE_XSIMD=OFF \
-DXTENSOR_USE_TBB=OFF \
-DXTENSOR_USE_OPENMP=OFF
%install
%cmake_install
%files devel
%doc README.md
%license LICENSE
%{_includedir}/%{name}/
%{_datadir}/cmake/%{name}/
%{_datadir}/pkgconfig/%{name}.pc
%changelog
* Tue Mar 25 2025 Claude Code <noreply@anthropic.com> - 0.24.0-1
- Initial package for openEuler 24.03
- Based on skill_compile_third_party_libs.md compilation experience
- Requires xtl >= 0.7.0
|