dwz/dwz.spec

86 lines
2.1 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:37:38 -04:00
Name: dwz
2021-07-24 14:47:55 +08:00
Version: 0.14
Release: 4
2019-09-30 10:37:38 -04:00
Summary: A DWARF optimization and duplicate removal tool
License: GPLv2+ and GPLv3+
URL: https://sourceware.org/dwz/
2020-07-27 19:35:55 +08:00
Source0:https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz
2021-10-25 18:46:29 +08:00
BuildRequires:gcc gcc-c++ gdb elfutils-libelf-devel dejagnu
2019-09-30 10:37:38 -04:00
2022-01-25 11:17:42 +08:00
Patch1: testsuite-Handle-readelf-following-links-by-default.patch
2019-09-30 10:37:38 -04:00
%description
The package contains a program that attempts to optimize DWARF debugging
information contained in ELF shared libraries and ELF executables for size,
by replacing DWARF information representation with equivalent smaller
representation where possible and by reducing the amount of duplication
using techniques from DWARF standard appendix E - creating
DW_TAG_partial_unit compilation units (CUs) for duplicated information and
using DW_TAG_imported_unit to import it into each CU that needs it.
%package_help
%prep
2022-01-25 11:17:42 +08:00
%autosetup -n %{name} -p1
2019-09-30 10:37:38 -04:00
%build
2020-07-27 19:35:55 +08:00
make %{?_smp_mflags} CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
#%%make_build
2019-09-30 10:37:38 -04:00
%install
2020-07-27 19:35:55 +08:00
#%rm -rf %{buildroot}
make DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir} \
install
#%%make_install
2019-09-30 10:37:38 -04:00
%pre
%preun
%post
%postun
2020-07-27 19:35:55 +08:00
%check
make check
2019-09-30 10:37:38 -04:00
%files
%defattr(-,root,root,-)
%license COPYING COPYING3 COPYING.RUNTIME
%{_bindir}/dwz
%files help
%{_mandir}/man1/dwz*
%changelog
* Tue Oct 25 2022 yanglongkang <yanglongkang@h-partners.com> - 0.14-4
- rebuild for next release
2022-01-25 11:17:42 +08:00
* Tue Jan 25 2022 renhongxun <renhongxun@h-partner.com> - 0.14-3
- fix testsuite with community patch
2021-10-25 18:46:29 +08:00
* Mon Oct 25 2021 caodongxia <caodongxia@huawei.com> - 0.14-2
- Add buildRequire gcc-c++ and gdb
2021-07-24 14:47:55 +08:00
* Sat Jul 24 2021 shixuantong <shixuantong@huawei.com> - 0.14-1
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:update version to 0.14
* Mon Jul 27 2020 wenzhanli<wenzhanli2@huawei.com> - 0.13-1
2020-07-27 19:35:55 +08:00
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:version update 0.13
2019-09-30 10:37:38 -04:00
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 0.12-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add help package
* Thu Aug 15 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.12-10
- Package init