Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-slugify for
openSUSE:Factory checked in at 2025-08-25 20:36:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-slugify (Old)
and /work/SRC/openSUSE:Factory/.python-python-slugify.new.30751 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-slugify"
Mon Aug 25 20:36:28 2025 rev:15 rq:1301264 version:8.0.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-slugify/python-python-slugify.changes
2025-06-11 16:19:50.799756837 +0200
+++
/work/SRC/openSUSE:Factory/.python-python-slugify.new.30751/python-python-slugify.changes
2025-08-25 20:37:11.725821983 +0200
@@ -1,0 +2,5 @@
+Mon Aug 25 12:29:33 UTC 2025 - Markéta Machová <[email protected]>
+
+- Convert to libalternatives on SLE-16-based and newer systems
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-slugify.spec ++++++
--- /var/tmp/diff_new_pack.JpIaSf/_old 2025-08-25 20:37:12.197841757 +0200
+++ /var/tmp/diff_new_pack.JpIaSf/_new 2025-08-25 20:37:12.201841924 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-python-slugify
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,13 @@
#
-%{?sle15_python_module_pythons}
%define short_name python-slugify
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+%{?sle15_python_module_pythons}
Name: python-%{short_name}
Version: 8.0.4
Release: 0
@@ -32,11 +37,16 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-text-unidecode >= 1.3
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
Suggests: python-Unidecode >= 1.1.1
Conflicts: python-awesome-slugify
BuildArch: noarch
+%if %{with libalternatives}
+BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%python_subpackages
%description
@@ -62,6 +72,9 @@
%postun
%python_uninstall_alternative slugify
+%pre
+%python_libalternatives_reset_alternative slugify
+
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE