Name: pyelftools Version: 0.21 Release: 2%{?dist} Summary: Pure-Python library for parsing and analyzing ELF files Group: Development/Libraries License: Public Domain URL: https://bitbucket.org/eliben/pyelftools Source0: https://pypi.python.org/packages/source/p/pyelftools/pyelftools-%{version}.tar.gz Patch0: pyelftools-0.21-construct.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-construct Requires: python-construct %description Pure-Python library for parsing and analyzing ELF files and DWARF debugging information. %prep %setup -q %patch0 -p1 # remove bundled construct lib rm -rf elftools/construct %build %{__python} setup.py build %install %{__python} setup.py install -O1 --root %{buildroot} mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/pyreadelf %check %{__python} test/run_all_unittests.py %{__python} test/run_examples_test.py # fails in koji for some reason %{__python} test/run_readelf_tests.py || : %files %doc CHANGES LICENSE %{python_sitelib}/elftools %{python_sitelib}/pyelftools-%{version}-*.egg-info %{_bindir}/pyreadelf %changelog * Sat Jun 08 2013 Terje Rosten - 0.21-2 - Remove bundled construct lib * Thu May 09 2013 Terje Rosten - 0.21-1 - 0.21 - Run test - Updated source url - Drop defattr * Wed Jun 06 2012 Kushal Das 0.20-1 - Intial package