forked from pool/backward-cpp
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/backward-cpp?expand=0&rev=13
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package backward-cpp
|
|
#
|
|
# Copyright (c) 2022 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: backward-cpp
|
|
Version: 1.6
|
|
Release: 0
|
|
Summary: Stack trace printer for C++
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/bombela/backward-cpp
|
|
Source: https://github.com/bombela/backward-cpp/archive/v%{version}.tar.gz#/backward-cpp-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM - https://github.com/bombela/backward-cpp/commit/84bc203529c8f355308f13defe1b86e862f0ce0d
|
|
Patch1: fix-test-on-aarch64.patch
|
|
BuildRequires: cmake >= 3.5
|
|
BuildRequires: gcc-c++
|
|
|
|
%description
|
|
backward-cpp is a C++ library which prints stack traces on errors or
|
|
segmentation faults.
|
|
|
|
%package devel
|
|
Summary: Development files for backward-cpp
|
|
Group: Development/Libraries/C and C++
|
|
# backward-cpp is a header only library
|
|
BuildArch: noarch
|
|
|
|
%description devel
|
|
Development files for backward-cpp, a stack trace printer for C++.
|
|
|
|
%prep
|
|
%autosetup -p1 -n backward-cpp-%{version}
|
|
|
|
%build
|
|
# LIBDIR is only used for the CMake Config files, and
|
|
# <prefix>/share/<name*> is a valid location
|
|
%cmake -DCMAKE_INSTALL_LIBDIR=%{_datadir} -DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
%check
|
|
%ctest
|
|
|
|
%files devel
|
|
%license LICENSE.txt
|
|
%doc README.md
|
|
%{_includedir}/backward.hpp
|
|
%{_datadir}/backward
|
|
%{_datadir}/backward/BackwardConfig.cmake
|
|
|
|
%changelog
|