3 %bcond_without tests # build without tests
5 Summary: Tools for debuginfo creation
6 Summary(pl.UTF-8): Narzędzia do tworzenia plików z danymi dla debuggerów
10 License: GPL v3+, GPL v2+
11 Group: Development/Tools
12 Source0: https://sourceware.org/ftp/debugedit/%{version}/%{name}-%{version}.tar.xz
13 # Source0-md5: 9961a1ae59b6417d27e3a646dc4078b7
14 Patch0: 0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
15 Patch1: no-exe-for-elf-debuginfo.patch
16 URL: https://sourceware.org/debugedit/
17 BuildRequires: autoconf >= 1.69
18 BuildRequires: automake >= 1:1.11
19 BuildRequires: elfutils-devel
20 BuildRequires: help2man
21 BuildRequires: pkgconfig
22 BuildRequires: tar >= 1:1.22
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Debugedit provides programs and scripts for creating debuginfo and
38 source file distributions, collect build-ids and rewrite source paths
39 in DWARF data for debugging, tracing and profiling.
41 %description -l pl.UTF-8
42 Ten pakiet zawiera programy i skrypty do tworzenia pakietów z plikami
43 debuginfo i źródłowymi, zbierania build-id oraz przepisywania ścieżek
44 do źródeł w danych DWARF w celu diagnozowania błędów, śledzenia i
45 profilowania oprogramowania.
57 --disable-silent-rules
60 %{?with_tests:%{__make} check}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_bindir}/debugedit
75 %attr(755,root,root) %{_bindir}/find-debuginfo
76 %attr(755,root,root) %{_bindir}/sepdebugcrcfix
77 %{_mandir}/man1/debugedit.1*
78 %{_mandir}/man1/find-debuginfo.1*
79 %{_mandir}/man1/sepdebugcrcfix.1*