Use packaged version of catch for the tests.

This commit is contained in:
Vitaly Zaitsev 2021-04-02 14:32:44 +02:00
parent cd1732582b
commit 72db46db6d
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A

View File

@ -8,12 +8,13 @@ License: MIT
URL: https://github.com/gabime/%{name}
Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: google-benchmark-devel
BuildRequires: fmt-devel >= 7.0.0
BuildRequires: ninja-build
BuildRequires: gcc-c++
BuildRequires: catch-devel >= 2.8.0
BuildRequires: cmake
BuildRequires: fmt-devel >= 7.0.0
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: google-benchmark-devel
BuildRequires: ninja-build
%description
This is a packaged version of the gabime/spdlog C++ logging
@ -33,6 +34,7 @@ applications that use %{name}.
%autosetup -p1
find . -name '.gitignore' -delete
sed -i -e "s,\r,," README.md
ln -svf %{_includedir}/catch2/catch.hpp ./tests/catch.hpp
%build
%cmake -G Ninja \