%global date 20121105 %global hash c55cb50 %global checkout %{date}git%{hash} %global tarbase pmachata-dwlocstat-%{hash} Name: dwlocstat Version: 0.1 Release: 0.2.%{checkout}%{?dist} Summary: Tool for examining Dwarf location info coverage # The following files are dual-licensed: # dwarfstrings.h/.c, option.hh/.cc, iterators.hh # The rest is GPLv3+ only. License: GPLv3+ and LGPLv3+ URL: https://github.com/pmachata/dwlocstat # wget the following with --content-disposition Source0: https://github.com/pmachata/dwlocstat/tarball/%{hash}/%{tarbase}.tar.gz # 0.153 defines DW_OP_GNU_entry_value BuildRequires: elfutils-devel >= 0.153 %description dwlocstat is a tool for examining Dwarf location info coverage. It goes through DIEs of given binary's debug info that represent variables and function parameters. For each such DIE, it computes coverage of that DIE's range by location expressions. %prep %setup -q -n %{tarbase} %build make %{?_smp_mflags} dwlocstat \ CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_bindir} install -p -m 755 -t $RPM_BUILD_ROOT%{_bindir} dwlocstat install -d $RPM_BUILD_ROOT%{_mandir}/man1 install -p -m 644 -t $RPM_BUILD_ROOT%{_mandir}/man1 %{name}.1 %check ./dwlocstat ./dwlocstat %files %doc COPYING COPYING-LGPLV3 README %{_bindir}/dwlocstat %{_mandir}/man1/%{name}.1* %changelog * Mon Nov 5 2012 Petr Machata - 0.1-0.2.20121105gitc55cb50 - Clarify licensing - Update to a new upstream, which unbundles several elfutils files * Fri Oct 12 2012 Petr Machata - 0.1-0.1.20121012git4557c3e - Initial packaging