Accepting request 752439 from home:alois:branches:devel:libraries:c_c++
update to 1.4.2 OBS-URL: https://build.opensuse.org/request/show/752439 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=24
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:160845266e94db1d4922ef755637f6901266731c4cb3b30b45bf41efa0e6ab70
|
||||
size 202634
|
3
spdlog-1.4.2.tar.gz
Normal file
3
spdlog-1.4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:821c85b120ad15d87ca2bc44185fa9091409777c756029125a02f81354072157
|
||||
size 260262
|
117
spdlog.changes
117
spdlog.changes
@@ -1,3 +1,120 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 29 08:12:42 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
- Update to version 1.4.2
|
||||
* Set additional CPACK variables for RPM generator (#1246).
|
||||
Thanks @tcraigtyler.
|
||||
* Fix compile when SPDLOG_WCHAR_FILENAMES is defined (#1249 ).
|
||||
* Fix stdout color sink under Windows to better handle cases
|
||||
when no console available (#1250).
|
||||
* Fix windows compile error where std::max is overriden by a
|
||||
macro. (#1251, #1252). Thanks @bsergean.
|
||||
* CMakeLists.txt: Moved the installed lib to
|
||||
CMAKE_INSTALL_LIBDIR (#1253). Thanks @DasRoteSkelett.
|
||||
* CMakeLists.txt: Fixed pkg-config generation (cf2bf48,
|
||||
fb70eca). Thanks @SammyEnigma.
|
||||
version 1.4.1:
|
||||
* Added pkgconfig file to CMake install - Thanks @orbea for
|
||||
reporting and fixing (#1237 #1238).
|
||||
* Fix regression in wchar support under windows. Thanks
|
||||
@Bak-Jin-Hyeong for reporting and fixing (#1239 #1240).
|
||||
* CMake: Do not install bundled fmt if SPDLOG_FMT_EXTERNAL is
|
||||
defined. Thanks @orbea (#1241).
|
||||
version 1.4.0:
|
||||
Improvements
|
||||
* spdlog can now be compiled as a static or shared lib (thanks
|
||||
@DavidZemon for the help).
|
||||
* Using the compiled lib improves greatly compile times when
|
||||
using spdlog and is very recommended.
|
||||
$ cd spdlog && mkdir build && cd build
|
||||
# Build is static lib (pass -DCMAKE_BUILD_TYPE=shared for building as shared lib)
|
||||
$ cmake .. && make -j
|
||||
* Upgraded to the latest and greatest fmt library version
|
||||
6.0.0. Thanks @tgpfeiffer (and to @vitaut for fmt!).
|
||||
* Support for -fno-exceptions (disabled by default). Enabling
|
||||
this will replace all throw() statements in spdlog with
|
||||
std::abort(). To enable, pass -DSPDLOG_NO_EXCEPTIONS=ON to CMake
|
||||
before building spdlog.
|
||||
* support for building spdlog with meson. Thanks @mensinda
|
||||
* Backtrace support - store debug/trace messages in a ring
|
||||
buffer to display later on demand. Very useful (thanks
|
||||
@MathijsV for the idea):
|
||||
spdlog::enable_backtrace(32); // create ring buffer with capacity of 32 messages
|
||||
// or my_logger->enable_backtrace(32)..
|
||||
for(int i = 0; i < 100; i++)
|
||||
{
|
||||
spdlog::debug("Backtrace message {}", i); // not logged yet..
|
||||
}
|
||||
// e.g. if some error happened:
|
||||
spdlog::dump_backtrace(); // log them now! show the last 32 messages
|
||||
// or my_logger->dump_backtrace(32)..
|
||||
* Systemd support. Thanks @WarShoe (#1027)
|
||||
* Support for cleaning old files in daily_logger.
|
||||
* Numerous CMake build improvements. Thanks @DavidZemon ,
|
||||
@jktjkt , @ksergey , @mnemotic , @cneumann , @dpacbach ,
|
||||
@FrancoisChabot , @myd7349 , @matt77hias
|
||||
* Better support for various Unix BSDs (DragonFly, NetBSD,
|
||||
FreeBSD, OpenBSD). Thanks @jbeich (#1234)
|
||||
* Provide source location support for systemd sink. Thanks
|
||||
@jbelloncastro (#1122)
|
||||
* Added fmt::(w)string_view support. Thanks @matt77hias (#1139)
|
||||
* Add option to force color output without TTY . Thanks @psalz
|
||||
(#1175)
|
||||
* Add more overloads to spdlog::log and spdlog::logger::log.
|
||||
Thanks @sylveon (@1169)
|
||||
* Add public API spdlog::initialize_logger for create loggers
|
||||
manually. Thanks @tt4g (#1035)
|
||||
* Expose should_do_colors_ in ansicolor_sink.h. Thanks Florian
|
||||
Wörter (#1022)
|
||||
* Add tweak support for user short level names. Thanks
|
||||
@MFornander (#996)
|
||||
* Add method to filesinks to return filename. Thanks
|
||||
@markniebur (#978)
|
||||
* rotating_sink: Add option to rotate on open. Thanks @pwm1234
|
||||
(#958)
|
||||
* Allow filename/line number at all levels. Add function name
|
||||
%! support. Thanks @possiblyhuman (#956)
|
||||
* New dups_filter sink -duplicate message removal sink. It
|
||||
will skip a message if previous one is identical and less
|
||||
than "max_skip_duration" old.
|
||||
* New '%o', '%i', '%u', '%O' format flags - Display elapsed
|
||||
time in mills/micros/nanos/seconds since previous message.
|
||||
* Some minor pattern formatter performance improvements.
|
||||
Fixes
|
||||
* Fix Wundef in os-inl.h. Thanks @AMS21 (#1189)
|
||||
* Fix use of old style cast in os-inl.h. Thanks @AMS21 (#1164)
|
||||
* Prevent NEAR and FAR macro definitions from leaking on
|
||||
Windows platforms. Thanks @PeterTh (#1142)
|
||||
* Fix syslog output. Thanks @mattiasj-axis (#1140)
|
||||
* Fix msg.time in daily_file_sink. Thanks @s-shin (#1129)
|
||||
* Fix missing include for null_mutex in rotating_file_sink.h.
|
||||
Thanks @casperevan (#1120)
|
||||
* Fix warning: redundant move in return statement. Thanks
|
||||
@MarkKoester (#1119)
|
||||
* Fix use of incomplete type in stdout sinks. Thanks
|
||||
@DanielChabrowski (#1118)
|
||||
* Fix deprecation warnings in filename_to_str and improve
|
||||
performance of wbuf_to_utf8buf. Thanks @sylveon (#1127)
|
||||
* Update README.md. Thanks @martinkrammer (#1057)
|
||||
* Remove extra semicolon. Thanks @Jerry-Ma (#1202)
|
||||
* Fix unexpected log macro expansion. Thanks @db-panda (#1055)
|
||||
* Namespace qualify stat functions. Thanks @p-po (#1045)
|
||||
* Fix typo in Android logger. Thanks @romainthomas (#994)
|
||||
* Remove unnecessary log function. Thanks @DanielChabrowski
|
||||
(#988)
|
||||
* Allow custom formatter in sink's ctor. Thanks
|
||||
@DanielChabrowski (#986)
|
||||
* Fix shadowed parameter. Thanks @ZGCDDoo (#984)
|
||||
* Update log_msg.h. Thanks @scribam (#969)
|
||||
* Fix #benchmark link error. Thanks @myd7349 (#962)
|
||||
* Fix typo in file_helper.h. Thanks @brridder (#955)
|
||||
|
||||
- Build as shared library and added pertinent subpackage
|
||||
|
||||
- Add systemd as build requirement
|
||||
|
||||
- Spec cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 27 06:11:03 UTC 2019 - Dead Mozay <dead_mozay@opensuse.org>
|
||||
|
||||
|
41
spdlog.spec
41
spdlog.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package spdlog
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,25 +16,27 @@
|
||||
#
|
||||
|
||||
|
||||
%define _sover 1
|
||||
Name: spdlog
|
||||
Version: 1.3.1
|
||||
Version: 1.4.2
|
||||
Release: 0
|
||||
Summary: C++ header only logging library
|
||||
Summary: C++ logging library
|
||||
License: MIT
|
||||
Group: Development/Languages/C and C++
|
||||
URL: https://github.com/gabime/spdlog
|
||||
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: gcc
|
||||
%if 0%{?suse_version} > 1500
|
||||
BuildRequires: gcc-c++ >= 8
|
||||
%else
|
||||
BuildRequires: gcc8-c++
|
||||
%endif
|
||||
BuildRequires: gcc
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(fmt)
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
|
||||
%description
|
||||
This is a packaged version of the gabime/spdlog header-only C++
|
||||
@@ -43,14 +45,22 @@ logging library available at Github.
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: lib%{name}%{_sover} = %{version}
|
||||
Requires: libstdc++-devel
|
||||
Requires: pkgconfig(fmt)
|
||||
Provides: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains C++ header files for developing
|
||||
applications that use %{name}.
|
||||
|
||||
%package -n lib%{name}%{_sover}
|
||||
Summary: C++ logging library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}%{_sover}
|
||||
This is a packaged version of the gabime/spdlog C++ logging library
|
||||
available at Github.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
find . -name '.gitignore' -exec rm {} \;
|
||||
@@ -60,11 +70,12 @@ sed -i -e "s,\r,," README.md LICENSE
|
||||
export CXX=g++
|
||||
test -x "$(type -p g++-8)" && export CXX=g++-8
|
||||
%cmake -G Ninja \
|
||||
-DSPDLOG_BUILD_TESTS=ON \
|
||||
-DSPDLOG_BUILD_TESTS=ON \
|
||||
-DSPDLOG_BUILD_BENCH=OFF \
|
||||
-DSPDLOG_FMT_EXTERNAL=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSPDLOG_BUILD_EXAMPLES=OFF \
|
||||
-DSPDLOG_BUILD_SHARED=ON \
|
||||
..
|
||||
%ninja_build
|
||||
|
||||
@@ -72,17 +83,23 @@ test -x "$(type -p g++-8)" && export CXX=g++-8
|
||||
%ninja_install -C build
|
||||
|
||||
%check
|
||||
export LD_LIBRARY_PATH="%{_builddir}/%{name}-%{version}/build"
|
||||
%ctest
|
||||
|
||||
%post -n lib%{name}%{_sover} -p /sbin/ldconfig
|
||||
|
||||
%postun -n lib%{name}%{_sover} -p /sbin/ldconfig
|
||||
|
||||
%files devel
|
||||
%if 0%{?sle_version} > 120200
|
||||
%license LICENSE
|
||||
%else
|
||||
%doc LICENSE
|
||||
%endif
|
||||
%doc README.md
|
||||
%{_includedir}/%{name}
|
||||
%{_libdir}/cmake/%{name}
|
||||
%{_libdir}/lib%{name}.so
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/cmake
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%files -n lib%{name}%{_sover}
|
||||
%{_libdir}/lib%{name}.so.%{_sover}*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user