Accepting request 1035192 from devel:languages:python
- Remove rpmlint errors: * Use postun instead of preun for update-alternatives * Remove shebang from py files * More specific python_sitelib in %files * Remove python_module macro definition - Update to Release 9.0.0 * Fixed Bug #178: Changes to lscpu breaks parsing of cache info * Fixed Bug #152: CPU stepping, model, and family values are blank if 0 * Fixed Bug #177: Officially drop support for Python 2 * Fixed Bug #171: Replace Python 3.11 deprecated unittest.makeSuite * Fixed Bug #173: Fix lgtm.com alerts * Fixed Bug #165: Support Wheel * Fixed Bug #167: Add support for RISC-V OBS-URL: https://build.opensuse.org/request/show/1035192 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-cpuinfo?expand=0&rev=8
This commit is contained in:
commit
7b5e53e8ab
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:5f269be0e08e33fd959de96b34cd4aeeeacac014dd8305f70eb28d06de2345c5
|
|
||||||
size 99791
|
|
BIN
py-cpuinfo-9.0.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
py-cpuinfo-9.0.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 11 09:43:10 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove rpmlint errors:
|
||||||
|
* Use postun instead of preun for update-alternatives
|
||||||
|
* Remove shebang from py files
|
||||||
|
* More specific python_sitelib in %files
|
||||||
|
* Remove python_module macro definition
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 9 18:28:08 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to Release 9.0.0
|
||||||
|
* Fixed Bug #178: Changes to lscpu breaks parsing of cache info
|
||||||
|
* Fixed Bug #152: CPU stepping, model, and family values are blank if 0
|
||||||
|
* Fixed Bug #177: Officially drop support for Python 2
|
||||||
|
* Fixed Bug #171: Replace Python 3.11 deprecated unittest.makeSuite
|
||||||
|
* Fixed Bug #173: Fix lgtm.com alerts
|
||||||
|
* Fixed Bug #165: Support Wheel
|
||||||
|
* Fixed Bug #167: Add support for RISC-V
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 6 11:53:50 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Sun Jun 6 11:53:50 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-py-cpuinfo
|
# spec file for package python-py-cpuinfo
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,10 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
Name: python-py-cpuinfo
|
Name: python-py-cpuinfo
|
||||||
Version: 8.0.0
|
Version: 9.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library and tool to get CPU info
|
Summary: Python library and tool to get CPU info
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -30,7 +29,7 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(preun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -53,6 +52,8 @@ These approaches are used for getting info:
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n py-cpuinfo-%{version}
|
%setup -q -n py-cpuinfo-%{version}
|
||||||
|
# remove shebang
|
||||||
|
sed -i '1{ /^#!/d; }' cpuinfo/*.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -72,13 +73,14 @@ These approaches are used for getting info:
|
|||||||
%post
|
%post
|
||||||
%python_install_alternative cpuinfo
|
%python_install_alternative cpuinfo
|
||||||
|
|
||||||
%preun
|
%postun
|
||||||
%python_uninstall_alternative cpuinfo
|
%python_uninstall_alternative cpuinfo
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst ChangeLog
|
%doc README.rst ChangeLog
|
||||||
%python_alternative %{_bindir}/cpuinfo
|
%python_alternative %{_bindir}/cpuinfo
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/cpuinfo
|
||||||
|
%{python_sitelib}/py_cpuinfo-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user