Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-chardet for openSUSE:Factory 
checked in at 2021-11-06 18:15:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-chardet (Old)
 and      /work/SRC/openSUSE:Factory/.python-chardet.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-chardet"

Sat Nov  6 18:15:44 2021 rev:29 rq:929673 version:4.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-chardet/python-chardet.changes    
2020-12-23 14:19:46.893639456 +0100
+++ /work/SRC/openSUSE:Factory/.python-chardet.new.1890/python-chardet.changes  
2021-11-06 18:18:07.528887489 +0100
@@ -1,0 +2,5 @@
+Thu Sep 30 08:18:47 UTC 2021 - Stefan Schubert <[email protected]>
+
+- Use libalternatives instead of update-alternatives.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-chardet.spec ++++++
--- /var/tmp/diff_new_pack.2JfwC0/_old  2021-11-06 18:18:07.940887702 +0100
+++ /var/tmp/diff_new_pack.2JfwC0/_new  2021-11-06 18:18:07.940887702 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-chardet
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,12 @@
 #
 
 
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
@@ -34,9 +40,14 @@
 Source0:        
https://files.pythonhosted.org/packages/source/c/chardet/chardet-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+BuildRequires:  python-rpm-macros >= 20210929
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
+%endif
 BuildArch:      noarch
 %if %{with test}
 BuildRequires:  %{python_module hypothesis}
@@ -95,6 +106,10 @@
 %endif
 
 %if !%{with test}
+%pre
+# If libalternatives is used: Removing old update-alternatives entries.
+%python_libalternatives_reset_alternative chardetect
+
 %post
 %python_install_alternative chardetect
 

Reply via email to