Hello community,
here is the log from the commit of package python-cchardet for openSUSE:Factory
checked in at 2020-06-10 00:44:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cchardet (Old)
and /work/SRC/openSUSE:Factory/.python-cchardet.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cchardet"
Wed Jun 10 00:44:29 2020 rev:2 rq:809825 version:2.1.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cchardet/python-cchardet.changes
2019-12-23 22:45:42.134029059 +0100
+++
/work/SRC/openSUSE:Factory/.python-cchardet.new.3606/python-cchardet.changes
2020-06-10 00:44:33.170355136 +0200
@@ -1,0 +2,5 @@
+Wed May 27 09:36:37 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cchardet.spec ++++++
--- /var/tmp/diff_new_pack.YCSvin/_old 2020-06-10 00:44:34.374358142 +0200
+++ /var/tmp/diff_new_pack.YCSvin/_new 2020-06-10 00:44:34.374358142 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-cchardet
#
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(uchardet)
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
%python_subpackages
%description
@@ -44,12 +46,19 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/cchardetect
%python_expand %fdupes %{buildroot}%{$python_sitearch}
+%post
+%python_install_alternative cchardetect
+
+%postun
+%python_uninstall_alternative cchardetect
+
%files %{python_files}
%license COPYING
%doc README.rst
-%python3_only %{_bindir}/cchardetect
+%python_alternative %{_bindir}/cchardetect
%{python_sitearch}/*
%changelog