%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 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 - 1.3.1-1 - Initial package