diff --git a/.gitignore b/.gitignore index 042ea88..65a9186 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ python-Levenshtein-0.10.1.tar.bz2 /Levenshtein-0.23.0.tar.gz /Levenshtein-0.26.0.tar.gz /Levenshtein-0.26.1.tar.gz +/Levenshtein-0.27.1.tar.gz diff --git a/72.patch b/72.patch deleted file mode 100644 index 0e6af10..0000000 --- a/72.patch +++ /dev/null @@ -1,22 +0,0 @@ -From f5e782d3efd640be48c59f2b7efa4e19466476a9 Mon Sep 17 00:00:00 2001 -From: Cristian Le -Date: Fri, 28 Feb 2025 13:20:27 +0100 -Subject: [PATCH] fix: pyproject.toml metadata - ---- - pyproject.toml | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/pyproject.toml b/pyproject.toml -index 595180d..e424f68 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -26,6 +26,8 @@ classifiers=[ - "Programming Language :: Python :: 3.13", - "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", - ] -+ -+[project.urls] - Homepage = "https://github.com/rapidfuzz/Levenshtein" - Documentation = "https://rapidfuzz.github.io/Levenshtein/" - Repository = "https://github.com/rapidfuzz/Levenshtein.git" diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec index 4ebe943..69ef590 100644 --- a/python-Levenshtein.spec +++ b/python-Levenshtein.spec @@ -1,7 +1,7 @@ %global srcname Levenshtein -%global forgeurl https://github.com/maxbachmann/%{srcname} -Version: 0.26.1 +%global forgeurl https://github.com/rapidfuzz/%{srcname} +Version: 0.27.1 %forgemeta Name: python-%{srcname} @@ -16,8 +16,6 @@ URL: %{forgeurl} Source0: %{forgesource} -Patch: https://github.com/rapidfuzz/Levenshtein/pull/72.patch - BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ @@ -42,6 +40,9 @@ Summary: %{summary} # Remove Cython's upper constraint sed -i '/Cython>=3\.[0-9]\+\./s/,\s*<3\.[0-9]\+\.[0-9a-z]*[0-9]*//' pyproject.toml +# Open up the rapidfuzz version constraint. +sed -i 's/rapidfuzz 3.2.0/rapidfuzz 3.2...<4/' CMakeLists.txt + %generate_buildrequires %pyproject_buildrequires diff --git a/sources b/sources index c97b8af..18d87fd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Levenshtein-0.26.1.tar.gz) = 589b1f404108f488caf880063f20ee9c6a2033b0a2cd819352bf15e285ea8537c1dc8117de70679f720fd3da47546f7e0e5c620e4da8cf09bf8df9b119e6abc9 +SHA512 (Levenshtein-0.27.1.tar.gz) = 900614697dc6456223ac99d9a7eed007b605da44239806d9e7b736142c3e2ab2544abc5d206a03d99b8d1e24f7efb837fa1782477bf7854ad71d8d6f37c8e6c2