|
|
55887d |
Name: debugedit
|
|
|
55887d |
Version: 5.0
|
|
|
55887d |
Release: 3%{?dist}
|
|
|
55887d |
Summary: Tools for debuginfo creation
|
|
|
55887d |
License: GPLv3+ and GPLv2+ and LGPLv2+
|
|
|
55887d |
URL: https://sourceware.org/debugedit/
|
|
|
55887d |
Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
|
|
|
55887d |
Source1: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz.sig
|
|
|
55887d |
Source2: gpgkey-5C1D1AA44BE649DE760A.gpg
|
|
|
55887d |
|
|
|
55887d |
BuildRequires: make gcc
|
|
|
55887d |
BuildRequires: pkgconfig(libelf)
|
|
|
55887d |
BuildRequires: pkgconfig(libdw)
|
|
|
55887d |
BuildRequires: help2man
|
|
|
55887d |
BuildRequires: gnupg2
|
|
|
55887d |
|
|
|
55887d |
# For the testsuite.
|
|
|
55887d |
BuildRequires: autoconf
|
|
|
55887d |
BuildRequires: automake
|
|
|
55887d |
|
|
|
55887d |
# The find-debuginfo.sh script has a couple of tools it needs at runtime.
|
|
|
55887d |
# For strip_to_debug, eu-strip
|
|
|
55887d |
Requires: elfutils
|
|
|
55887d |
# For add_minidebug, readelf, awk, nm, sort, comm, objcopy, xz
|
|
|
55887d |
Requires: binutils, gawk, coreutils, xz
|
|
|
55887d |
# For find and xargs
|
|
|
55887d |
Requires: findutils
|
|
|
55887d |
# For do_file, gdb_add_index
|
|
|
55887d |
# We only need gdb-add-index, so suggest gdb-minimal (full gdb is also ok)
|
|
|
55887d |
Requires: /usr/bin/gdb-add-index
|
|
|
55887d |
Suggests: gdb-minimal
|
|
|
55887d |
# For run_job, sed
|
|
|
55887d |
Requires: sed
|
|
|
55887d |
# For dwz
|
|
|
55887d |
Requires: dwz
|
|
|
55887d |
# For append_uniq, grep
|
|
|
55887d |
Requires: grep
|
|
|
55887d |
|
|
|
55887d |
%global _hardened_build 1
|
|
|
55887d |
|
|
|
55887d |
Patch1: 0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
|
|
|
55887d |
|
|
|
55887d |
%description
|
|
|
55887d |
The debugedit project provides programs and scripts for creating
|
|
|
55887d |
debuginfo and source file distributions, collect build-ids and rewrite
|
|
|
55887d |
source paths in DWARF data for debugging, tracing and profiling.
|
|
|
55887d |
|
|
|
55887d |
It is based on code originally from the rpm project plus libiberty and
|
|
|
55887d |
binutils. It depends on the elfutils libelf and libdw libraries to
|
|
|
55887d |
read and write ELF files, DWARF data and build-ids.
|
|
|
55887d |
|
|
|
55887d |
%prep
|
|
|
55887d |
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
55887d |
%autosetup -p1
|
|
|
55887d |
|
|
|
55887d |
%build
|
|
|
55887d |
autoreconf -f -v -i
|
|
|
55887d |
%configure
|
|
|
55887d |
%make_build
|
|
|
55887d |
|
|
|
55887d |
%install
|
|
|
55887d |
%make_install
|
|
|
55887d |
# Temp symlink to make sure things don't break.
|
|
|
55887d |
cd %{buildroot}%{_bindir}
|
|
|
55887d |
ln -s find-debuginfo find-debuginfo.sh
|
|
|
55887d |
|
|
|
55887d |
%check
|
|
|
55887d |
# The testsuite should be zero fail.
|
|
|
55887d |
# It uses its own CFLAGS and LDFLAGS settings.
|
|
|
55887d |
sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal
|
|
|
55887d |
make check %{?_smp_mflags}
|
|
|
55887d |
|
|
|
55887d |
%files
|
|
|
55887d |
%license COPYING COPYING3 COPYING.LIB
|
|
|
55887d |
%doc README
|
|
|
55887d |
%{_bindir}/debugedit
|
|
|
55887d |
%{_bindir}/sepdebugcrcfix
|
|
|
55887d |
%{_bindir}/find-debuginfo
|
|
|
55887d |
%{_bindir}/find-debuginfo.sh
|
|
|
55887d |
%{_mandir}/man1/debugedit.1*
|
|
|
55887d |
%{_mandir}/man1/sepdebugcrcfix.1*
|
|
|
55887d |
%{_mandir}/man1/find-debuginfo.1*
|
|
|
55887d |
|
|
|
55887d |
%changelog
|
|
|
55887d |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.0-3
|
|
|
55887d |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
55887d |
Related: rhbz#1991688
|
|
|
55887d |
|
|
|
55887d |
* Tue Aug 3 2021 Mark Wielaard <mjw@redhat.com> - 5.0-2
|
|
|
55887d |
- Add testsuite fix for GCC 11.2.1
|
|
|
55887d |
|
|
|
55887d |
* Mon Jul 26 2021 Mark Wielaard <mjw@redhat.com> - 5.0-1
|
|
|
55887d |
- Upgrade to upstream 5.0 release.
|
|
|
55887d |
- Removes find-debuginfo .sh suffix.
|
|
|
55887d |
- This release still has a find-debuginfo.sh -> find-debuginfo symlink.
|
|
|
55887d |
|
|
|
55887d |
* Wed May 5 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.2-1
|
|
|
55887d |
- Update to upstream 0.2 pre-release. Adds documentation.
|
|
|
55887d |
|
|
|
55887d |
* Wed Apr 28 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-5
|
|
|
55887d |
- Add dist to Release. Use file dependency for /usr/bin/gdb-add-index.
|
|
|
55887d |
|
|
|
55887d |
* Tue Apr 27 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-4
|
|
|
55887d |
- Use numbered Sources and https.
|
|
|
55887d |
|
|
|
55887d |
* Mon Apr 26 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-3
|
|
|
55887d |
- Fix some rpmlint issues, add comments, add license and doc,
|
|
|
55887d |
gpg verification, use pkgconfig BuildRequires, enable _hardened_build
|
|
|
55887d |
|
|
|
55887d |
* Mon Mar 29 2021 Panu Matilainen <pmatilai@redhat.com>
|
|
|
55887d |
- Add pile of missing runtime utility dependencies
|
|
|
55887d |
|
|
|
55887d |
* Tue Mar 23 2021 Panu Matilainen <pmatilai@redhat.com>
|
|
|
55887d |
- Initial packaging
|