debugedit-vl.spec 4.8 KB

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