Unbundled fmt library. Added tests support.

This commit is contained in:
Vitaly Zaitsev 2019-01-20 10:59:16 +01:00
parent 561e1d232f
commit 53ff9f0953
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
1 changed files with 12 additions and 0 deletions

View File

@ -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}