[packages/python3-Levenshtein] Up to 0.27.1
arekm
arekm at pld-linux.org
Thu May 22 22:20:12 CEST 2025
commit d5a78e37646879cc862a2d6e778ca879c1e1e12a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 22 22:19:54 2025 +0200
Up to 0.27.1
python-Levenshtein.spec | 111 -----------------------------------------------
python3-Levenshtein.spec | 61 ++++++++++++++++++++++++++
2 files changed, 61 insertions(+), 111 deletions(-)
---
diff --git a/python-Levenshtein.spec b/python-Levenshtein.spec
deleted file mode 100644
index 6822dbb..0000000
--- a/python-Levenshtein.spec
+++ /dev/null
@@ -1,111 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module Levenshtein
-%define egg_name python_Levenshtein
-%define pypi_name python-Levenshtein
-Summary: Python extension computing string distances and similarities
-Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów
-Name: python-%{module}
-Version: 0.12.0
-Release: 10
-License: GPL v2
-Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5: e8cde197d6d304bbdc3adae66fec99fb
-URL: https://github.com/ztane/python-Levenshtein/
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.3.0
-BuildRequires: python-modules
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:2.3.0
-BuildRequires: python3-modules
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Levenshtein computes Levenshtein distances, similarity ratios,
-generalized medians and set medians of Strings and Unicodes. Becuase
-it's implemented in C, it's much faster than corresponding Python
-library functions and methods.
-
-%description -l pl.UTF-8
-Levenshtein oblicza odległości Levenshteina, współczynniki
-podobieństwa, uogólnione mediany i mediany zbiorów dla wartości String
-i Unicode. Ponieważ jest zaimplementowany w C, jest dużo szybszy od
-odpowiadających mu funkcji bibliotecznych i metod Pythona.
-
-%package -n python3-%{module}
-Summary: Python extension computing string distances and similarities
-Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów
-Group: Libraries/Python
-
-%description -n python3-%{module}
-Levenshtein computes Levenshtein distances, similarity ratios,
-generalized medians and set medians of Strings and Unicodes. Becuase
-it's implemented in C, it's much faster than corresponding Python
-library functions and methods.
-
-%description -n python3-%{module} -l pl.UTF-8
-Levenshtein oblicza odległości Levenshteina, współczynniki
-podobieństwa, uogólnione mediany i mediany zbiorów dla wartości String
-i Unicode. Ponieważ jest zaimplementowany w C, jest dużo szybszy od
-odpowiadających mu funkcji bibliotecznych i metod Pythona.
-
-%prep
-%setup -q
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-%py_postclean
-
-%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/%{module}/_levenshtein.[ch]
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/%{module}/_levenshtein.[ch]
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst NEWS HISTORY.txt
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/_levenshtein.so
-%{py_sitedir}/%{egg_name}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc README.rst NEWS HISTORY.txt
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%dir %{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}/__pycache__/*.py[co]
-%attr(755,root,root) %{py3_sitedir}/%{module}/_levenshtein.cpython-*so
-%{py3_sitedir}/%{egg_name}-%{version}-py*.egg-info
-%endif
diff --git a/python3-Levenshtein.spec b/python3-Levenshtein.spec
new file mode 100644
index 0000000..5c1460c
--- /dev/null
+++ b/python3-Levenshtein.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%define module Levenshtein
+%define egg_name levenshtein
+%define pypi_name python-Levenshtein
+Summary: Python extension computing string distances and similarities
+Summary(pl.UTF-8): Rozszerzenie Pythona do obliczania odległości i podobieństw łańcuchów
+Name: python3-%{module}
+Version: 0.27.1
+Release: 1
+License: GPL v2
+Group: Libraries/Python
+Source0: https://pypi.debian.net/Levenshtein/levenshtein-%{version}.tar.gz
+# Source0-md5: 3f10add315701638918d8039ff8dfe44
+URL: https://github.com/rapidfuzz/Levenshtein
+BuildRequires: python3-build
+BuildRequires: python3-devel >= 1:2.3.0
+BuildRequires: python3-installer
+BuildRequires: python3-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Levenshtein computes Levenshtein distances, similarity ratios,
+generalized medians and set medians of Strings and Unicodes. Becuase
+it's implemented in C, it's much faster than corresponding Python
+library functions and methods.
+
+%description -l pl.UTF-8
+Levenshtein oblicza odległości Levenshteina, współczynniki
+podobieństwa, uogólnione mediany i mediany zbiorów dla wartości String
+i Unicode. Ponieważ jest zaimplementowany w C, jest dużo szybszy od
+odpowiadających mu funkcji bibliotecznych i metod Pythona.
+
+%prep
+%setup -q -n levenshtein-%{version}
+
+%build
+export SKBUILD_CMAKE_BUILD_TYPE=RelWithDebInfo
+%py3_build_pyproject
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md HISTORY.md SECURITY.md
+%dir %{py3_sitedir}/%{module}
+%{py3_sitedir}/%{module}/*.py
+%{py3_sitedir}/%{module}/*.pyi
+%{py3_sitedir}/%{module}/py.typed
+%dir %{py3_sitedir}/%{module}/__pycache__
+%{py3_sitedir}/%{module}/__pycache__/*.py[co]
+%attr(755,root,root) %{py3_sitedir}/%{module}/levenshtein*.cpython*.so
+%{py3_sitedir}/%{egg_name}-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-Levenshtein.git/commitdiff/d5a78e37646879cc862a2d6e778ca879c1e1e12a
More information about the pld-cvs-commit
mailing list