summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-13 08:33:31 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-13 08:33:31 +0000
commita34edfa01dc211206310fb7618c6f36c8bb581cf (patch)
tree807487ba4282d7b9bdaa57259b4e2ca1d5c4affb
parentffbb49e5968c18be23ae489e2f2a4e5aad9ba070 (diff)
automatic import of spdlog
-rw-r--r--sources2
-rw-r--r--spdlog.spec7
2 files changed, 7 insertions, 2 deletions
diff --git a/sources b/sources
index 5699d2e..3c53f78 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fa21d71204562682ad079a3b73c9c685 spdlog-1.17.0.tar.gz
+7a020b5f2101bf891dddf314ee7552cf spdlog-1.17.0.tar.gz
diff --git a/spdlog.spec b/spdlog.spec
index 4c48780..f247974 100644
--- a/spdlog.spec
+++ b/spdlog.spec
@@ -12,6 +12,7 @@ Group: Development/Libraries
Packager: openEuler Builder <builder@openeuler.org>
BuildRequires: cmake
+BuildRequires: gcc
BuildRequires: gcc-c++
%description
@@ -30,7 +31,11 @@ Header files, CMake configuration files and development libraries for %{name}.
%autosetup -p1 -n %{name}-%{version}
%build
-%cmake \
+# openEuler's cmake package ships an old-style in-source %cmake macro (no -B),
+# while cmake-rpm-macros provides new-style %cmake_build/%cmake_install that
+# operate on %_vpath_builddir. Align them: configure into %_vpath_builddir so
+# %cmake_build finds the build directory it expects.
+%cmake -B %{_vpath_builddir} \
-DSPDLOG_BUILD_SHARED=ON \
-DSPDLOG_BUILD_TESTS=OFF \
-DSPDLOG_BUILD_TESTS_HO=OFF \