From e0707a7799c4b54e1c678ab04c02586e8f839257 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Mon, 20 Oct 2014 16:27:17 +0530 Subject: [PATCH] Fix the placement of python3 subpackage for spectool to work --- python-cpuinfo.spec | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/python-cpuinfo.spec b/python-cpuinfo.spec index 5b4e67a..989d079 100644 --- a/python-cpuinfo.spec +++ b/python-cpuinfo.spec @@ -14,15 +14,6 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -%if 0%{?with_python3} -%package -n python3-%{module_name} -Summary: Getting CPU info -License: MIT -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%endif - - %description Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without any extra programs or libraries, beyond what your OS provides. @@ -36,6 +27,12 @@ These approaches are used for getting info: Querying x86 CPUID register %if 0%{?with_python3} +%package -n python3-%{module_name} +Summary: Getting CPU info +License: MIT +BuildRequires: python3-devel +BuildRequires: python3-setuptools + %description -n python3-%{module_name} Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without any extra programs or libraries, beyond what your OS provides.