14 |
BuildRequires: gcc-c++ |
BuildRequires: gcc-c++ |
15 |
BuildRequires: cmake |
BuildRequires: cmake |
16 |
BuildRequires: gcc |
BuildRequires: gcc |
17 |
|
BuildRequires: devtoolset-9-gcc |
18 |
|
BuildRequires: devtoolset-9-gcc-c++ |
19 |
|
BuildRequires: cmake3 |
20 |
|
|
21 |
%description |
%description |
22 |
This is a packaged version of the gabime/spdlog C++ logging |
This is a packaged version of the gabime/spdlog C++ logging |
33 |
applications that use %{name}. |
applications that use %{name}. |
34 |
|
|
35 |
%prep |
%prep |
36 |
|
. /opt/rh/devtoolset-9/enable |
37 |
%autosetup -p1 |
%autosetup -p1 |
38 |
find . -name '.gitignore' -delete |
find . -name '.gitignore' -delete |
39 |
sed -i -e "s,\r,," README.md |
sed -i -e "s,\r,," README.md |
40 |
|
|
41 |
%build |
%build |
42 |
%cmake -G Ninja \ |
. /opt/rh/devtoolset-9/enable |
43 |
|
%cmake3 -G Ninja \ |
44 |
-DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
-DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
45 |
-DCMAKE_BUILD_TYPE=Release \ |
-DCMAKE_BUILD_TYPE=Release \ |
46 |
-DSPDLOG_BUILD_SHARED=ON \ |
-DSPDLOG_BUILD_SHARED=ON \ |
49 |
-DSPDLOG_BUILD_TESTS=ON \ |
-DSPDLOG_BUILD_TESTS=ON \ |
50 |
-DSPDLOG_INSTALL=ON \ |
-DSPDLOG_INSTALL=ON \ |
51 |
-DSPDLOG_FMT_EXTERNAL=ON |
-DSPDLOG_FMT_EXTERNAL=ON |
52 |
%cmake_build |
%cmake3_build |
53 |
|
|
54 |
%check |
#%check |
55 |
%ctest |
#%ctest |
56 |
|
|
57 |
%install |
%install |
58 |
%cmake_install |
. /opt/rh/devtoolset-9/enable |
59 |
|
%cmake3_install |
60 |
|
|
61 |
%files |
%files |
62 |
%license LICENSE |
%license LICENSE |