diff --git a/python-cpuinfo.spec b/python-cpuinfo.spec index ac71486..1767fff 100644 --- a/python-cpuinfo.spec +++ b/python-cpuinfo.spec @@ -65,9 +65,8 @@ These approaches are used for getting info: %setup -q -n py-%{srcname}-%{version} rm -rf *.egg-info -#sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py +sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py -#find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|' %build %py2_build @@ -79,10 +78,8 @@ cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3 %py2_install %check -# tests are failing hence disable them, reported upstream -# https://github.com/workhorsy/py-cpuinfo/issues/53 -#%{__python2} setup.py test -#%{__python3} setup.py test +%{__python2} setup.py test +%{__python3} setup.py test %files -n python2-%{srcname} %doc README.rst ChangeLog