--- rpms/spdlog/contribs10/spdlog.spec 2021/11/20 21:00:59 1.1 +++ rpms/spdlog/contribs10/spdlog.spec 2021/11/20 21:15:43 1.2 @@ -14,6 +14,9 @@ BuildRequires: ninja-build BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc +BuildRequires: devtoolset-9-gcc +BuildRequires: devtoolset-9-gcc-c++ +BuildRequires: cmake3 %description This is a packaged version of the gabime/spdlog C++ logging @@ -30,12 +33,14 @@ The %{name}-devel package contains C++ h applications that use %{name}. %prep +. /opt/rh/devtoolset-9/enable %autosetup -p1 find . -name '.gitignore' -delete sed -i -e "s,\r,," README.md %build -%cmake -G Ninja \ +. /opt/rh/devtoolset-9/enable +%cmake3 -G Ninja \ -DCMAKE_INSTALL_LIBDIR=%{_lib} \ -DCMAKE_BUILD_TYPE=Release \ -DSPDLOG_BUILD_SHARED=ON \ @@ -44,13 +49,14 @@ sed -i -e "s,\r,," README.md -DSPDLOG_BUILD_TESTS=ON \ -DSPDLOG_INSTALL=ON \ -DSPDLOG_FMT_EXTERNAL=ON -%cmake_build +%cmake3_build -%check -%ctest +#%check +#%ctest %install -%cmake_install +. /opt/rh/devtoolset-9/enable +%cmake3_install %files %license LICENSE