[packages/python-lunr] - saving my old work, last python2 version of lunr

qboosh qboosh at pld-linux.org
Sat May 31 18:04:52 CEST 2025


commit a267f7fc78d0fc1956878d0627777fa57fa10e46
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 31 17:39:32 2025 +0200

    - saving my old work, last python2 version of lunr

 python-lunr.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/python-lunr.spec b/python-lunr.spec
new file mode 100644
index 0000000..0d16c10
--- /dev/null
+++ b/python-lunr.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (missing fixtures)
+
+Summary:	Python implementation of Lunr.js
+Summary(pl.UTF-8):	Pythonowa implementacja Lunr.js
+Name:		python-lunr
+# 0.5.8 is the last version with python2 support
+Version:	0.5.8
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/lunr/
+Source0:	https://files.pythonhosted.org/packages/source/l/lunr/lunr-%{version}.tar.gz
+# Source0-md5:	2476e0b1d6ce919f7c39595978b28729
+URL:		https://pypi.org/project/lunr/
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-enum34
+BuildRequires:	python-future >= 0.16.0
+BuildRequires:	python-nltk >= 3.2.5
+BuildRequires:	python-nltk < 3.5
+BuildRequires:	python-six >= 1.11.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This Python version of Lunr.js aims to bring the simple and powerful
+full text search capabilities into Python guaranteeing results as
+close as the original implementation as possible.
+
+%description -l pl.UTF-8
+Ta pythonowa wersja Lunr.js ma na celu dostarczenie prostej i mającej
+duże możliwości funkcjonalności wyszukiwania pełnotekstowego do
+Pythona, gwarantując efekty możliwie najbliższe oryginalnej
+implementacji.
+
+%prep
+%setup -q -n lunr-%{version}
+
+%build
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py_sitescriptdir}/lunr
+%{py_sitescriptdir}/lunr-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-lunr.git/commitdiff/a267f7fc78d0fc1956878d0627777fa57fa10e46



More information about the pld-cvs-commit mailing list