debugedit-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. Name: debugedit
  2. Version: 5.1
  3. Release: 1%{?_dist_release}
  4. Summary: Tools for debuginfo creation
  5. Group: system
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: GPLv3+ and GPLv2+ and LGPLv2+
  9. URL: https://sourceware.org/debugedit/
  10. Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
  11. Source1: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz.sig
  12. Source2: gpgkey-5C1D1AA44BE649DE760A.gpg
  13. Patch1: 0001-find-debuginfo-Check-files-are-writable-before-modif.patch
  14. Patch2: 0001-find-debuginfo-Fix-skip_mini-.gnu_debugdata-handling.patch
  15. Patch3: 0001-find-debuginfo-Make-return-from-do_file-explicit.patch
  16. Patch4: debugedit-5.1-binutils-tools-override.patch
  17. Patch5: 0001-debugedit-Handle-unused-.debug_str_offsets-entries.patch
  18. BuildRequires: make gcc
  19. BuildRequires: pkgconfig(libelf)
  20. BuildRequires: pkgconfig(libdw)
  21. BuildRequires: help2man
  22. BuildRequires: gnupg2
  23. BuildRequires: dwz
  24. # For debugedit build-id recomputation
  25. BuildRequires: xxhash-devel
  26. # For the testsuite.
  27. BuildRequires: autoconf
  28. BuildRequires: automake
  29. # The find-debuginfo.sh script has a couple of tools it needs at runtime.
  30. # For strip_to_debug, eu-strip
  31. Requires: elfutils
  32. # For add_minidebug, readelf, awk, nm, sort, comm, objcopy, xz
  33. Requires: binutils, gawk, coreutils, xz
  34. # For find and xargs
  35. Requires: findutils
  36. # For do_file, gdb_add_index
  37. # We only need gdb-add-index, so suggest gdb-minimal (full gdb is also ok)
  38. Requires: /usr/bin/gdb-add-index
  39. Suggests: gdb-minimal
  40. # For run_job, sed
  41. Requires: sed
  42. # For dwz
  43. Requires: dwz
  44. # For append_uniq, grep
  45. Requires: grep
  46. %global _hardened_build 1
  47. %description
  48. The debugedit project provides programs and scripts for creating
  49. debuginfo and source file distributions, collect build-ids and rewrite
  50. source paths in DWARF data for debugging, tracing and profiling.
  51. It is based on code originally from the rpm project plus libiberty and
  52. binutils. It depends on the elfutils libelf and libdw libraries to
  53. read and write ELF files, DWARF data and build-ids.
  54. %debug_package
  55. %prep
  56. %if 0
  57. %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
  58. %endif
  59. %autosetup -p1
  60. %build
  61. autoreconf -f -v -i
  62. %configure
  63. %make_build
  64. %install
  65. %make_install
  66. # Temp symlink to make sure things don't break.
  67. cd %{buildroot}%{_bindir}
  68. ln -s find-debuginfo find-debuginfo.sh
  69. %check
  70. # The testsuite should be zero fail.
  71. make check %{?_smp_mflags}
  72. %files
  73. %license COPYING COPYING3 COPYING.LIB
  74. %doc README
  75. %{_bindir}/debugedit
  76. %{_bindir}/sepdebugcrcfix
  77. %{_bindir}/find-debuginfo
  78. %{_bindir}/find-debuginfo.sh
  79. %{_mandir}/man1/debugedit.1*
  80. %{_mandir}/man1/sepdebugcrcfix.1*
  81. %{_mandir}/man1/find-debuginfo.1*
  82. %changelog
  83. * Wed Jun 4 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.1-1
  84. - new upstream release.
  85. * Sun May 19 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.0-8
  86. - added BR:dwz.
  87. * Tue May 07 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.0-7
  88. - imported patches from rawhide.
  89. * Thu Sep 15 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.0-6
  90. - initial build for Vine Linux.
  91. * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-5
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
  93. * Tue May 10 2022 Romanos Skiadas <rom.skiad@gmail.com> - 5.0-4
  94. - Remove CFLAGS/LDFLAGS sed as they are already set to "" by debugedit
  95. * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0-3
  96. - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
  97. * Fri Jul 30 2021 Mark Wielaard <mjw@fedoraproject.org> - 5.0-2
  98. - Add testsuite fix for GCC 11.2.1
  99. * Mon Jul 26 2021 Mark Wielaard <mjw@fedoraproject.org> - 5.0-1
  100. - Upgrade to upstream 5.0 release.
  101. * Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
  102. - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
  103. * Thu Jun 17 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.3-1
  104. - Update to upstream 0.3 pre-release. Removes find-debuginfo .sh suffix.
  105. - This release still has a find-debuginfo.sh -> find-debuginfo symlink.
  106. * Wed May 5 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.2-1
  107. - Update to upstream 0.2 pre-release. Adds documentation.
  108. * Wed Apr 28 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-5
  109. - Add dist to Release. Use file dependency for /usr/bin/gdb-add-index.
  110. * Tue Apr 27 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-4
  111. - Use numbered Sources and https.
  112. * Mon Apr 26 2021 Mark Wielaard <mjw@fedoraproject.org> - 0.1-3
  113. - Fix some rpmlint issues, add comments, add license and doc,
  114. gpg verification, use pkgconfig BuildRequires, enable _hardened_build
  115. * Mon Mar 29 2021 Panu Matilainen <pmatilai@redhat.com>
  116. - Add pile of missing runtime utility dependencies
  117. * Tue Mar 23 2021 Panu Matilainen <pmatilai@redhat.com>
  118. - Initial packaging