@@ -1,7 +1,7 @@
#
#
# spec file for package python-confusable-homoglyphs
# spec file for package python-confusable-homoglyphs
#
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
#
# All modifications and additions to the file contributed by third parties
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,24 @@
#
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
%{?sle15_python_module_pythons}
Name : python-confusable-homoglyphs
Name : python-confusable-homoglyphs
Version : 3.3.1
Version : 3.3.1
Release : 0
Release : 0
Summary : Detector for confusable use of Unicode homoglyphs
Summary : Detector for confusable use of Unicode homoglyphs
License : MIT
License : MIT
Group : Development/Languages/Python
URL : https://sr.ht/~valhalla/confusable_homoglyphs/
URL : https://github.com/vhf/confusable_homoglyphs
Source : https://files.pythonhosted.org/packages/source/c/confusable_homoglyphs/confusable_homoglyphs-%{version} .tar.gz
Source : https://files.pythonhosted.org/packages/source/c/confusable_homoglyphs/confusable_homoglyphs-%{version} .tar.gz
BuildRequires : %{python_module click}
BuildRequires : %{python_module click}
BuildRequires : %{python_module pip}
BuildRequires : %{python_module pip}
BuildRequires : %{python_module setuptools}
BuildRequires : %{python_module setuptools}
BuildRequires : %{python_module wheel}
BuildRequires : %{python_module wheel}
BuildRequires : alts
BuildRequires : fdupes
BuildRequires : fdupes
BuildRequires : python-rpm-macros
BuildRequires : python-rpm-macros
Requires : alts
Requires : python-click
Requires : python-click
Requires(post) : update-alternatives
Requires(postun) : update-alternatives
BuildArch : noarch
BuildArch : noarch
%python_subpackages
%python_subpackages
@@ -55,19 +55,18 @@ CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α '.
%python_expand %fdupes %{buildroot} %{$python_sitelib}
%python_expand %fdupes %{buildroot} %{$python_sitelib}
%check
%check
# temporarily disable CLI tests, broken with (exactly) click 8.2.1 https://github.com/pallets/click/issues/2939
rm tests/test_cli.py
%pyunittest discover -v tests/
%pyunittest discover -v tests/
%post
%pre
%python_install _alternative confusable_homoglyphs
%python_libalternatives_reset _alternative confusable_homoglyphs
%postun
%python_uninstall_alternative confusable_homoglyphs
%files %{python_files}
%files %{python_files}
%doc README.rst
%doc README.rst
%license LICENSE
%license LICENSE
%{python_sitelib} /confusable_homoglyphs
%{python_sitelib} /confusable_homoglyphs
%{python_sitelib} /confusable_homoglyphs-%{version} * -info
%{python_sitelib} /confusable_homoglyphs-%{version} .dist -info
%python_alternative %{_bindir} /confusable_homoglyphs
%python_alternative %{_bindir} /confusable_homoglyphs
%changelog
%changelog