diff --git a/.devtoolset-8-dwz.metadata b/.devtoolset-8-dwz.metadata new file mode 100644 index 0000000..7f3bae3 --- /dev/null +++ b/.devtoolset-8-dwz.metadata @@ -0,0 +1 @@ +35642abd55abc717571d315a87758bfd419bd21a SOURCES/dwz-0.12.tar.bz2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9ec0b01 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dwz-0.12.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/dwz.spec b/SPECS/dwz.spec new file mode 100644 index 0000000..65b75e9 --- /dev/null +++ b/SPECS/dwz.spec @@ -0,0 +1,47 @@ +%{?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 +* Fri Jul 13 2018 Marek Polacek 0.12-1 +- new package