forked from pool/python-py-cpuinfo
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=6
This commit is contained in:
parent
bd05875090
commit
2bb75e9303
@ -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}/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user