From 154ebf2da54d3d0e48dffd521824d14f4399fd3feabbf38d2963715ccee0133d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 8 Jul 2025 13:58:25 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyftpdlib?expand=0&rev=48 --- python-pyftpdlib.changes | 5 +++++ python-pyftpdlib.spec | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-pyftpdlib.changes b/python-pyftpdlib.changes index 9f414d5..f08e722 100644 --- a/python-pyftpdlib.changes +++ b/python-pyftpdlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 8 13:56:26 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Sat Aug 31 12:04:37 UTC 2024 - Dirk Müller diff --git a/python-pyftpdlib.spec b/python-pyftpdlib.spec index 9396aba..a0b21f7 100644 --- a/python-pyftpdlib.spec +++ b/python-pyftpdlib.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyftpdlib # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2016 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,6 +17,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-pyftpdlib Version: 1.5.10 @@ -33,11 +34,11 @@ BuildRequires: %{python_module pysendfile} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-pyOpenSSL -Requires(post): update-alternatives -Requires(postun): update-alternatives Recommends: python-pysendfile BuildArch: noarch %python_subpackages @@ -82,11 +83,8 @@ export TZ=GMT+1 $python -m pytest } -%post -%python_install_alternative ftpbench - -%postun -%python_uninstall_alternative ftpbench +%pre +%python_libalternatives_reset_alternative ftpbench %files %{python_files} %license LICENSE