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.