Group :: Development/C++
RPM: expected
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: expected
Version: 1.1.0
Release: alt1
Summary: C++11/14/17 std::expected with functional-style extensions
License: CC0
Group: Development/C++
Url: https://github.com/TartanLlama/expected
BuildArch: noarch
# Source-url: https://github.com/TartanLlama/expected/archive/v%version.tar.gz
Source: %name-%version.tar
BuildRequires: ninja-build rpm-macros-ninja-build
BuildRequires: gcc-c++
BuildRequires: cmake
%description
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.
%prep
%setup
%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DEXPECTED_BUILD_TESTS=OFF \
-DEXPECTED_BUILD_PACKAGE=OFF \
..
%cmake_build
%install
%cmake_install
%files -n lib%name-devel
%doc README.md
%doc COPYING
%_includedir/tl/
%_datadir/cmake/tl-%name
%changelog
…
Full changelog you can see here
Version: 1.1.0
Release: alt1
Summary: C++11/14/17 std::expected with functional-style extensions
License: CC0
Group: Development/C++
Url: https://github.com/TartanLlama/expected
BuildArch: noarch
# Source-url: https://github.com/TartanLlama/expected/archive/v%version.tar.gz
Source: %name-%version.tar
BuildRequires: ninja-build rpm-macros-ninja-build
BuildRequires: gcc-c++
BuildRequires: cmake
%description
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.
%prep
%setup
%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DEXPECTED_BUILD_TESTS=OFF \
-DEXPECTED_BUILD_PACKAGE=OFF \
..
%cmake_build
%install
%cmake_install
%files -n lib%name-devel
%doc README.md
%doc COPYING
%_includedir/tl/
%_datadir/cmake/tl-%name
%changelog
…
Full changelog you can see here