Package libmicrosoft-gsl: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | Name: libmicrosoft-gsl Version: 4.0.0 Release: alt2 Epoch: 1 Summary: Guidelines Support Library Group: Development/C++ License: MIT Url: https://github.com/Microsoft/GSL Packager: Vitaly Lipatov <lav@altlinux.ru> # Source-url: https://github.com/microsoft/GSL/archive/refs/tags/v%version.tar.gz Source: %name-%version.tar # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106547 Patch: 09938e870420b69a01f55c755207c871bc20b4e5.patch BuildArch: noarch BuildRequires: gcc-c++ cmake %if_with test #ctest catch2-devel >= 2.11.0-alt2 BuildRequires: libgtest-devel %endif BuildRequires(pre): rpm-macros-cmake %description The Guideline 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 library includes types like span<T>, string_span, owner<> and others. The entire implementation is provided inline in the headers under the gsl directory. The implementation generally assumes a platform that implements C++14 support. There are specific workarounds to support MSVC 2013 and 2015. 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. %package devel Group: Development/Other Summary: Development files for %name Provides: guidelines-support-library-devel = %version-%release %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %prep %setup %patch -p1 # adopt to external catch2 #__subst "s|\(add_custom_target(catch)\)|\1\nfind_package(Catch2)|" tests/CMakeLists.txt #__subst "s|catch/|catch2/|" tests/*.cpp %__subst "/-Werror/d" tests/CMakeLists.txt %build %cmake_insource -DGSL_TEST:BOOL=false %make_build %install %makeinstall_std %if_with test %check make test %endif %files devel %_includedir/gsl/ /usr/share/cmake/Microsoft.GSL/ %changelog * Wed Aug 02 2023 Vitaly Lipatov <lav@altlinux.ru> 1:4.0.0-alt2 - add workaround for std::variant bug in libstdc++ see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106547 - build as noarch * Sun Jul 30 2023 Vitaly Lipatov <lav@altlinux.ru> 1:4.0.0-alt1 - new version 4.0.0 (with rpmrb script) * Thu Aug 19 2021 Vitaly Lipatov <lav@altlinux.ru> 1:3.1.0-alt1 - new version (3.1.0) with rpmgs script * Mon May 04 2020 Vitaly Lipatov <lav@altlinux.ru> 1:3.0.1-alt1 - new version (3.0.1) with rpmgs script - switch from catch2 to google test (disable google test for a time) - build from tarball * Sun Jan 26 2020 Vitaly Lipatov <lav@altlinux.ru> 1:2.1.0-alt1 - new version (2.1.0) with rpmgs script - move headers to include/gsl * Mon Jun 18 2018 Vitaly Lipatov <lav@altlinux.ru> 20180615-alt1 - Revert "not_null constructor is now explicit (#659)", see #699 * Sun Jun 10 2018 Vitaly Lipatov <lav@altlinux.ru> 20180608-alt1 - build new version * Sat Jun 02 2018 Vitaly Lipatov <lav@altlinux.ru> 20180315-alt1 - update to v1.0.0 * Mon Jun 12 2017 Vitaly Lipatov <lav@altlinux.ru> 20170612-alt1 - initial build for ALT Sisyphus |