2021-12-25 11:05:27 +08:00
|
|
|
Name: debugedit
|
|
|
|
|
Version: 5.0
|
2022-01-11 10:11:36 +08:00
|
|
|
Release: 2
|
2021-12-25 11:05:27 +08:00
|
|
|
Summary: Tools for debuginfo creation
|
|
|
|
|
License: GPL-2.0-or-later and LGPL-2.1-only and GPL-3.0-only
|
|
|
|
|
Group: Applications
|
|
|
|
|
URL: https://sourceware.org/debugedit/
|
|
|
|
|
Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
Source1: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz.sig
|
|
|
|
|
|
|
|
|
|
BuildRequires: help2man gnupg2 elfutils-devel make gcc autoconf automake
|
|
|
|
|
BuildRequires: pkgconfig(libelf)
|
|
|
|
|
BuildRequires: pkgconfig(libdw)
|
|
|
|
|
|
|
|
|
|
Requires: binutils gawk coreutils xz elfutils findutils
|
|
|
|
|
Requires: /usr/bin/gdb-add-index
|
|
|
|
|
Suggests: gdb-minimal
|
|
|
|
|
Requires: sed dwz grep
|
|
|
|
|
|
|
|
|
|
Patch0: tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
|
2022-01-11 10:11:36 +08:00
|
|
|
Patch1: find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
|
2021-12-25 11:05:27 +08:00
|
|
|
|
|
|
|
|
%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 -f -v -i
|
|
|
|
|
%configure
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
cd %{buildroot}%{_bindir}
|
|
|
|
|
ln -s find-debuginfo find-debuginfo.sh
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal
|
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license COPYING COPYING3 COPYING.LIB
|
|
|
|
|
%doc README
|
|
|
|
|
%{_bindir}/debugedit
|
|
|
|
|
%{_bindir}/sepdebugcrcfix
|
|
|
|
|
%{_bindir}/find-debuginfo
|
|
|
|
|
%{_bindir}/find-debuginfo.sh
|
|
|
|
|
%{_mandir}/man1/debugedit.1*
|
|
|
|
|
%{_mandir}/man1/sepdebugcrcfix.1*
|
|
|
|
|
%{_mandir}/man1/find-debuginfo.1*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-01-11 10:11:36 +08:00
|
|
|
* Tue Jan 11 2022 renhongxun <renhongxun@huawei.com> 5.0-2
|
|
|
|
|
- bugfix
|
|
|
|
|
|
2021-12-25 11:05:27 +08:00
|
|
|
* Sat Dec 25 2021 renhongxun <renhongxun@huawei.com>
|
|
|
|
|
- init package
|