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