forked from pool/spdlog
* Support for external fmtlib versions 10.x (#2694). Thanks @H1X4Dev and @mguludag. * Better support for std::format (#2359, #2544, #2680, #2688). Thanks @eli-b , @sylveon and @bachittle. * Added new qt color sink. Logs to QTextEdit widget with some nice colors. * Update #include to a deprecated fmt header (#2545) .Thanks @kromain. * Fixes and impovements to dup_filter_sink (#2549, #2563). Thanks @zydxhs and @zhuyadong. * Fix unnecessary empty backtrace begin/end logs (#2568). Thanks @koldi. * Fixed variable name in msvc_sink (#2573). Thanks @naddu77. * Add system includes (SPDLOG_SYSTEM_INCLUDES) cmake option (#2575). Thanks @dpayne. * Improve dequeue of the async queue (@2587, #2588 ). Thanks @alokpr. * Fix tcp_client sink for FreeBSD (#2590). Thanks @segoon. * Support linux/musl libc (#2589). Thanks @kraj. * Support newlib C library configurations without tm_gmtoff field (#2600). Thanks @igrr. * Fix type of event id in win_eventlog_sink (#2598). Thanks @Tagl. * Fix -Wshadow warnings in spdlog::sinks::dist_sink (#2599). Thanks @robinlinden. * Spelling corrections (#2606, #2732). Thanks @albert-github and @zencatalyst. * Add sync() function to file_helper (#2343). Thanks @espkk. * Add a trivial callback_sink (#2610). Thanks @maghorbani. * Fix unexpected delimiter at start of line in to_hex formatter (#2627). Thanks @starsunyzl. * Fix MinGW build issue on example (#2642). Thanks @zEuS0390. * Add optional TID definition to the systemd sink (#2619). Thanks @chardin-cpi. * Added apply_logger_env_levels() (#2648, #2649). Thanks @afshinpir. * Support utf8 in msvc_sink (#2651). Thanks @Demonese. * Better handling of utf to wchar (66407f5). * Use catch v3 for tests (#2656, (#2659). Thanks @xvitaly and @seker. * New kafka sink (#2655). Thanks @vbirds and @SpriteOvO. * Fix os namespace in systemd_sink.h (#2668). Thanks @MyNameIsLame. * Enable systemd_sink tests in linux pipeline (#2669). Thanks @MyNameIsLame. * Fix stdout_sink_base::log's fflush() behaviour inconsistency (#2646). Thanks @25077667. * Fix for missing pthread_threadid_np in macOS < 10.6 and PowerPC (#2715). Thanks @barracuda156. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=83
111 lines
2.8 KiB
RPMSpec
111 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package spdlog
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: spdlog
|
|
%define lname libspdlog1_12
|
|
%define sover 1.12
|
|
Version: 1.12.0
|
|
Release: 0
|
|
Summary: C++ logging library
|
|
License: MIT
|
|
URL: https://github.com/gabime/spdlog
|
|
Source0: https://github.com/gabime/%{name}/archive/refs/tags/v%{version}.tar.gz
|
|
Source99: baselibs.conf
|
|
BuildRequires: cmake >= 3.10
|
|
%if 0%{?suse_version} > 1500
|
|
BuildRequires: gcc-c++ >= 8
|
|
%else
|
|
BuildRequires: gcc8-c++
|
|
%endif
|
|
BuildRequires: ninja
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: (pkgconfig(catch2) >= 3)
|
|
BuildRequires: pkgconfig(fmt) >= 8.0.0
|
|
BuildRequires: pkgconfig(libsystemd)
|
|
|
|
%description
|
|
A header-only/compiled, C++ logging library.
|
|
|
|
* Asynchronous mode (optional)
|
|
* Multi/Single threaded loggers.
|
|
* Various log targets (rotating/daily files, console, with colors,
|
|
syslog, custom target)
|
|
|
|
%package devel
|
|
Summary: Header files for spdlog
|
|
Requires: %{lname} = %{version}
|
|
Requires: libstdc++-devel
|
|
Requires: pkgconfig(fmt)
|
|
|
|
%description devel
|
|
The %{name}-devel package contains C++ header files for developing
|
|
applications that use %{name}.
|
|
|
|
%package -n %{lname}
|
|
Summary: C++ logging library
|
|
|
|
%description -n %{lname}
|
|
A header-only/compiled, C++ logging library.
|
|
|
|
* Asynchronous mode (optional)
|
|
* Multi/Single threaded loggers.
|
|
* Various log targets (rotating/daily files, console, with colors,
|
|
syslog, custom target)
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
find . -name .gitignore -delete
|
|
sed -i -e "s,\r,," README.md LICENSE
|
|
|
|
%build
|
|
export CXX=g++
|
|
test -x "$(type -p g++-8)" && export CXX=g++-8
|
|
%cmake -G Ninja \
|
|
-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
|
|
|
|
%install
|
|
%ninja_install -C build
|
|
|
|
%check
|
|
export LD_LIBRARY_PATH="$PWD/build"
|
|
%ctest
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
%files devel
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_includedir}/spdlog/
|
|
%{_libdir}/libspdlog.so
|
|
%{_libdir}/cmake/spdlog/
|
|
%{_libdir}/pkgconfig/spdlog.pc
|
|
|
|
%files -n %{lname}
|
|
%{_libdir}/libspdlog.so.*
|
|
|
|
%changelog
|