%global debug_package %{nil} %global forgeurl https://github.com/Microsoft/GSL %global commit e64c97fc2cfc11992098bb38eda932de275e3f4d %forgemeta Name: guidelines-support-library Version: 4.0.0 Release: %autorelease License: MIT URL: %{forgeurl} Summary: Guidelines Support Library Source0: %{forgesource} BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gtest-devel BuildRequires: ninja-build %description Header-only %{summary}. %package devel Summary: Development files for %{name} Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release} BuildArch: noarch %description devel The Guidelines Support Library (GSL) contains functions and types that are suggested for use by the C++ Core Guidelines maintained by the Standard C++ Foundation. This repo contains Microsoft's implementation of GSL. The entire implementation is provided inline in the headers under the gsl directory. The implementation generally assumes a platform that implements C++14 support. While some types have been broken out into their own headers (e.g. gsl/span), it is simplest to just include gsl/gsl and gain access to the entire library. %prep %forgeautosetup -p1 sed -e '/-Werror/d' -i tests/CMakeLists.txt %build %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ -DGSL_INSTALL:BOOL=ON \ -DGSL_TEST:BOOL=ON %cmake_build %install %cmake_install %check %ctest %files devel %doc README.md CONTRIBUTING.md %license LICENSE ThirdPartyNotices.txt %{_datadir}/cmake/Microsoft.GSL/ %{_includedir}/gsl/ %changelog %autochangelog