%global pypi_name fuzzywuzzy Name: python-%{pypi_name} Version: 0.18.0 Release: 1 Summary: Fuzzy string matching in Python License: GPL-2.0 URL: https://github.com/seatgeek/fuzzywuzzy/ Source0: %{pypi_source} BuildArch: noarch %description Fuzzy string matching module that uses Levenshtein Distance to calculate the differences between sequences in a simple-to-use package. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pycodestyle %description -n python3-%{pypi_name} Fuzzy string matching module that uses Levenshtein Distance to calculate the differences between sequences in a simple-to-use package. %prep %setup -q -n %{pypi_name}-%{version} # These scripts shouldn't be executable sed -i '1d' %{pypi_name}/{fuzz.py,process.py,StringMatcher.py} find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' %build %py3_build %install %py3_install %check %{__python3} -m unittest %files -n python3-%{pypi_name} %doc CHANGES.rst README.rst %license LICENSE.txt %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Mon Jun 20 2022 liukuo - 0.18.0-1 - Package init