1
0

Accepting request 659834 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/659834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-cpuinfo?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2018-12-24 10:46:28 +00:00 committed by Git OBS Bridge
commit 71d8bc01c4
2 changed files with 21 additions and 16 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Dec 19 00:06:15 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summary. Trim build process from description.
-------------------------------------------------------------------
Tue Dec 4 12:52:00 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Wed Apr 19 15:46:57 UTC 2017 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-py-cpuinfo
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,38 +12,33 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%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
Summary: Python library and tool to get CPU info
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
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work
without any extra programs or libraries, beyond what your OS
provides. It does not require any compilation(C/C++, assembly, et
cetera) to use. It works on Linux, OS X, Windows, BSD, Solaris,
Cygwin, Haiku, and BeagleBone. It currently only works on X86 and some
ARM CPUs.
provides. It supports Linux, OS X, Windows, BSD, Solaris,
Cygwin, Haiku, and BeagleBone, but only on x86 and some ARM CPUs.
These approaches are used for getting info:
1. Windows Registry (Windows)
@ -81,8 +76,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}/*