# # spec file for package spdlog # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: spdlog Version: 0.16.3 Release: 0 Summary: C++ header only logging library License: MIT Group: Development/Languages/C and C++ Url: https://github.com/gabime/spdlog/ Source0: https://github.com/gabime/spdlog/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: dos2unix BuildRequires: gcc-c++ BuildRequires: pkgconfig %description Very fast, header only, C++ logging library. * Very fast - performance is the primary goal. * Headers only. * No dependencies - just copy and use. * Feature rich call style using the excellent library. * ostream call style is supported too. * Extremely fast asynchronous mode (optional) - using lockfree queues and other tricks to reach millions of calls/sec. * Custom formatting. * Multi/Single threaded loggers. * Various log targets: * Rotating log files. * Daily log files. * Console logging. * Linux syslog. * Easily extendable with custom log targets (just implement a single function in the [sink](include/spdlog/sinks/sink.h) interface). * Severity based filtering - threshold levels can be modified in runtime as well as in compile time. %package devel Summary: C++ header only logging library Group: Development/Languages/C and C++ %description devel Very fast, header only, C++ logging library. * Very fast - performance is the primary goal. * Headers only. * No dependencies - just copy and use. * Feature rich call style using the excellent library. * ostream call style is supported too. * Extremely fast asynchronous mode (optional) - using lockfree queues and other tricks to reach millions of calls/sec. * Custom formatting. * Multi/Single threaded loggers. * Various log targets: * Rotating log files. * Daily log files. * Console logging. * Linux syslog. * Easily extendable with custom log targets (just implement a single function in the [sink](include/spdlog/sinks/sink.h) interface). * Severity based filtering - threshold levels can be modified in runtime as well as in compile time. %prep %setup -q dos2unix README.md %build %cmake make %{?_smp_mflags} %install %cmake_install %files devel %doc LICENSE README.md %{_includedir}/%{name} %{_libdir}/cmake/%{name} %{_libdir}/pkgconfig/%{name}.pc %changelog