# # spec file for package debugedit # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: debugedit Version: 5.1 Release: 1.2 Summary: Debuginfo extraction License: GPL-3.0-or-later Group: System/Packages #Git-Clone: https://sourceware.org/git/debugedit.git URL: https://www.sourceware.org/debugedit Source0: https://sourceware.org/ftp/%{name}/%{version}/%{name}-%{version}.tar.xz Source1: https://sourceware.org/ftp/%{name}/%{version}/%{name}-%{version}.tar.xz.sig Source2: %{name}.keyring Patch0: finddebuginfo.patch Patch1: finddebuginfo-absolute-links.patch Patch2: debugsubpkg.patch Patch3: debuglink.patch Patch4: debuginfo-mono.patch Patch5: workaround-missing-linked-file.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: help2man BuildRequires: pkgconfig(libdw) BuildRequires: pkgconfig(libelf) BuildRequires: pkgconfig(libxxhash) # /usr/bin/gdb-add-index is optional Suggests: gdb Requires: binutils Requires: coreutils Requires: dwz Requires: elfutils Requires: findutils Requires: gawk Requires: grep Requires: sed Requires: xz %description debugedit provides programs and scripts for creating debuginfo and source file distributions, collect build-ids and rewrite source paths in DWARF data for debugging, tracing and profiling. %prep %autosetup -p1 %build autoreconf -fiv %configure %make_build %install %make_install mkdir -p %{buildroot}/usr/lib/rpm mv %{buildroot}%{_bindir}/{find-debuginfo,sepdebugcrcfix} %{buildroot}/usr/lib/rpm ln -s ../../bin/debugedit %{buildroot}/usr/lib/rpm %files %license COPYING3 %doc README %{_bindir}/debugedit /usr/lib/rpm/debugedit /usr/lib/rpm/find-debuginfo /usr/lib/rpm/sepdebugcrcfix %{_mandir}/man1/debugedit.1%{?ext_man} %{_mandir}/man1/find-debuginfo.1%{?ext_man} %{_mandir}/man1/sepdebugcrcfix.1%{?ext_man} %changelog * Mon Nov 11 2024 Michal Suchanek - Update to version 5.1 (bsc#1233156) * Architecture support for hppa and loongarch * Switch to xxhash for buildid recomputation (much faster!) * find-debuginfo supports -v,--verbose and -q,--quiet * find-debuginfo passes -j down to dwz * debugedit now handles DWARF5 * debugedit handles compressed DWARF debug sections - Refresh debugsubpkg.patch finddebuginfo.patch - Remove upstreamed remove-bad-shift.patch - Add workaround-missing-linked-file.patch (boo#1233368) - Use -p1 with autosetup * Wed Nov 16 2022 Ludwig Nussel - don't hard require gdb (boo#1205344) * Sun Sep 4 2022 Andreas Stieger - finddebuginfo.patch: convert obsolete egrep to grep -E (boo#1203092) * Wed Jul 6 2022 Ludwig Nussel - move find-debuginfo and sepdebugcrcfix which are basically tools for use by rpmbuild only to /usr/lib/rpm where they used to be when debugedit was bundled with rpm. * Mon Jun 27 2022 Ludwig Nussel - refresh patches to apply clean - add git url - add requires * Wed Jun 30 2021 Callum Farmer - initial version 5.0 - Added patches from rpm: * finddebuginfo.patch * finddebuginfo-absolute-links.patch * debugsubpkg.patch * debuglink.patch * debuginfo-mono.patch - Add patch to fix bad shift: remove-bad-shift.patch