From 21f0858076e0ce29057d79b13483a3c4217a5a03 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 20 Sep 2026 11:16:01 +0000 Subject: automatic import of Backward --- Backward.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Backward.spec (limited to 'Backward.spec') diff --git a/Backward.spec b/Backward.spec new file mode 100644 index 0000000..b5ba8fc --- /dev/null +++ b/Backward.spec @@ -0,0 +1,56 @@ +%global debug_package %{nil} + +Name: Backward +Version: 1.3.0 +Release: 1%{?dist} +Summary: Beautiful stack trace pretty printer for C++ + +License: MIT +URL: https://github.com/bombela/backward-cpp +Source0: https://github.com/bombela/backward-cpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +Group: Development/Libraries +Packager: openEuler Builder + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: gcc +BuildRequires: make + +%description +Backward is a beautiful stack trace pretty printer for C++. +It supports stack unwinding and can display source code snippets +alongside the stack frames. Backward auto-detects available debug +info libraries (libdw, libbfd, libdwarf) at build time. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Packager: openEuler Builder +Provides: %{name}-static = %{version}-%{release} + +%description devel +Header files, static library and CMake integration files for %{name}. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +%cmake \ + -DBACKWARD_TESTS=OFF \ + -DBACKWARD_SHARED=OFF +%cmake_build + +%install +%cmake_install + +%files devel +%license LICENSE.txt +%doc README.md +%{_includedir}/backward.hpp +%{_libdir}/cmake/backward/ +%{_libdir}/libbackward.a + +%changelog +* Sun Sep 20 2026 openEuler Builder - 1.3.0-1 +- Initial package -- cgit v1.2.3