SHA256
1
0
forked from pool/spdlog

Accepting request 974295 from devel:libraries:c_c++

Updated to version 1.10.0.

OBS-URL: https://build.opensuse.org/request/show/974295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spdlog?expand=0&rev=24
This commit is contained in:
Dominique Leuenberger 2022-05-04 13:10:26 +00:00 committed by Git OBS Bridge
commit f5f912c228
5 changed files with 48 additions and 49 deletions

3
spdlog-1.10.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:697f91700237dbae2326b90469be32b876b2b44888302afbc7aceb68bcfe8224
size 368651

View File

@ -1,41 +0,0 @@
Index: spdlog-1.9.1/tests/includes.h
===================================================================
--- spdlog-1.9.1.orig/tests/includes.h
+++ spdlog-1.9.1/tests/includes.h
@@ -1,6 +1,6 @@
#pragma once
-#include "catch.hpp"
+#include <catch2/catch.hpp>
#include "utils.h"
#include <chrono>
#include <cstdio>
@@ -23,4 +23,4 @@
#include "spdlog/sinks/ostream_sink.h"
#include "spdlog/sinks/rotating_file_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
-#include "spdlog/pattern_formatter.h"
\ No newline at end of file
+#include "spdlog/pattern_formatter.h"
Index: spdlog-1.9.1/tests/main.cpp
===================================================================
--- spdlog-1.9.1.orig/tests/main.cpp
+++ spdlog-1.9.1/tests/main.cpp
@@ -1,2 +1,2 @@
#define CATCH_CONFIG_MAIN
-#include "catch.hpp"
\ No newline at end of file
+#include <catch2/catch.hpp>
Index: spdlog-1.9.1/tests/CMakeLists.txt
===================================================================
--- spdlog-1.9.1.orig/tests/CMakeLists.txt
+++ spdlog-1.9.1/tests/CMakeLists.txt
@@ -10,7 +10,7 @@ include(../cmake/utils.cmake)
find_package(PkgConfig)
if(PkgConfig_FOUND)
- pkg_check_modules(systemd libsystemd)
+ pkg_check_modules(systemd libsystemd catch2>=2.13.4)
endif()
set(SPDLOG_UTESTS_SOURCES

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6fff9215f5cb81760be4cc16d033526d1080427d236e86d70bb02994f85e3d38
size 327799

View File

@ -1,3 +1,46 @@
-------------------------------------------------------------------
Mon Apr 18 19:47:37 UTC 2022 - Bernd Ritter <comrad@posteo.de>
- Update to version 1.10.0
* Bump fmt to version 8.1.1.
* Added file event handlers.
* Fixed rotating file sink: when disk is full log rotation resulted zero size log files.
* Added new udp_sink.
* Improved file name for hourly file sink.
* Added code location information for error handler.
* Fixed qt_sinks ctor.
* List Debian instructions in the README.
* Updated to latest Travis CI Build Status.
* Fixed unhandled errors in udp sink.
* CMake improvement regarding cmake_minimum_required and policy.
* Fixed mongo_sink compile in older gcc versions.
* Remove mutable keyword from mutex_ member in of sinks.
* Fix typos.
* Fixed udp sink build on FreeBSD
* Avoid c-style casting in stdout sinks.
* Fixed tweakme.h compile error under msvcs when SPDLOG_FUNCTION is defined #2182. Thanks @Light3039 .
* Fixed compiling errors on AIX #2181. Thanks @lisr .
* Fixed runtime when build with -fsanitize=cfi #1972. Thanks @bansan85 .
* Remove extraneous semicolon #2190. Thanks @sylveon.
* Added example how to replace default logger.
* Fixed usage of ranges and to_hex in the same compile unit.
* Reduce warnings with pedantic compiler -Wuseless-cast.
* Support using std::span in to_hex.
* Reset current size if rotated files on open #2234.
* Allow forward-declaration of level_enum.
* Call localtime() only if pattern_formatter really needs it.
* Removed unneeded spaces from code.
* Added a few missing files/directories to the gitignore.
* Fixed issue #2201 (Pattern width is not applied for missing source information).
* Limit max number of rotating files to 200000.
* pattern_formatter: fix reorder-ctor warning.
* Fixed spdlogConfig.cmake when built with SPDLOG_FMT_EXTERNAL_HO.
* Fixed fopen_s(..) error handling when PREVENT_CHILD_FD is defined.
* Fixed compiler error when building on Windows with #define UNICODE.
* Added option to enable formatting of systemd sink.
* Added optional "ident" argument to systemd sink constructor.
* Removed spdlog-1.9.1-use_system_catch2.patch, as it is no longer necessary (after consultation with Luigi Baldoni on this issue).
-------------------------------------------------------------------
Tue Nov 2 16:05:55 UTC 2021 - Imo Hester <vortex@z-ray.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package spdlog
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,16 +18,13 @@
%define _sover 1
Name: spdlog
Version: 1.9.2
Version: 1.10.0
Release: 0
Summary: C++ logging library
License: MIT
URL: https://github.com/gabime/spdlog
Source0: https://github.com/gabime/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE spdlog-1.9.1-use_system_catch2.patch use system catch2 to fix problem with glibc 2.3.4 -- aloisio@gmx.com
Source99: baselibs.conf
Patch0: spdlog-1.9.1-use_system_catch2.patch
BuildRequires: benchmark-devel >= 1.4.0
BuildRequires: cmake >= 3.10
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++ >= 8