Update to 0.27.3.
* Fixes rhbz#2411727 * Fix build with the latest Cython by adding the --cplus flag.
This commit is contained in:
parent
c03c733aa0
commit
e2740ed1a9
4 changed files with 18 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
12
levenshtein-0.27.1-cython-cpp.patch
Normal file
12
levenshtein-0.27.1-cython-cpp.patch
Normal file
|
|
@ -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}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (Levenshtein-0.27.1.tar.gz) = 900614697dc6456223ac99d9a7eed007b605da44239806d9e7b736142c3e2ab2544abc5d206a03d99b8d1e24f7efb837fa1782477bf7854ad71d8d6f37c8e6c2
|
||||
SHA512 (Levenshtein-0.27.3.tar.gz) = 1102d6421066ea59c821416d80eec99044fd574659db2e063a5564249afddac097e740788b8d0f5c1c3c72c1a4d3ae94f027ac8609f5ad1cadde378aaee9bf43
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue