From eb7d1402780d8334db7aaf9ff65810e8103faee0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 28 Jun 2022 16:00:44 +0000 Subject: [PATCH] Auto sync2gitlab import of gcc-toolset-12-dwz-0.14-2.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - dwz.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 dwz.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..17e66e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dwz-0.14.tar.xz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dwz.spec b/dwz.spec new file mode 100644 index 0000000..c554c09 --- /dev/null +++ b/dwz.spec @@ -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 0.14-2 +- update to dwz 0.14 (#1841830) +- add make check +- use make macros + +* Wed May 20 2020 Marek Polacek 0.12-1 +- new package diff --git a/sources b/sources new file mode 100644 index 0000000..00bbdcd --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dwz-0.14.tar.xz) = 62c39f79723ca99305dbb08d1d24a17699b9a84dd98c30904103da116831b1253bf1edbfb905c76fdc4d48305bd1ea0046314c5619209c40a1e624b8ae4908b1