## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: debugbreak Summary: Break into the debugger programmatically Version: 1.0 Release: %autorelease URL: https://github.com/scottt/debugbreak License: BSD-2-Clause Source0: %{url}/archive/v%{version}/debugbreak-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make # For testing: BuildRequires: gdb # No compiled binaries are installed, so this would be empty. %global debug_package %{nil} %global common_description %{expand: debugbreak.h allows you to put breakpoints in your C/C++ code with a call to debug_break(). • Include one header file and insert calls to debug_break() in the code where you wish to break into the debugger. • Supports GCC, Clang and MSVC. • Works well on ARM, AArch64, i686, x86-64, POWER and has a fallback code path for other architectures. • Works like the DebugBreak() function provided by Windows and QNX.} %description %{common_description} %package devel Summary: %{summary} BuildArch: noarch # Header-only library Provides: debugbreak-static = %{version}-%{release} %description devel %{common_description} %prep %autosetup %build %set_build_flags %make_build -f GNUmakefile CFLAGS="${CFLAGS} -I." CXXFLAGS="${CXXFLAGS} -I." %install install -t '%{buildroot}%{_includedir}' -D -p -m 0644 debugbreak.h install -t '%{buildroot}%{_datadir}/debugbreak' -D -p -m 0644 debugbreak-gdb.py %check # Each of the test files contains a programmatic breakpoint. We skip “trap” # because it only tests __builtin_trap(), which is not provided by this library # (and the test hangs on ppc64le anyway). find test -type f -perm /0111 ! -name 'trap' | while read -r exe do # Script gdb to run the test file and record the backtrace. tee "${exe}-rpm-test.gdb" < 1.0-10 - Update License field to SPDX * Thu Jul 21 2022 Fedora Release Engineering 1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 16 2021 Benjamin A. Beasley 1.0-7 - Let the devel subpackage be noarch * Fri Sep 24 2021 Benjamin A. Beasley 1.0-6 - Reduce macro indirection in the spec file * Fri Sep 24 2021 Benjamin A. Beasley 1.0-5 - Simplify manual installation * Wed Jul 21 2021 Fedora Release Engineering 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 21 2021 Benjamin A. Beasley 1.0-3 - Drop EPEL workarounds * Mon Jun 21 2021 Benjamin A. Beasley - 1.0-1 - Initial package