summaryrefslogtreecommitdiff
path: root/Backward.spec
diff options
context:
space:
mode:
Diffstat (limited to 'Backward.spec')
-rw-r--r--Backward.spec56
1 files changed, 56 insertions, 0 deletions
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 <builder@openeuler.org>
+
+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 <builder@openeuler.org>
+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 <builder@openeuler.org> - 1.3.0-1
+- Initial package