Blame SPECS/dwz.spec

c60e3b
%global __python /usr/bin/python3
c60e3b
%{?scl:%scl_package gcc}
c60e3b
Summary: DWARF optimization and duplicate removal tool
c60e3b
Name: %{?scl_prefix}dwz
c60e3b
Version: 0.12
c60e3b
Release: 1.1%{?dist}
c60e3b
License: GPLv2+ and GPLv3+
c60e3b
Group: Development/Tools
c60e3b
# git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
c60e3b
#   --prefix=dwz-%{version}/ dwz-%{version} \
c60e3b
#   | bzip2 -9 > dwz-%{version}.tar.bz2
c60e3b
Source: dwz-%{version}.tar.bz2
c60e3b
BuildRequires: elfutils-libelf-devel
c60e3b
%{?scl:Requires:%scl_runtime}
c60e3b
c60e3b
%description
c60e3b
The dwz package contains a program that attempts to optimize DWARF
c60e3b
debugging information contained in ELF shared libraries and ELF executables
c60e3b
for size, by replacing DWARF information representation with equivalent
c60e3b
smaller representation where possible and by reducing the amount of
c60e3b
duplication using techniques from DWARF standard appendix E - creating
c60e3b
DW_TAG_partial_unit compilation units (CUs) for duplicated information
c60e3b
and using DW_TAG_imported_unit to import it into each CU that needs it.
c60e3b
c60e3b
%prep
c60e3b
%setup -q -n dwz-%{version}
c60e3b
c60e3b
%build
c60e3b
make %{?_smp_mflags} CFLAGS='%{optflags}' prefix=%{_prefix} \
c60e3b
  mandir=%{_mandir} bindir=%{_bindir}
c60e3b
c60e3b
%install
c60e3b
rm -rf %{buildroot}
c60e3b
make DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir} \
c60e3b
  install
c60e3b
c60e3b
%clean
c60e3b
rm -rf %{buildroot}
c60e3b
c60e3b
%files
c60e3b
%defattr(-,root,root)
c60e3b
%doc COPYING COPYING3 COPYING.RUNTIME
c60e3b
%{_bindir}/dwz
c60e3b
%{_mandir}/man1/dwz.1*
c60e3b
c60e3b
%changelog
c60e3b
* Wed May 20 2020 Marek Polacek <polacek@redhat.com> 0.12-1
c60e3b
- new package