diff --git a/python-confusable-homoglyphs.changes b/python-confusable-homoglyphs.changes index 75e3bb2..cb6e851 100644 --- a/python-confusable-homoglyphs.changes +++ b/python-confusable-homoglyphs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 13 13:47:18 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Wed Mar 13 10:12:22 UTC 2024 - Max Lin diff --git a/python-confusable-homoglyphs.spec b/python-confusable-homoglyphs.spec index 6a579a8..ea249fb 100644 --- a/python-confusable-homoglyphs.spec +++ b/python-confusable-homoglyphs.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-confusable-homoglyphs Version: 3.3.1 @@ -27,7 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/vhf/confusable_homoglyphs Source: https://files.pythonhosted.org/packages/source/c/confusable_homoglyphs/confusable_homoglyphs-%{version}.tar.gz BuildRequires: %{python_module click} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click @@ -43,13 +44,13 @@ codepoints, meaning or representation, for example U+0041 LATIN CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α'. %prep -%setup -q -n confusable_homoglyphs-%{version} +%autosetup -p1 -n confusable_homoglyphs-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/confusable_homoglyphs %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -65,7 +66,8 @@ CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α'. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/confusable_homoglyphs +%{python_sitelib}/confusable_homoglyphs-%{version}*-info %python_alternative %{_bindir}/confusable_homoglyphs %changelog