Name: nonstd-string-view-lite-devel %define altname string-view-lite Version: 1.7.0 Release: 1%{?dist} Summary: A single-file header-only version of a C++17-like string_view for C++98, C++11 and later License: BSL-1.0 URL: https://github.com/martinmoene/%{altname} Source0: https://github.com/martinmoene/%{altname}/archive/refs/tags/v%{version}.tar.gz#/%{altname}-%{version}.tar.gz BuildArch: noarch BuildRequires: cmake BuildRequires: gcc-c++ %description string-view lite is a single-file header-only library to provide a non-owning reference to a string. The library provides a C++17-like string_view for use with C++98 and later. If available, std::string_view is used, unless configured otherwise. %prep %autosetup -n %{altname}-%{version} %build %cmake %cmake_build %install %cmake_install %check %ctest %files %{_includedir}/nonstd/*.hpp %{_libdir}/cmake/*/*.cmake %changelog * Wed Aug 10 2022 Jean Pierre Cimalando - 1.7.0-1 - Updated to 1.7.0 * Fri Jul 15 2022 Jean Pierre Cimalando - 1.6.0-1 - Initial version of the package