forked from pool/spdlog
Accepting request 694804 from home:alois
Fixed build on targets where gcc8 is availabl OBS-URL: https://build.opensuse.org/request/show/694804 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=20
This commit is contained in:
parent
e34ee06eb2
commit
f36e617389
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 16 13:33:41 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
- Fixed build on targets where gcc8 is available
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 18 09:33:36 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
Mon Feb 18 09:33:36 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||||
|
|
||||||
|
@ -26,7 +26,11 @@ URL: https://github.com/gabime/spdlog
|
|||||||
Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: benchmark-devel >= 1.4.0
|
BuildRequires: benchmark-devel >= 1.4.0
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
BuildRequires: gcc-c++ >= 8
|
BuildRequires: gcc-c++ >= 8
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc8-c++
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(fmt)
|
BuildRequires: pkgconfig(fmt)
|
||||||
|
|
||||||
@ -51,6 +55,8 @@ find . -name '.gitignore' -exec rm {} \;
|
|||||||
sed -i -e "s,\r,," README.md LICENSE
|
sed -i -e "s,\r,," README.md LICENSE
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export CXX=g++
|
||||||
|
test -x "$(type -p g++-8)" && export CXX=g++-8
|
||||||
%cmake -DSPDLOG_FMT_EXTERNAL=ON
|
%cmake -DSPDLOG_FMT_EXTERNAL=ON
|
||||||
%make_jobs
|
%make_jobs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user