import gcc-toolset-11-dwz-0.14-2.el8

This commit is contained in:
CentOS Sources 2021-06-22 14:10:29 +00:00 committed by Stepan Oksanichenko
commit 628381633c
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
2352468822ea8a66114c1ee9e1c8375360da6d91 SOURCES/dwz-0.14.tar.xz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/dwz-0.14.tar.xz

51
SPECS/dwz.spec Normal file
View File

@ -0,0 +1,51 @@
%global __python /usr/bin/python3
%{?scl:%scl_package gcc}
Summary: DWARF optimization and duplicate removal tool
Name: %{?scl_prefix}dwz
Version: 0.14
Release: 2%{?dist}
License: GPLv2+ and GPLv3+
# git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
# --prefix=dwz-%%{version}/ dwz-%%{version} \
# | bzip2 -9 > dwz-%%{version}.tar.bz2
Source: dwz-%{version}.tar.xz
BuildRequires: gcc, gcc-c++, gdb, elfutils-libelf-devel, dejagnu
BuildRequires: make
%{?scl:Requires:%scl_runtime}
%description
The dwz 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.
%prep
%setup -q -n dwz
%build
%make_build CFLAGS='%{optflags}' LDFLAGS='%{build_ldflags}' \
prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
%install
rm -rf %{buildroot}
%make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}
%check
make check
%files
%license COPYING COPYING3 COPYING.RUNTIME
%{_bindir}/dwz
%{_mandir}/man1/dwz.1*
%changelog
* Tue May 11 2021 Marek Polacek <polacek@redhat.com> 0.14-2
- update to dwz 0.14 (#1841830)
- add make check
- use make macros
* Wed May 20 2020 Marek Polacek <polacek@redhat.com> 0.12-1
- new package