From 7c95145ad906033076af9a462ce4f585476cb6e3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 7 Apr 2024 21:06:00 +0200 Subject: [PATCH] package created using the webbuild interface [release 0.20240803git.7ead8c1-1mamba;Wed Apr 03 2024] --- README.md | 2 ++ libbacktrace.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 libbacktrace.spec diff --git a/README.md b/README.md index 72e506f..3ce769f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libbacktrace +A C library that may be linked into a C/C++ program to produce symbolic backtraces. + diff --git a/libbacktrace.spec b/libbacktrace.spec new file mode 100644 index 0000000..632096a --- /dev/null +++ b/libbacktrace.spec @@ -0,0 +1,65 @@ +Name: libbacktrace +Version: 0.20240803git.7ead8c1 +Release: 1mamba +Summary: A C library that may be linked into a C/C++ program to produce symbolic backtraces +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ianlancetaylor/libbacktrace +Source: https://github.com/ianlancetaylor/libbacktrace.git/master@7ead8c1/libbacktrace-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +## AUTOBUILDREQ-END + +%description +A C library that may be linked into a C/C++ program to produce symbolic backtraces. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --enable-shared \ + --with-system-libunwind + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libbacktrace.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/backtrace-supported.h +%{_includedir}/backtrace.h +%{_libdir}/libbacktrace.so +%{_libdir}/libbacktrace.a +%doc README.md + +%changelog +* Wed Apr 03 2024 Silvan Calarco 0.20240803git.7ead8c1-1mamba +- package created using the webbuild interface