summaryrefslogtreecommitdiff
path: root/xtl.spec
blob: 88f36b535a11434973832adda7987595d902dac0 (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
Name:           xtl
Version:        0.7.5
Release:        1
Summary:        QuantStack tools library - xtensor dependency
License:        BSD-3-Clause
URL:            https://github.com/xtensor-stack/xtl
%global github  https://github.com/xtensor-stack/xtl
Source:         %{github}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++

# Header-only library - no debug package needed
%global debug_package %{nil}

%description
The xtl library is a set of general purpose tools for C++ used by
the xtensor stack. It includes:
- Optional and nullable types
- Basic fixed string
- Complex numbers utilities
- JSON and base64 support

%package devel
Summary:        %{summary}
Provides:       %{name} = %{version}-%{release}
Provides:       %{name}-static = %{version}-%{release}
BuildArch:      noarch

%description devel
Development files for xtl library. This is a header-only library.

%prep
%autosetup -n %{name}-%{version}

%build
%cmake -DBUILD_TESTS=OFF

%install
%make_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.7.5-1
- Initial package for openEuler 24.03
- Based on skill_compile_third_party_libs.md compilation experience