From d2dc56d8d49ce021b4add5b9f15418b571446e82 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 11:23:49 +0000 Subject: [PATCH 1/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 1e8175c6021f0e57bae7581f05b0590ee7eb60ee Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Fri, 28 Feb 2025 13:22:48 +0100 Subject: [PATCH 2/9] Fix pyproject.toml metadata Signed-off-by: Cristian Le --- 72.patch | 22 ++++++++++++++++++++++ python-Levenshtein.spec | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 72.patch diff --git a/72.patch b/72.patch new file mode 100644 index 0000000..0e6af10 --- /dev/null +++ b/72.patch @@ -0,0 +1,22 @@ +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 8879ccb..58ce4c2 100644 --- a/python-Levenshtein.spec +++ b/python-Levenshtein.spec @@ -16,6 +16,8 @@ URL: %{forgeurl} Source0: %{forgesource} +Patch: https://github.com/rapidfuzz/Levenshtein/pull/72.patch + BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ From f9e7c202ed05a8a5f90e880ef9c198089b115f1c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 4 Jun 2025 12:43:42 +0200 Subject: [PATCH 3/9] Rebuilt for Python 3.14 From 897af3595d93b39b318cf2139a075e2f92d2ca90 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 06:26:06 +0000 Subject: [PATCH 4/9] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From d6b0f69cfeb5f757d90319ab182b2e55243c584e Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Thu, 26 Jun 2025 04:16:33 +0200 Subject: [PATCH 5/9] Remove Cython's upper constraint --- python-Levenshtein.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec index 58ce4c2..4ebe943 100644 --- a/python-Levenshtein.spec +++ b/python-Levenshtein.spec @@ -39,8 +39,8 @@ Summary: %{summary} %prep %autosetup -n %{srcname}-%{version} -# Levenshtein can build under older Cython successfully -sed 's/Cython>=3.0.0[ab0-9]\+/Cython>=0.29.26/' -i pyproject.toml +# Remove Cython's upper constraint +sed -i '/Cython>=3\.[0-9]\+\./s/,\s*<3\.[0-9]\+\.[0-9a-z]*[0-9]*//' pyproject.toml %generate_buildrequires %pyproject_buildrequires From 3f93a031810618dc19ac445b87c3a4c05328928c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 14:02:43 +0200 Subject: [PATCH 6/9] Rebuilt for Python 3.14.0rc2 bytecode From 9d58431f1a80d2b4c983efef412630b4c792ddd5 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 13:39:13 +0200 Subject: [PATCH 7/9] Rebuilt for Python 3.14.0rc3 bytecode From c03c733aa004e30040cd3138101cf29bded37e9d Mon Sep 17 00:00:00 2001 From: Troy Curtis Jr Date: Thu, 9 Oct 2025 21:50:01 -0400 Subject: [PATCH 8/9] Update to 0.27.1. - Fixes rhbz#2349293 - Drop the no longer needed 72.patch - Open up the rapidfuzz-cpp build version to allow build against 3.3.3 - Update URL to the new rapidfuzz GitHub organization. --- .gitignore | 1 + 72.patch | 22 ---------------------- python-Levenshtein.spec | 9 +++++---- sources | 2 +- 4 files changed, 7 insertions(+), 27 deletions(-) delete mode 100644 72.patch 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 From e2740ed1a9e08619036e8ca16223633c178e8a17 Mon Sep 17 00:00:00 2001 From: Troy Curtis Jr Date: Sat, 10 Jan 2026 17:30:43 -0500 Subject: [PATCH 9/9] Update to 0.27.3. * Fixes rhbz#2411727 * Fix build with the latest Cython by adding the --cplus flag. --- .gitignore | 1 + levenshtein-0.27.1-cython-cpp.patch | 12 ++++++++++++ python-Levenshtein.spec | 7 ++++--- sources | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 levenshtein-0.27.1-cython-cpp.patch diff --git a/.gitignore b/.gitignore index 65a9186..477366a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ python-Levenshtein-0.10.1.tar.bz2 /Levenshtein-0.26.0.tar.gz /Levenshtein-0.26.1.tar.gz /Levenshtein-0.27.1.tar.gz +/Levenshtein-0.27.3.tar.gz diff --git a/levenshtein-0.27.1-cython-cpp.patch b/levenshtein-0.27.1-cython-cpp.patch new file mode 100644 index 0000000..78710f3 --- /dev/null +++ b/levenshtein-0.27.1-cython-cpp.patch @@ -0,0 +1,12 @@ +diff -up a/src/Levenshtein/CMakeLists.txt b/src/Levenshtein/CMakeLists.txt +--- a/src/Levenshtein/CMakeLists.txt 2026-01-10 17:00:11.456685025 -0500 ++++ b/src/Levenshtein/CMakeLists.txt 2026-01-10 17:00:37.252954218 -0500 +@@ -9,7 +9,7 @@ function(create_cython_target _name) + MAIN_DEPENDENCY "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx" + VERBATIM + COMMAND +- Python::Interpreter -m cython "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx" ++ Python::Interpreter -m cython --cplus "${CMAKE_CURRENT_LIST_DIR}/${_name}.pyx" + --output-file "${CMAKE_CURRENT_BINARY_DIR}/${_name}.cxx") + + set(${_name} diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec index 69ef590..61fdd25 100644 --- a/python-Levenshtein.spec +++ b/python-Levenshtein.spec @@ -1,7 +1,7 @@ %global srcname Levenshtein %global forgeurl https://github.com/rapidfuzz/%{srcname} -Version: 0.27.1 +Version: 0.27.3 %forgemeta Name: python-%{srcname} @@ -15,6 +15,7 @@ License: GPL-2.0-or-later URL: %{forgeurl} Source0: %{forgesource} +Patch0: levenshtein-0.27.1-cython-cpp.patch BuildRequires: cmake BuildRequires: gcc @@ -36,7 +37,7 @@ Summary: %{summary} %description -n python3-%{srcname} %_description %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 # Remove Cython's upper constraint sed -i '/Cython>=3\.[0-9]\+\./s/,\s*<3\.[0-9]\+\.[0-9a-z]*[0-9]*//' pyproject.toml @@ -64,7 +65,7 @@ export SKBUILD_CMAKE_BUILD_TYPE=RelWithDebInfo %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md -%license COPYING +%license LICENSE %changelog diff --git a/sources b/sources index 18d87fd..d4344d7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Levenshtein-0.27.1.tar.gz) = 900614697dc6456223ac99d9a7eed007b605da44239806d9e7b736142c3e2ab2544abc5d206a03d99b8d1e24f7efb837fa1782477bf7854ad71d8d6f37c8e6c2 +SHA512 (Levenshtein-0.27.3.tar.gz) = 1102d6421066ea59c821416d80eec99044fd574659db2e063a5564249afddac097e740788b8d0f5c1c3c72c1a4d3ae94f027ac8609f5ad1cadde378aaee9bf43