debugedit/debugedit.spec

108 lines
3.2 KiB
RPMSpec
Raw Normal View History

2021-12-25 11:05:27 +08:00
Name: debugedit
Version: 5.0
2024-12-12 14:39:18 +08:00
Release: 9
2021-12-25 11:05:27 +08:00
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: help2man gnupg2 elfutils-devel make gcc autoconf automake
BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libdw)
Requires: binutils gawk coreutils xz elfutils findutils
Requires: /usr/bin/gdb-add-index
Suggests: gdb-minimal
Requires: sed dwz grep
Patch0: tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
Patch1: find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
2021-12-25 11:05:27 +08:00
2022-10-21 17:29:41 +08:00
Patch6000: backport-Fix-u-option.patch
2024-12-12 14:39:18 +08:00
Patch6001: backport-tests-Ignore-stderr-output-of-readelf-in-debugedit.a.patch
Patch6002: backport-find-debuginfo-remove-duplicate-filenames-when-creat.patch
Patch6003: backport-find-debuginfo.sh-Exit-with-real-exit-status-in-para.patch
Patch6004: backport-find-debuginfo-Check-files-are-writable-before-modif.patch
2023-01-09 19:18:13 +08:00
Patch9000: add-loongarch-support-for-debugedit.patch
2022-10-21 17:29:41 +08:00
2021-12-25 11:05:27 +08:00
%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
%setup -q
%patch0 -p1
%patch1 -p1
%patch6000 -p1
2024-12-12 14:39:18 +08:00
%patch6001 -p1
%patch6002 -p1
%patch6003 -p1
%patch6004 -p1
%ifarch loongarch64
%patch9000 -p1
%endif
2021-12-25 11:05:27 +08:00
%build
autoreconf -f -v -i
%configure
%make_build
%install
%make_install
cd %{buildroot}%{_bindir}
ln -s find-debuginfo find-debuginfo.sh
2022-11-08 17:22:26 +08:00
cd %{buildroot}
mkdir -p %{buildroot}%{_rpmconfigdir}
ln -s %{_bindir}/find-debuginfo %{buildroot}%{_rpmconfigdir}/find-debuginfo.sh
ln -s %{_bindir}/debugedit %{buildroot}%{_rpmconfigdir}/debugedit
2021-12-25 11:05:27 +08:00
%check
sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal
make check %{?_smp_mflags}
%clean
%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*
2022-11-08 17:22:26 +08:00
%{_rpmconfigdir}/find-debuginfo.sh
%{_rpmconfigdir}/debugedit
2021-12-25 11:05:27 +08:00
%changelog
2024-12-12 14:39:18 +08:00
* Thu Dec 12 2024 hugel <gengqihu2@h-partners.com> - 5.0-9
- backport patches from upstream
* Wed Nov 6 2024 laokz <zhangkai@iscas.ac.cn> - 5.0-8
- backport upstream patch to avoid tests failure
* 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.
2023-01-09 19:18:13 +08:00
* 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
2022-11-08 17:22:26 +08:00
* 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
2022-10-21 17:29:41 +08:00
* 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
2021-12-25 11:05:27 +08:00
* Sat Dec 25 2021 renhongxun <renhongxun@huawei.com>
- init package