commit f3b40f8b18cd7e88916e802b7137f4f6599c3f88 Author: James Antill Date: Mon Feb 27 13:04:18 2023 -0500 Import rpm: c8s diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe426e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/dwz-0.12.tar.bz2 +/dwz-0.12.tar.bz2 diff --git a/dwz.spec b/dwz.spec new file mode 100644 index 0000000..0bc3dd4 --- /dev/null +++ b/dwz.spec @@ -0,0 +1,48 @@ +%global __python /usr/bin/python3 +%{?scl:%scl_package gcc} +Summary: DWARF optimization and duplicate removal tool +Name: %{?scl_prefix}dwz +Version: 0.12 +Release: 1.1%{?dist} +License: GPLv2+ and GPLv3+ +Group: Development/Tools +# 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.bz2 +BuildRequires: elfutils-libelf-devel +%{?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-%{version} + +%build +make %{?_smp_mflags} CFLAGS='%{optflags}' prefix=%{_prefix} \ + mandir=%{_mandir} bindir=%{_bindir} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir} \ + install + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc COPYING COPYING3 COPYING.RUNTIME +%{_bindir}/dwz +%{_mandir}/man1/dwz.1* + +%changelog +* Wed May 20 2020 Marek Polacek 0.12-1 +- new package diff --git a/sources b/sources new file mode 100644 index 0000000..1f84b9a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (dwz-0.12.tar.bz2) = 3b6e7270cde09dd3cfb39e4400e9012e781fb92f9ad91e2f930ec0c5ed1df2331a2dbd03ad520132460670b242c9a5585a2183df8dfda8a0188ebcfa51f8996e