diff --git a/pyelftools.spec b/pyelftools.spec index 6b428d2..2ccd73a 100644 --- a/pyelftools.spec +++ b/pyelftools.spec @@ -17,6 +17,7 @@ and DWARF debugging information. Summary: %{summary} # https://github.com/eliben/pyelftools/issues/180 Provides: bundled(python3-construct) = 2.6 +BuildRequires: %{_bindir}/readelf BuildRequires: python3-devel BuildRequires: python3-setuptools BuildArch: noarch @@ -25,6 +26,9 @@ BuildArch: noarch %prep %setup -q +%ifnarch x86_64 +rm test/external_tools/readelf +%endif %build %{py3_build} @@ -40,12 +44,10 @@ popd %check %{__python3} test/run_all_unittests.py %{__python3} test/run_examples_test.py -%ifarch x86_64 # tests may fail because of differences in output-formatting # from binutils' readelf. See: # https://github.com/eliben/pyelftools/wiki/Hacking-guide#tests %{__python3} test/run_readelf_tests.py || : -%endif %files -n python3-%{name} %license LICENSE @@ -59,6 +61,7 @@ popd %changelog * Fri Oct 30 2020 Dominik Mierzejewski - 0.27-1 - update to 0.27 (#1891845) +- run readelf tests on all arches * Tue Jul 28 2020 Fedora Release Engineering - 0.26-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild