From ae3a81c72830eaea789c5acec04582893b2059d8060a8fa981fe3e682d3edd15 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 27 Nov 2024 21:48:38 +0100 Subject: [PATCH] Enable use of system fmt --- slade.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/slade.spec b/slade.spec index 795f760..0f037d2 100644 --- a/slade.spec +++ b/slade.spec @@ -47,6 +47,11 @@ BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libmpg123) BuildRequires: pkgconfig(sfml-all) BuildRequires: pkgconfig(x11) +%if 0%{?suse_version} >= 1600 +BuildRequires: fmt-10-devel +%else +Provides: bundled(fmt) = 10 +%endif Provides: bundled(dumb) = 0.9.3 %description @@ -63,7 +68,10 @@ from/to other generic formats such as PNG. %cmake -DNO_WEBVIEW=ON -DWX_GTK3=OFF -DNO_CRASHHANDLER=ON \ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="%optflags" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="%optflags" \ - -DNO_LUA:BOOL=TRUE +%if 0%{?suse_version} >= 1600 + -DUSE_SYSTEM_FMT:BOOL=ON \ +%endif + -DNO_LUA:BOOL=ON %cmake_build %install