From 204ac0c6685e5dc4bcc4f9e079e9b968af9e3ee175160bd8ef8f9e5ce3cd8940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 25 May 2020 13:36:05 +0000 Subject: [PATCH] Accepting request 808744 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/808744 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-charset-normalizer?expand=0&rev=12 --- python-charset-normalizer.changes | 5 +++++ python-charset-normalizer.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-charset-normalizer.changes b/python-charset-normalizer.changes index bb88ef6..af78f10 100644 --- a/python-charset-normalizer.changes +++ b/python-charset-normalizer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 25 10:59:12 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Jan 27 09:09:27 UTC 2020 - Marketa Calabkova diff --git a/python-charset-normalizer.spec b/python-charset-normalizer.spec index 17b1e65..867f837 100644 --- a/python-charset-normalizer.spec +++ b/python-charset-normalizer.spec @@ -34,8 +34,10 @@ Requires: python-cached-property Requires: python-dragonmapper Requires: python-loguru Requires: python-zhon -Suggests: python-requests-html +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: python-requests +Suggests: python-requests-html BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PrettyTable} @@ -59,15 +61,22 @@ dos2unix README.md %install %python_install +%python_clone -a %{buildroot}%{_bindir}/normalizer %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py pytest +%post +%python_install_alternative normalizer + +%postun +%python_uninstall_alternative normalizer + %files %{python_files} %doc README.md %license LICENSE -%python3_only %{_bindir}/normalizer +%python_alternative %{_bindir}/normalizer %{python_sitelib}/* %changelog