From 53ff9f0953483410cab1605cedbb9d63fac3496c Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Sun, 20 Jan 2019 10:59:16 +0100 Subject: [PATCH] Unbundled fmt library. Added tests support. --- spdlog.spec | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spdlog.spec b/spdlog.spec index 08a4003..ed89da1 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -9,7 +9,9 @@ License: MIT URL: https://github.com/%{user}/%{name}/ Source0: https://github.com/%{user}/%{name}/archive/v%{version}.tar.gz +BuildRequires: google-benchmark-devel BuildRequires: ninja-build +BuildRequires: fmt-devel BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: gcc @@ -23,6 +25,7 @@ Summary: Development files for %{name} Provides: %{name}-static = %{version}-%{release} Provides: %{name} = %{version}-%{release} Requires: libstdc++-devel +Requires: fmt-devel %description devel The %{name}-devel package contains C++ header files for developing @@ -38,10 +41,19 @@ sed -i -e "s,\r,," README.md pushd %{_target_platform} %cmake -G Ninja \ -DCMAKE_BUILD_TYPE=Release \ + -DSPDLOG_BUILD_EXAMPLES=OFF \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_TESTS=ON \ + -DSPDLOG_FMT_EXTERNAL=ON \ .. popd %ninja_build -C %{_target_platform} +%check +pushd %{_target_platform} + ctest --output-on-failure +popd + %install %ninja_install -C %{_target_platform}