# # 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/ # %define user gabime Name: spdlog Version: 1.0.0 Release: 0 Summary: C++ header only logging library License: MIT Group: Development/Languages/C and C++ URL: https://github.com/%{user}/%{name}/ Source0: https://github.com/%{user}/%{name}/archive/v%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: pkgconfig %description This is a packaged version of the gabime/spdlog header-only C++ logging library available at Github. %package devel Summary: Development files for %{name} Group: Development/Languages/C and C++ Provides: %{name} = %{version}-%{release} Provides: %{name}-static = %{version}-%{release} Requires: libstdc++-devel %description devel The %{name}-devel package contains C++ header files for developing applications that use %{name}. %prep %autosetup find . -name '.gitignore' -exec rm {} \; sed -i -e "s,\r,," 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