1
0
Matej Cepl 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-%{**}}
%bcond_without tests
Name: python-py-cpuinfo
Version: 3.1.0
Release: 0
Summary: Get CPU info with pure Python
License: MIT
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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
@ -80,8 +78,8 @@ These approaches are used for getting info:
%python_uninstall_alternative cpuinfo
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE ChangeLog
%license LICENSE
%doc README.rst ChangeLog
%python_alternative %{_bindir}/cpuinfo
%{python_sitelib}/*