[dwlocstat] Initial import

Petr Machata pmachata at fedoraproject.org
Mon Dec 10 19:46:48 UTC 2012


commit 67fa4b0da9f66f6e7deeb6d580c66fc97df154dc
Author: Petr Machata <pmachata at redhat.com>
Date:   Mon Dec 10 20:45:57 2012 +0100

    Initial import

 .gitignore     |    1 +
 dwlocstat.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..93bcafa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pmachata-dwlocstat-c55cb50.tar.gz
diff --git a/dwlocstat.spec b/dwlocstat.spec
new file mode 100644
index 0000000..701ea5d
--- /dev/null
+++ b/dwlocstat.spec
@@ -0,0 +1,55 @@
+%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 <pmachata at redhat.com> - 0.1-0.2.20121105gitc55cb50
+- Clarify licensing
+- Update to a new upstream, which unbundles several elfutils files
+
+* Fri Oct 12 2012 Petr Machata <pmachata at redhat.com> - 0.1-0.1.20121012git4557c3e
+- Initial packaging
diff --git a/sources b/sources
index e69de29..359aedf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fb25754c3b21df3d34d64f915c922f8b  pmachata-dwlocstat-c55cb50.tar.gz


More information about the scm-commits mailing list