Name: expected Version: 1.0.0 Release: 7%{?dist} License: CC0 Summary: C++11/14/17 std::expected with functional-style extensions URL: https://github.com/TartanLlama/%{name} Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch # Backported upstream patch with cmake fixes. Patch100: %{name}-cmake.patch BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc %description Header-only %{summary}. %package devel Summary: Development files for %{name} Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} %description devel Header-only %{summary}. std::expected is proposed as the preferred way to represent objec which will either have an expected value, or an unexpected value giving information about why something failed. Unfortunately, chaining together many computations which may fail can be verbose, as error-checking code will be mixed in with the actual programming logic. This implementation provides a number of utilities to make coding with expected cleaner. %prep %autosetup -p1 %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DEXPECTED_BUILD_TESTS=OFF \ -DEXPECTED_BUILD_PACKAGE=OFF %cmake_build %install %cmake_install %files devel %doc README.md %license COPYING %{_includedir}/tl %{_datadir}/cmake/tl-%{name} %changelog * Thu Jul 21 2022 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Jan 06 2020 Vitaly Zaitsev - 1.0.0-1 - Initial SPEC release.