14
0

Accepting request 1256229 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1256229
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-linux-procfs?expand=0&rev=7
This commit is contained in:
2025-03-26 20:23:39 +00:00
committed by Git OBS Bridge
2 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 26 12:30:06 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Use libalternatives instead of update-alternatives, bsc#1240096
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 29 00:41:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com> Wed Jan 29 00:41:51 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -16,6 +16,12 @@
# #
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-linux-procfs Name: python-linux-procfs
Version: 0.7.3 Version: 0.7.3
Release: 0 Release: 0
@@ -29,8 +35,13 @@ BuildRequires: %{python_module six}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-six Requires: python-six
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -38,7 +49,7 @@ BuildArch: noarch
Abstractions to extract information from the Linux kernel /proc files. Abstractions to extract information from the Linux kernel /proc files.
%prep %prep
%setup -q %autosetup -p1
%build %build
%pyproject_wheel %pyproject_wheel
@@ -51,6 +62,10 @@ Abstractions to extract information from the Linux kernel /proc files.
%check %check
%python_exec bitmasklist_test.py %python_exec bitmasklist_test.py
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative pflags
%post %post
%python_install_alternative pflags %python_install_alternative pflags