diff --git a/python-py-cpuinfo.changes b/python-py-cpuinfo.changes index 060824d..d85448c 100644 --- a/python-py-cpuinfo.changes +++ b/python-py-cpuinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 4 16:31:12 UTC 2019 - schwab@suse.de + +- remove-arch-check.patch: disable arch check that breaks the testsuite + ------------------------------------------------------------------- Wed Dec 19 00:06:15 UTC 2018 - Jan Engelhardt diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index c449152..73aae3a 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-cpuinfo # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/workhorsy/py-cpuinfo Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz +Patch: remove-arch-check.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -53,6 +54,7 @@ These approaches are used for getting info: %prep %setup -q -n py-cpuinfo-%{version} +%patch -p1 %build %python_build diff --git a/remove-arch-check.patch b/remove-arch-check.patch new file mode 100644 index 0000000..bf0e378 --- /dev/null +++ b/remove-arch-check.patch @@ -0,0 +1,12 @@ +Index: py-cpuinfo-3.1.0/cpuinfo/cpuinfo.py +=================================================================== +--- py-cpuinfo-3.1.0.orig/cpuinfo/cpuinfo.py ++++ py-cpuinfo-3.1.0/cpuinfo/cpuinfo.py +@@ -1783,6 +1783,7 @@ def get_cpu_info(): + + # Make sure we are running on a supported system + def _check_arch(): ++ return + arch, bits = parse_arch(DataSource.raw_arch_string) + if not arch in ['X86_32', 'X86_64', 'ARM_7', 'ARM_8', 'PPC_64']: + raise Exception("py-cpuinfo currently only works on X86 and some PPC and ARM CPUs.")