[packages/python3-lunr] Initial
arekm
arekm at pld-linux.org
Thu May 29 16:21:12 CEST 2025
commit a74947fe491cc8400ae2f9be26a63e193f915fad
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu May 29 15:45:17 2025 +0200
Initial
python3-lunr.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
---
diff --git a/python3-lunr.spec b/python3-lunr.spec
new file mode 100644
index 0000000..0dde6d7
--- /dev/null
+++ b/python3-lunr.spec
@@ -0,0 +1,86 @@
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+
+%define module lunr
+Summary: A Python implementation of Lunr.js
+Name: python3-%{module}
+Version: 0.8.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/l/lunr/%{module}-%{version}.tar.gz
+# Source0-md5: ec394d06983ee22000d2c52d5892593c
+URL: https://pypi.org/project/lunr/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.7
+%if %{with tests}
+#BuildRequires: python3-
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.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.
+
+%package apidocs
+Summary: API documentation for Python %{module} module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module}
+Group: Documentation
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
+%endif
+
+%if %{with doc}
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-3
+rm -rf docs/_build/html/_sources
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-lunr.git/commitdiff/a74947fe491cc8400ae2f9be26a63e193f915fad
More information about the pld-cvs-commit
mailing list