From 05053820d0195fcfea6bff10dfc8e9b395276da6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 26 Mar 2026 13:52:58 +0000 Subject: automatic import of xtensor --- xtensor.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 xtensor.spec (limited to 'xtensor.spec') 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 - 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 -- cgit v1.2.3