14
0

Accepting request 1284238 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284238
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-cpuinfo?expand=0&rev=11
This commit is contained in:
2025-06-11 14:20:05 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 15:08:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 3 12:39:03 UTC 2025 - Markéta Machová <mmachova@suse.com> Tue Jun 3 12:39:03 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -17,6 +17,7 @@
%bcond_without tests %bcond_without tests
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-py-cpuinfo Name: python-py-cpuinfo
Version: 9.0.0 Version: 9.0.0
@@ -29,10 +30,10 @@ Source: https://files.pythonhosted.org/packages/source/p/py-cpuinfo/py-c
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): alts Requires: alts
Requires(postun): alts
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -73,11 +74,8 @@ sed -i '1{ /^#!/d; }' cpuinfo/*.py
%python_exec test_suite.py %python_exec test_suite.py
%endif %endif
%post %pre
%python_install_alternative cpuinfo %python_libalternatives_reset_alternative cpuinfo
%postun
%python_uninstall_alternative cpuinfo
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE