Fix the placement of python3 subpackage for spectool to work

epel9
Parag Nemade 10 years ago
parent 4e4e71d32e
commit e0707a7799

@ -14,15 +14,6 @@ BuildArch: noarch
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python-setuptools 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 %description
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without
any extra programs or libraries, beyond what your OS provides. 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 Querying x86 CPUID register
%if 0%{?with_python3} %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} %description -n python3-%{module_name}
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without
any extra programs or libraries, beyond what your OS provides. any extra programs or libraries, beyond what your OS provides.

Loading…
Cancel
Save