Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-puremagic for
openSUSE:Factory checked in at 2026-04-21 12:41:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-puremagic (Old)
and /work/SRC/openSUSE:Factory/.python-puremagic.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-puremagic"
Tue Apr 21 12:41:53 2026 rev:6 rq:1348258 version:2.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-puremagic/python-puremagic.changes
2026-04-16 17:25:47.940540327 +0200
+++
/work/SRC/openSUSE:Factory/.python-puremagic.new.11940/python-puremagic.changes
2026-04-21 12:42:08.135733900 +0200
@@ -1,0 +2,5 @@
+Mon Apr 20 16:20:55 UTC 2026 - Dirk Müller <[email protected]>
+
+- set reset_alternative for sle16 and newer
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-puremagic.spec ++++++
--- /var/tmp/diff_new_pack.UpziQE/_old 2026-04-21 12:42:09.067772624 +0200
+++ /var/tmp/diff_new_pack.UpziQE/_new 2026-04-21 12:42:09.071772791 +0200
@@ -16,8 +16,14 @@
#
-%{?sle15_python_module_pythons}
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
%global skip_python311 1
+%{?sle15_python_module_pythons}
Name: python-puremagic
Version: 2.2.0
Release: 0
@@ -33,8 +39,13 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
-Requires: alts
+%if %{with libalternatives}
BuildRequires: alts
+Requires: alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
%python_subpackages
%description
@@ -60,8 +71,11 @@
%postun
%python_uninstall_alternative puremagic
+%pre
+%python_libalternatives_reset_alternative puremagic
+
%files %{python_files}
-%doc AUTHORS.rst CHANGELOG.md README.rst
+%doc CHANGELOG.md README.rst
%license LICENSE
%python_alternative %{_bindir}/puremagic
%{python_sitelib}/puremagic