From 3b44d95f4a3e7fe078398e06fef3f0133527f686e150d707dbb7f01c802a4f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 09:25:09 +0000 Subject: [PATCH] Accepting request 808635 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808635 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-linux-procfs?expand=0&rev=4 --- python-linux-procfs.changes | 5 +++++ python-linux-procfs.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-linux-procfs.changes b/python-linux-procfs.changes index 3208b09..a7d51a1 100644 --- a/python-linux-procfs.changes +++ b/python-linux-procfs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 06:50:38 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Dec 11 09:21:25 UTC 2018 - Tomáš Chvátal diff --git a/python-linux-procfs.spec b/python-linux-procfs.spec index 3513f87..b239161 100644 --- a/python-linux-procfs.spec +++ b/python-linux-procfs.spec @@ -1,7 +1,7 @@ # # spec file for package python-linux-procfs # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,6 +30,8 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -44,14 +46,21 @@ Abstractions to extract information from the Linux kernel /proc files. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pflags %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec bitmasklist_test.py +%post +%python_install_alternative pflags + +%postun +%python_uninstall_alternative pflags + %files %{python_files} %{python_sitelib}/* -%python3_only %{_bindir}/pflags +%python_alternative %{_bindir}/pflags %license COPYING %changelog