From 1cdc02dc13c73e6bca7c72a051a395323a1ffea5fa50d92be29d0b2efc0e43ae Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 28 May 2019 05:16:20 +0000 Subject: [PATCH] Accepting request 705726 from home:Dead_Mozay:matrix - Added additional building options OBS-URL: https://build.opensuse.org/request/show/705726 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=22 --- spdlog.changes | 5 +++++ spdlog.spec | 14 +++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/spdlog.changes b/spdlog.changes index c862bb6..a9303a0 100644 --- a/spdlog.changes +++ b/spdlog.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 27 06:11:03 UTC 2019 - Dead Mozay + +- Added additional building options + ------------------------------------------------------------------- Tue Apr 16 13:33:41 UTC 2019 - Luigi Baldoni diff --git a/spdlog.spec b/spdlog.spec index 4791f8c..4c640de 100644 --- a/spdlog.spec +++ b/spdlog.spec @@ -31,6 +31,8 @@ BuildRequires: gcc-c++ >= 8 %else BuildRequires: gcc8-c++ %endif +BuildRequires: gcc +BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: pkgconfig(fmt) @@ -57,11 +59,17 @@ sed -i -e "s,\r,," README.md LICENSE %build export CXX=g++ test -x "$(type -p g++-8)" && export CXX=g++-8 -%cmake -DSPDLOG_FMT_EXTERNAL=ON -%make_jobs +%cmake -G Ninja \ + -DSPDLOG_BUILD_TESTS=ON \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_FMT_EXTERNAL=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DSPDLOG_BUILD_EXAMPLES=OFF \ +.. +%ninja_build %install -%cmake_install +%ninja_install -C build %check %ctest