blob: c211ec1642b0b3e51fe06f957ae75270eb06b61b (
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
|
%global debug_package %{nil}
Name: libexpected-dev
Version: 1.3.1
Release: 1%{?dist}
Summary: C++11/14/17 std::expected with functional-style extensions
License: CC0-1.0
URL: https://github.com/TartanLlama/expected
Source0: https://github.com/TartanLlama/expected/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Group: Development/Libraries
Packager: openEuler Builder <builder@openeuler.org>
BuildArch: noarch
BuildRequires: cmake
BuildRequires: gcc-c++
%description
tl::expected is a single-header implementation of std::expected with
functional-style extensions. It is proposed as the preferred way to represent
an object which will either have an expected value, or an unexpected value
giving information about why something failed. This implementation provides
utilities such as map, map_error, and_then, and or_else to make coding with
expected cleaner.
%prep
%autosetup -p1
%build
mkdir -p build && cd build && %cmake .. -DBUILD_TESTING=OFF -DEXPECTED_BUILD_TESTS=OFF && %make_build
%install
cd build && DESTDIR=%{buildroot} cmake --install .
%files
%license COPYING
%doc README.md
%{_includedir}/tl/
%{_datadir}/cmake/tl-expected/
%changelog
* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 1.3.1-1
- Initial package
|