Compare commits

..

1 commit

Author SHA1 Message Date
Troy Curtis Jr
61f2d26b90 Revert bad update to stable branch f41.
No bad builds were submitted, this simply reverts the spec modifications
and restores the changelog.
2025-01-08 21:00:35 -05:00
5 changed files with 37 additions and 31 deletions

4
.gitignore vendored
View file

@ -4,7 +4,3 @@ python-Levenshtein-0.10.1.tar.bz2
/python-Levenshtein-0.21.0.tar.gz
/Levenshtein-0.21.0.tar.gz
/Levenshtein-0.23.0.tar.gz
/Levenshtein-0.26.0.tar.gz
/Levenshtein-0.26.1.tar.gz
/Levenshtein-0.27.1.tar.gz
/Levenshtein-0.27.3.tar.gz

View file

@ -1,3 +1,33 @@
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 0.23.0-3
- Rebuilt for Python 3.13
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Jan 23 2024 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.23.0-1
- Update to 0.23.0
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Aug 06 2023 Troy Curtis Jr <troy@troycurtisjr.com> - 0.21.0-3
- Upload the correct sources for 0.21.0.
* Sun Aug 06 2023 Troy Curtis Jr <troy@troycurtisjr.com> - 0.21.0-2
- Add the 0.21.0 sources.
* Sun Aug 06 2023 Troy Curtis Jr <troy@troycurtisjr.com> - 0.21.0-1
- Update to 0.21 and drop the patch in favor of a sed.
* Sun Aug 06 2023 Troy Curtis Jr <troy@troycurtisjr.com> - 0.20.8-1
- Update to 0.20.8.
* Sun Aug 06 2023 Troy Curtis Jr <troy@troycurtisjr.com> - 0.12.0-29
- SPDX migration.
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View file

@ -1,12 +0,0 @@
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}

View file

@ -1,7 +1,7 @@
%global srcname Levenshtein
%global forgeurl https://github.com/rapidfuzz/%{srcname}
Version: 0.27.3
%global forgeurl https://github.com/maxbachmann/%{srcname}
Version: 0.23.0
%forgemeta
Name: python-%{srcname}
@ -15,7 +15,6 @@ License: GPL-2.0-or-later
URL: %{forgeurl}
Source0: %{forgesource}
Patch0: levenshtein-0.27.1-cython-cpp.patch
BuildRequires: cmake
BuildRequires: gcc
@ -37,22 +36,15 @@ Summary: %{summary}
%description -n python3-%{srcname} %_description
%prep
%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
# Open up the rapidfuzz version constraint.
sed -i 's/rapidfuzz 3.2.0/rapidfuzz 3.2...<4/' CMakeLists.txt
%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
%generate_buildrequires
%pyproject_buildrequires
%build
# To avoid empty debugsourcefiles.list, we need to build the package
# with RelWithDebInfo
# Upstream issue: https://github.com/scikit-build/scikit-build-core/issues/915
export SKBUILD_CMAKE_BUILD_TYPE=RelWithDebInfo
%pyproject_wheel
%install
@ -65,7 +57,7 @@ export SKBUILD_CMAKE_BUILD_TYPE=RelWithDebInfo
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.md
%license LICENSE
%license COPYING
%changelog

View file

@ -1 +1 @@
SHA512 (Levenshtein-0.27.3.tar.gz) = 1102d6421066ea59c821416d80eec99044fd574659db2e063a5564249afddac097e740788b8d0f5c1c3c72c1a4d3ae94f027ac8609f5ad1cadde378aaee9bf43
SHA512 (Levenshtein-0.23.0.tar.gz) = 137116f337f576534bf2c12dc49d35f81a3b267eb613e5e6cca6cb80e5701dd0adbfd97c1cec4ea8f1bb4dee2bc67deeb19553474348ea78af4e05b79ce01fdf