diff --git a/ShellCheck.spec b/ShellCheck.spec new file mode 100644 index 0000000..92d0421 --- /dev/null +++ b/ShellCheck.spec @@ -0,0 +1,51 @@ +%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 diff --git a/ShellCheck.yaml b/ShellCheck.yaml new file mode 100644 index 0000000..447b496 --- /dev/null +++ b/ShellCheck.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: seatgeek/fuzzywuzzy +tag_prefix: "^v" +separator: "." diff --git a/fuzzywuzzy-0.18.0.tar.gz b/fuzzywuzzy-0.18.0.tar.gz new file mode 100644 index 0000000..d7ac8d9 Binary files /dev/null and b/fuzzywuzzy-0.18.0.tar.gz differ