diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-03-26 13:52:58 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-03-26 13:52:58 +0000 |
| commit | 05053820d0195fcfea6bff10dfc8e9b395276da6 (patch) | |
| tree | 72fcfcbd8567bdef6e175c5199b027d7f5106a99 | |
| parent | 1bb13054474f0ffc427adf84ff298e413d6f539a (diff) | |
automatic import of xtensor
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | sources | 1 | ||||
| -rw-r--r-- | xtensor.spec | 60 |
3 files changed, 62 insertions, 0 deletions
@@ -0,0 +1 @@ +/xtensor-0.24.0.tar.gz @@ -0,0 +1 @@ +5cdc9abb3e480c165e0b5e09fcee4df8 xtensor-0.24.0.tar.gz diff --git a/xtensor.spec b/xtensor.spec new file mode 100644 index 0000000..27460a5 --- /dev/null +++ b/xtensor.spec @@ -0,0 +1,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 |
