1
0
2018-12-04 17:19:06 +00:00
committed by Git OBS Bridge
parent bd05875090
commit 2bb75e9303

View File

@@ -16,24 +16,22 @@
# #
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-py-cpuinfo Name: python-py-cpuinfo
Version: 3.1.0 Version: 3.1.0
Release: 0 Release: 0
Summary: Get CPU info with pure Python Summary: Get CPU info with pure Python
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/workhorsy/py-cpuinfo URL: https://github.com/workhorsy/py-cpuinfo
Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-cpuinfo-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -80,8 +78,8 @@ These approaches are used for getting info:
%python_uninstall_alternative cpuinfo %python_uninstall_alternative cpuinfo
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc README.rst LICENSE ChangeLog %doc README.rst ChangeLog
%python_alternative %{_bindir}/cpuinfo %python_alternative %{_bindir}/cpuinfo
%{python_sitelib}/* %{python_sitelib}/*