%bcond_without check %global forgeurl https://github.com/ianlancetaylor/libbacktrace %global date 20231201 %global commit 14818b7783eeb9a56c3f0fca78cefd3143f8c5f6 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %forgemeta Name: libbacktrace Version: 0.0.0 Release: %autorelease Summary: A C library that may be linked into a C/C++ program to produce symbolic backtraces License: GPL-2.0-only URL: %{forgeurl} Source0: %{forgesource} #Patch0: https://github.com/ianlancetaylor/libbacktrace/pull/92.patch Patch1: https://github.com/ianlancetaylor/libbacktrace/pull/99.patch BuildRequires: gcc-c++ BuildRequires: automake BuildRequires: libtool BuildRequires: libunwind-devel %description %{summary}. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %forgeautosetup -p1 %build autoreconf -fi %configure \ --disable-static \ --enable-shared \ --with-system-libunwind %make_build %install %make_install %if %{with check} %check make check %endif %files %license %doc README.md %{_libdir}/libbacktrace.so.0* %files devel %{_includedir}/backtrace-supported.h %{_includedir}/backtrace.h %{_libdir}/libbacktrace.so %changelog %autochangelog