Blame SPECS/dwz.spec

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