From 978d41ecd188519f34838a1cb14d2d0aa235eada Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann Date: May 28 2020 07:39:27 +0000 Subject: Update python-confusable-homoglyphs to rev 4 via SR 809609 https://build.opensuse.org/request/show/809609 by user scarabeus_iv + maxlin_factory --- diff --git a/packages/p/python-confusable-homoglyphs/.files b/packages/p/python-confusable-homoglyphs/.files index 08dc752..f438199 100644 Binary files a/packages/p/python-confusable-homoglyphs/.files and b/packages/p/python-confusable-homoglyphs/.files differ diff --git a/packages/p/python-confusable-homoglyphs/.rev b/packages/p/python-confusable-homoglyphs/.rev index 8a0a35f..951a880 100644 --- a/packages/p/python-confusable-homoglyphs/.rev +++ b/packages/p/python-confusable-homoglyphs/.rev @@ -24,4 +24,12 @@ * Updated unicode data and tests 682460 + + 9354d1fd42564f6b6bf772e6e75ada79 + 3.2.0 + + maxlin_factory + + 809609 + diff --git a/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.changes b/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.changes index 8ce8a0c..2246e09 100644 --- a/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.changes +++ b/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.changes @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Wed May 27 09:36:47 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- Thu Mar 7 13:22:35 UTC 2019 - Tomáš Chvátal - Update to 3.2.0: diff --git a/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.spec b/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.spec index 7653b51..a7a86e5 100644 --- a/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.spec +++ b/packages/p/python-confusable-homoglyphs/python-confusable-homoglyphs.spec @@ -1,7 +1,7 @@ # # spec file for package python-confusable-homoglyphs # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -30,6 +30,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -47,15 +49,22 @@ CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α'. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/confusable_homoglyphs %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test +%post +%python_install_alternative confusable_homoglyphs + +%postun +%python_uninstall_alternative confusable_homoglyphs + %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* -%python3_only %{_bindir}/confusable_homoglyphs +%python_alternative %{_bindir}/confusable_homoglyphs %changelog