## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-editdistance Version: 0.6.2 Release: %autorelease Summary: Fast implementation of the edit distance (Levenshtein distance) # SPDX License: MIT URL: https://github.com/aflc/editdistance Source0: %{url}/archive/v%{version}/editdistance-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: gcc-c++ BuildRequires: %{py3_dist pytest} %global _description %{expand: Fast implementation of the edit distance (Levenshtein distance). This library simply implements Levenshtein distance with C++ and Cython. The algorithm used in this library is proposed by Heikki Hyyrö, "Explaining and extending the bit-parallel approximate string matching algorithm of Myers", (2001).} %description %{_description} %package -n python3-editdistance Summary: %{summary} %description -n python3-editdistance %{_description} %prep %autosetup -n editdistance-%{version} # Remove files generated by Cython to regenerate them; note that # editdistance/_editdistance.cpp is not generated code. As of 0.6.2, generated # sources are not committed to git and are therefore not included in the GitHub # source archives, so we retain this line only as a precaution. grep -rl '/\* Generated by Cython' | xargs -r rm -v %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files editdistance %check %pytest %files -n python3-editdistance -f %{pyproject_files} %doc README.rst %changelog * Wed Apr 19 2023 Benjamin A. Beasley - 0.6.2-1 - Update to 0.6.2 (close RHBZ#2138604) * Wed Apr 19 2023 Benjamin A. Beasley - 0.6.0-10 - Port to pyproject-rpm-macros * Wed Apr 19 2023 Benjamin A. Beasley - 0.6.0-9 - Stop conditionalizing the tests * Wed Apr 19 2023 Benjamin A. Beasley - 0.6.0-8 - Confirm License is SPDX MIT * Wed Apr 19 2023 Benjamin A. Beasley - 0.6.0-7 - Tidy up packaging a bit * Fri Jan 20 2023 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.6.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Oct 24 2021 Aniket Pradhan - 0.6.0-1 - Update to v0.6.0 * Tue Jul 27 2021 Fedora Release Engineering - 0.5.3-8 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.3-7 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 25 2020 Aniket Pradhan - 0.5.3-4 - Added setuptools to BuildRequires * Tue May 26 2020 Miro Hrončok - 0.5.3-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 8 2019 Aniket Pradhan - 0.5.3-1 - Initial build