[python-cpuinfo] Fix the placement of python3 subpackage for spectool to work
Parag Nemade
pnemade at fedoraproject.org
Mon Oct 20 10:57:46 UTC 2014
commit e0707a7799c4b54e1c678ab04c02586e8f839257
Author: Parag Nemade <pnemade at redhat.com>
Date: Mon Oct 20 16:27:17 2014 +0530
Fix the placement of python3 subpackage for spectool to work
python-cpuinfo.spec | 15 ++++++---------
1 files 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.
More information about the scm-commits
mailing list