From 1ad64972b2800d4db94be514b5815418373461c5 Mon Sep 17 00:00:00 2001 From: Muhammad Alfi Syahrin Date: Sun, 5 Jan 2025 20:24:30 +0700 Subject: [PATCH] spdlog: Add at v1.12.0 --- s/spdlog/manifest.x86_64.bin | Bin 0 -> 561 bytes s/spdlog/manifest.x86_64.jsonc | 140 +++++++++++++++++++++++++ s/spdlog/monitoring.yaml | 5 + s/spdlog/pkg/spdlog_constexpr.patch | 21 ++++ s/spdlog/pkg/spdlog_fmt_external.patch | 11 ++ s/spdlog/stone.yaml | 32 ++++++ 6 files changed, 209 insertions(+) create mode 100644 s/spdlog/manifest.x86_64.bin create mode 100644 s/spdlog/manifest.x86_64.jsonc create mode 100644 s/spdlog/monitoring.yaml create mode 100644 s/spdlog/pkg/spdlog_constexpr.patch create mode 100644 s/spdlog/pkg/spdlog_fmt_external.patch create mode 100644 s/spdlog/stone.yaml diff --git a/s/spdlog/manifest.x86_64.bin b/s/spdlog/manifest.x86_64.bin new file mode 100644 index 0000000000000000000000000000000000000000..add5d3bbb0d6123fae17f29108654e583e3c7f71 GIT binary patch literal 561 zcmZR`%`awPVqjoo0FlfL3@i)`tPBin3=Hf*7DyNjUP36w`3jbkezQ>YKZ6szfjgc2^X}A^Iz_Nxx!VK_5OCX zs_qZLbHi&~k8f^o=2)A5_Mq6RDKlpC{{P>1%xrJIT~3-}qF9s7>ou1zL|@ha_g{C) zDfffkCYwJ$HMlF67FTfDc$vwk!m9f3Bf-01{krvAc3zFNXOgSl^|(fU;qrg>(h3h$w5~GB@Ey>I&t<%eznc~{-t(5=^x6#xIfJNEe7qAN1x;gzS>-F*FU z_W%ER|NQqBFm=3~{jk^F^32ipn81mp@yz@G)C(zWICRif sU^;h!0E2Vzj*hbntbeR|d+lAL#X0vwA#R7nW~^bhYrXA}V*cPA00epcX8-^I literal 0 HcmV?d00001 diff --git a/s/spdlog/manifest.x86_64.jsonc b/s/spdlog/manifest.x86_64.jsonc new file mode 100644 index 000000000..8680cbe54 --- /dev/null +++ b/s/spdlog/manifest.x86_64.jsonc @@ -0,0 +1,140 @@ +/** Human readable report. This is not consumed by boulder */ +{ + "manifest-version": "0.2", + "packages": { + "spdlog": { + "build-depends": [ + "pkgconfig(fmt)" + ], + "depends": [ + "soname(ld-linux-x86-64.so.2(x86_64))", + "soname(libc++.so.1(x86_64))", + "soname(libc.so.6(x86_64))", + "soname(libfmt.so.10(x86_64))", + "soname(libunwind.so.1(x86_64))" + ], + "files": [ + "/usr/lib/libspdlog.so.1.12", + "/usr/lib/libspdlog.so.1.12.0" + ], + "name": "spdlog", + "provides": [ + "soname(libspdlog.so.1.12(x86_64))" + ] + }, + "spdlog-devel": { + "build-depends": [ + "pkgconfig(fmt)" + ], + "depends": [ + "pkgconfig(fmt)", + "spdlog" + ], + "files": [ + "/usr/include/spdlog/async.h", + "/usr/include/spdlog/async_logger-inl.h", + "/usr/include/spdlog/async_logger.h", + "/usr/include/spdlog/cfg/argv.h", + "/usr/include/spdlog/cfg/env.h", + "/usr/include/spdlog/cfg/helpers-inl.h", + "/usr/include/spdlog/cfg/helpers.h", + "/usr/include/spdlog/common-inl.h", + "/usr/include/spdlog/common.h", + "/usr/include/spdlog/details/backtracer-inl.h", + "/usr/include/spdlog/details/backtracer.h", + "/usr/include/spdlog/details/circular_q.h", + "/usr/include/spdlog/details/console_globals.h", + "/usr/include/spdlog/details/file_helper-inl.h", + "/usr/include/spdlog/details/file_helper.h", + "/usr/include/spdlog/details/fmt_helper.h", + "/usr/include/spdlog/details/log_msg-inl.h", + "/usr/include/spdlog/details/log_msg.h", + "/usr/include/spdlog/details/log_msg_buffer-inl.h", + "/usr/include/spdlog/details/log_msg_buffer.h", + "/usr/include/spdlog/details/mpmc_blocking_q.h", + "/usr/include/spdlog/details/null_mutex.h", + "/usr/include/spdlog/details/os-inl.h", + "/usr/include/spdlog/details/os.h", + "/usr/include/spdlog/details/periodic_worker-inl.h", + "/usr/include/spdlog/details/periodic_worker.h", + "/usr/include/spdlog/details/registry-inl.h", + "/usr/include/spdlog/details/registry.h", + "/usr/include/spdlog/details/synchronous_factory.h", + "/usr/include/spdlog/details/tcp_client-windows.h", + "/usr/include/spdlog/details/tcp_client.h", + "/usr/include/spdlog/details/thread_pool-inl.h", + "/usr/include/spdlog/details/thread_pool.h", + "/usr/include/spdlog/details/udp_client-windows.h", + "/usr/include/spdlog/details/udp_client.h", + "/usr/include/spdlog/details/windows_include.h", + "/usr/include/spdlog/fmt/bin_to_hex.h", + "/usr/include/spdlog/fmt/chrono.h", + "/usr/include/spdlog/fmt/compile.h", + "/usr/include/spdlog/fmt/fmt.h", + "/usr/include/spdlog/fmt/ostr.h", + "/usr/include/spdlog/fmt/ranges.h", + "/usr/include/spdlog/fmt/std.h", + "/usr/include/spdlog/fmt/xchar.h", + "/usr/include/spdlog/formatter.h", + "/usr/include/spdlog/fwd.h", + "/usr/include/spdlog/logger-inl.h", + "/usr/include/spdlog/logger.h", + "/usr/include/spdlog/pattern_formatter-inl.h", + "/usr/include/spdlog/pattern_formatter.h", + "/usr/include/spdlog/sinks/android_sink.h", + "/usr/include/spdlog/sinks/ansicolor_sink-inl.h", + "/usr/include/spdlog/sinks/ansicolor_sink.h", + "/usr/include/spdlog/sinks/base_sink-inl.h", + "/usr/include/spdlog/sinks/base_sink.h", + "/usr/include/spdlog/sinks/basic_file_sink-inl.h", + "/usr/include/spdlog/sinks/basic_file_sink.h", + "/usr/include/spdlog/sinks/callback_sink.h", + "/usr/include/spdlog/sinks/daily_file_sink.h", + "/usr/include/spdlog/sinks/dist_sink.h", + "/usr/include/spdlog/sinks/dup_filter_sink.h", + "/usr/include/spdlog/sinks/hourly_file_sink.h", + "/usr/include/spdlog/sinks/kafka_sink.h", + "/usr/include/spdlog/sinks/mongo_sink.h", + "/usr/include/spdlog/sinks/msvc_sink.h", + "/usr/include/spdlog/sinks/null_sink.h", + "/usr/include/spdlog/sinks/ostream_sink.h", + "/usr/include/spdlog/sinks/qt_sinks.h", + "/usr/include/spdlog/sinks/ringbuffer_sink.h", + "/usr/include/spdlog/sinks/rotating_file_sink-inl.h", + "/usr/include/spdlog/sinks/rotating_file_sink.h", + "/usr/include/spdlog/sinks/sink-inl.h", + "/usr/include/spdlog/sinks/sink.h", + "/usr/include/spdlog/sinks/stdout_color_sinks-inl.h", + "/usr/include/spdlog/sinks/stdout_color_sinks.h", + "/usr/include/spdlog/sinks/stdout_sinks-inl.h", + "/usr/include/spdlog/sinks/stdout_sinks.h", + "/usr/include/spdlog/sinks/syslog_sink.h", + "/usr/include/spdlog/sinks/systemd_sink.h", + "/usr/include/spdlog/sinks/tcp_sink.h", + "/usr/include/spdlog/sinks/udp_sink.h", + "/usr/include/spdlog/sinks/win_eventlog_sink.h", + "/usr/include/spdlog/sinks/wincolor_sink-inl.h", + "/usr/include/spdlog/sinks/wincolor_sink.h", + "/usr/include/spdlog/spdlog-inl.h", + "/usr/include/spdlog/spdlog.h", + "/usr/include/spdlog/stopwatch.h", + "/usr/include/spdlog/tweakme.h", + "/usr/include/spdlog/version.h", + "/usr/lib/cmake/spdlog/spdlogConfig.cmake", + "/usr/lib/cmake/spdlog/spdlogConfigTargets-release.cmake", + "/usr/lib/cmake/spdlog/spdlogConfigTargets.cmake", + "/usr/lib/cmake/spdlog/spdlogConfigVersion.cmake", + "/usr/lib/libspdlog.so", + "/usr/lib/pkgconfig/spdlog.pc" + ], + "name": "spdlog-devel", + "provides": [ + "cmake(spdlog)", + "pkgconfig(spdlog)" + ] + } + }, + "source-name": "spdlog", + "source-release": "1", + "source-version": "1.12.0" +} diff --git a/s/spdlog/monitoring.yaml b/s/spdlog/monitoring.yaml new file mode 100644 index 000000000..c1ab7294d --- /dev/null +++ b/s/spdlog/monitoring.yaml @@ -0,0 +1,5 @@ +releases: + id: 15599 + rss: https://github.com/gabime/spdlog/tags.atom +security: + cpe: ~ diff --git a/s/spdlog/pkg/spdlog_constexpr.patch b/s/spdlog/pkg/spdlog_constexpr.patch new file mode 100644 index 000000000..344969034 --- /dev/null +++ b/s/spdlog/pkg/spdlog_constexpr.patch @@ -0,0 +1,21 @@ +diff --git a/include/spdlog/common.h b/include/spdlog/common.h +index 0a262eb2..059627c8 100644 +--- a/include/spdlog/common.h ++++ b/include/spdlog/common.h +@@ -75,6 +75,16 @@ + # endif + #endif + ++#ifdef SPDLOG_USE_STD_FORMAT ++ #define SPDLOG_CONSTEXPR_FUNC constexpr ++#else // Being built with fmt ++ #if FMT_USE_CONSTEXPR ++ #define SPDLOG_CONSTEXPR_FUNC FMT_CONSTEXPR ++ #else ++ #define SPDLOG_CONSTEXPR_FUNC inline ++ #endif ++#endif ++ + #if defined(__GNUC__) || defined(__clang__) + # define SPDLOG_DEPRECATED __attribute__((deprecated)) + #elif defined(_MSC_VER) diff --git a/s/spdlog/pkg/spdlog_fmt_external.patch b/s/spdlog/pkg/spdlog_fmt_external.patch new file mode 100644 index 000000000..aac0a9cf7 --- /dev/null +++ b/s/spdlog/pkg/spdlog_fmt_external.patch @@ -0,0 +1,11 @@ +--- a/include/spdlog/tweakme.h 2023-01-02 09:57:15.667781832 -0800 ++++ b/include/spdlog/tweakme.h 2023-01-02 09:57:17.761105926 -0800 +@@ -78,7 +78,7 @@ + // In this case spdlog will try to include so set your -I flag + // accordingly. + // +-// #define SPDLOG_FMT_EXTERNAL ++#define SPDLOG_FMT_EXTERNAL + /////////////////////////////////////////////////////////////////////////////// + + /////////////////////////////////////////////////////////////////////////////// diff --git a/s/spdlog/stone.yaml b/s/spdlog/stone.yaml new file mode 100644 index 000000000..43cb14c66 --- /dev/null +++ b/s/spdlog/stone.yaml @@ -0,0 +1,32 @@ +# +# SPDX-FileCopyrightText: © 2020-2024 Serpent OS Developers +# +# SPDX-License-Identifier: MPL-2.0 +# +name : spdlog +version : 1.12.0 +release : 1 +homepage : https://github.com/gabime/spdlog +upstreams : + - https://github.com/gabime/spdlog/archive/refs/tags/v1.12.0.tar.gz : 4dccf2d10f410c1e2feaff89966bfc49a1abb29ef6f08246335b110e001e09a9 +summary : Fast C++ logging library +description : | + Fast C++ logging library +license : MIT +builddeps : + - pkgconfig(fmt) +setup : | + %patch %(pkgdir)/spdlog_fmt_external.patch + %patch %(pkgdir)/spdlog_constexpr.patch + + %cmake \ + -DSPDLOG_BUILD_BENCH=OFF \ + -DSPDLOG_BUILD_EXAMPLES=OFF \ + -DSPDLOG_BUILD_SHARED=ON \ + -DSPDLOG_BUILD_STATIC=OFF \ + -DSPDLOG_FMT_EXTERNAL=ON +build : | + %cmake_build +install : | + %cmake_install +