Package expected: Specfile

Download expected.spec
Name: expected
Version: 1.0.0
Release: alt1

Summary: C++11/14/17 std::expected with functional-style extensions

License: CC0
Group: Development/C++
BuildArch: noarch

# Source-url:
Source: %name-%version.tar

# Backported upstream patch with cmake fixes.
Patch100: %name-cmake.patch

BuildRequires: ninja-build rpm-macros-ninja-build
BuildRequires: gcc-c++
BuildRequires: cmake

Header-only C++11/14/17 std::expected with functional-style extensions.

%package -n lib%name-devel
Group: Development/C++
Summary: Development files for %name
#Provides: %name-static = %{?epoch:%epoch:}%version-%release

%description -n lib%name-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.

%patch100 -p1

%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
%ninja_build -C BUILD

%ninja_install -C BUILD

%files -n lib%name-devel

* Sat Feb 08 2020 Vitaly Lipatov <> 1.0.0-alt1
- initial build for ALT Sisyphus

* Tue Jan 28 2020 Fedora Release Engineering <> - 1.0.0-2
- Rebuilt for

* Mon Jan 06 2020 Vitaly Zaitsev <> - 1.0.0-1
- Initial SPEC release.
Back to Top