summaryrefslogtreecommitdiff
path: root/xtensor.spec
diff options
context:
space:
mode:
Diffstat (limited to 'xtensor.spec')
-rw-r--r--xtensor.spec60
1 files changed, 60 insertions, 0 deletions
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