Blame SPECS/debugedit.spec

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