diff --git a/python-pyftpdlib.changes b/python-pyftpdlib.changes index 9f414d5..842541a 100644 --- a/python-pyftpdlib.changes +++ b/python-pyftpdlib.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Aug 19 14:26:32 UTC 2025 - Markéta Machová + +- Convert to libalternatives on SLE-16-based and newer systems only + +------------------------------------------------------------------- +Thu Jul 10 08:53:50 UTC 2025 - Andreas Schwab + +- Set CIBUILDWHEEL to avoid spurious test failures + +------------------------------------------------------------------- +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..f5a661f 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,11 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif %{?sle15_python_module_pythons} Name: python-pyftpdlib Version: 1.5.10 @@ -36,10 +41,15 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pyOpenSSL -Requires(post): update-alternatives -Requires(postun): update-alternatives Recommends: python-pysendfile BuildArch: noarch +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %python_subpackages %description @@ -61,6 +71,7 @@ cp %{SOURCE1} pyftpdlib/test # Note: Do not remove tests. Other packages import them %check +export CIBUILDWHEEL=1 ignorebuild="--ignore build" %{python_expand # expand to python flavor, not to the binary name, then strip the trailing _ builddir=_build.$python_ @@ -88,6 +99,9 @@ $python -m pytest %postun %python_uninstall_alternative ftpbench +%pre +%python_libalternatives_reset_alternative ftpbench + %files %{python_files} %license LICENSE %doc README.rst