spdlog/spdlog.spec

74 lines
2.3 KiB
RPMSpec

#
# 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
spdlog is a C++ logging library implemented in headers only. It
supports the ostream call style, has an (optional) asynchronous mode
with lockfree queues, allows for custom formatting, knows
single-/multi-threaded loggers, has various log targets, log
rotation, can be extended with custom log targets, and has
compile-time and run-time severity-based filtering.
%package devel
Summary: Development files for spdlog, a C++ header-only logging library
Group: Development/Languages/C and C++
%description devel
spdlog is a C++ logging library implemented in headers only. It
supports the ostream call style, has an (optional) asynchronous mode
with lockfree queues, allows for custom formatting, knows
single-/multi-threaded loggers, has various log targets, log
rotation, can be extended with custom log targets, and has
compile-time and run-time severity-based filtering.
%prep
%setup -q
dos2unix README.md
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%check
%ctest
%files devel
%doc README.md
%license LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%changelog