commit d01ed1ff7001e26a2137223d4192548f7b34428044c67b182ac68f6a0b496d19 Author: Marcus Meissner Date: Mon Feb 1 10:40:43 2016 +0000 Accepting request 357096 from home:msmeissn new package, c++ header based logging OBS-URL: https://build.opensuse.org/request/show/357096 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/spdlog-1.0.0.tar.bz2 b/spdlog-1.0.0.tar.bz2 new file mode 100644 index 0000000..0a7f9c2 --- /dev/null +++ b/spdlog-1.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e101a7b8bfa868d2a3035924acaf227ae85729f7c589055e29ba9e39e227f7d +size 110108 diff --git a/spdlog.changes b/spdlog.changes new file mode 100644 index 0000000..ee0be65 --- /dev/null +++ b/spdlog.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 1 08:02:12 UTC 2016 - meissner@suse.com + +- a c++ header only logging library + diff --git a/spdlog.spec b/spdlog.spec new file mode 100644 index 0000000..6e7277e --- /dev/null +++ b/spdlog.spec @@ -0,0 +1,91 @@ +# +# spec file for package hello +# +# Copyright (c) 2014 SUSE LINUX Products 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 +Summary: C++ header only logging library +License: MIT +Group: Development/Languages/C and C++ +Version: 1.0.0 +Release: 0 +BuildRequires: cmake gcc-c++ +Url: https://github.com/gabime/spdlog/ +# they have not formally tagged or released something, but CMakeLists.txt says 1.0.0 +Source0: spdlog-1.0.0.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%package devel +Summary: C++ header only logging library +Group: Development/Languages/C and C++ + +%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. + +%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 + +%build +%cmake +make + +%install +%cmake_install + +%files devel +%defattr(-, root, root) +%doc LICENSE README.md +/usr/include/* +%dir /usr/lib/cmake/spdlog +%dir /usr/lib/cmake +/usr/lib/cmake/spdlog/*.cmake + +%changelog