From bd05875090461d70e1130c3c48916712efadc73647b71cd1242164f2ea276eb8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:49:41 +0000 Subject: [PATCH 1/3] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=5 --- python-py-cpuinfo.changes | 5 +++++ python-py-cpuinfo.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-py-cpuinfo.changes b/python-py-cpuinfo.changes index 09cd7ad..aaefa28 100644 --- a/python-py-cpuinfo.changes +++ b/python-py-cpuinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:52:00 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Wed Apr 19 15:46:57 UTC 2017 - toddrme2178@gmail.com diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index 9d5bde9..cb51970 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -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,7 +12,7 @@ # 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/ # @@ -27,10 +27,9 @@ License: MIT Group: Development/Languages/Python 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 From 2bb75e930370d1a3b097a04603df207048da7285f429fa346f8b13be41138edb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:19:06 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=6 --- python-py-cpuinfo.spec | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index cb51970..2c45c23 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -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}/* From 53da45ad9f78ce4b556273929c282ceaffef1eed4e1aef96342ea9207ac979bf Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 19 Dec 2018 04:00:10 +0000 Subject: [PATCH 3/3] Accepting request 659793 from home:jengelh:branches:devel:languages:python - Use noun phrase in summary. Trim build process from description. OBS-URL: https://build.opensuse.org/request/show/659793 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=7 --- python-py-cpuinfo.changes | 5 +++++ python-py-cpuinfo.spec | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/python-py-cpuinfo.changes b/python-py-cpuinfo.changes index aaefa28..060824d 100644 --- a/python-py-cpuinfo.changes +++ b/python-py-cpuinfo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 19 00:06:15 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. Trim build process from description. + ------------------------------------------------------------------- Tue Dec 4 12:52:00 UTC 2018 - Matej Cepl diff --git a/python-py-cpuinfo.spec b/python-py-cpuinfo.spec index 2c45c23..c449152 100644 --- a/python-py-cpuinfo.spec +++ b/python-py-cpuinfo.spec @@ -21,7 +21,7 @@ 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 @@ -37,10 +37,8 @@ BuildArch: noarch %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)