blob: 48517df3aa3aeabb9914c430f4d728a85030c494 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
Name: debugedit
Version: 5.1
Release: 1
Summary: Tools for debuginfo creation
License: GPL-2.0-or-later and LGPL-2.1-only and GPL-3.0-only
Group: Applications
URL: https://sourceware.org/debugedit/
Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
Source1: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz.sig
BuildRequires: gcc make
BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libdw)
BuildRequires: pkgconfig(libxxhash) >= 0.8.0
BuildRequires: /usr/bin/awk
BuildRequires: /usr/bin/dwz
BuildRequires: /usr/bin/help2man
BuildRequires: /usr/bin/ld
BuildRequires: /usr/bin/ln
BuildRequires: /usr/bin/readelf
BuildRequires: /usr/bin/sed
Requires: binutils gawk coreutils xz elfutils findutils
Requires: /usr/bin/gdb-add-index
Suggests: gdb-minimal
Requires: sed dwz grep
Patch1: find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
%description
Debugedit provides programs and scripts for creating debuginfo and
source file distributions, collect build-ids and rewrite source
paths in DWARF data for debugging, tracing and profiling.
%prep
%autosetup -p1 -n %{name}-%{version}
%build
%configure
%make_build
%install
%make_install
cd %{buildroot}%{_bindir}
ln -s find-debuginfo find-debuginfo.sh
cd %{buildroot}
mkdir -p %{buildroot}%{_rpmconfigdir}
ln -s %{_bindir}/find-debuginfo %{buildroot}%{_rpmconfigdir}/find-debuginfo.sh
ln -s %{_bindir}/debugedit %{buildroot}%{_rpmconfigdir}/debugedit
%check
sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal
%make_build check
%files
%license COPYING COPYING3 COPYING.LIB
%doc README
%{_bindir}/debugedit
%{_bindir}/sepdebugcrcfix
%{_bindir}/find-debuginfo
%{_bindir}/find-debuginfo.sh
%{_mandir}/man1/debugedit.1*
%{_mandir}/man1/sepdebugcrcfix.1*
%{_mandir}/man1/find-debuginfo.1*
%{_rpmconfigdir}/find-debuginfo.sh
%{_rpmconfigdir}/debugedit
%changelog
* Sat Nov 02 2024 Funda Wang <fundawang@yeah.net> - 5.1-1
- update to 5.1
* Tue May 28 2024 shaojiansong <shaojiansong@kylinos.cn> - 5.0-7
- Fix lack of loongarch64 patch files in src.rpm package which is build from any platform.
* Fri Jan 6 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 5.0-6
- add loongarch64 support for debugedit
* Mon Nov 14 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 5.0-5
- Skip some unsupported tests for loongarch
* Tue Nov 08 2022 renhongxun <renhongxun@h-partners.com> 5.0-4
- make it successfully to find debugedit when running /usr/lib/rpm/find-debuginfo.sh
* Fri Oct 21 2022 renhongxun <renhongxun@h-partners.com> 5.0-3
- fix -u option
* Tue Jan 11 2022 renhongxun <renhongxun@huawei.com> 5.0-2
- bugfix
* Sat Dec 25 2021 renhongxun <renhongxun@huawei.com>
- init package
|