diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0c610f2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lunr.py-0.5.6.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b15c7f --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-lunr + +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. \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/python-lunr.spec b/python-lunr.spec new file mode 100644 index 0000000..53f6d92 --- /dev/null +++ b/python-lunr.spec @@ -0,0 +1,89 @@ +%global pypiname lunr + +Name: python-%{pypiname} +Version: 0.5.8 +Release: 7%{?dist} +Summary: A Python implementation of Lunr.js + +License: MIT +URL: https://github.com/yeraydiazdiaz/lunr.py +Source0: https://github.com/yeraydiazdiaz/lunr.py/archive/%{version}.tar.gz#/%{pypiname}.py-%{version}.tar.gz + +BuildArch: noarch + + +%global _description %{expand: +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 %_description + +%package -n python3-%{pypiname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +%{?python_provide:%python_provide python3-%{pypiname}} + +#Some nltk resource is needed to run tests but not available in Fedora +# BuildRequires: python3-six +# BuildRequires: python3-future +# BuildRequires: python3-pytest +# BuildRequires: python3-pytest-timeout +# BuildRequires: python3-mock +# BuildRequires: python3dist(nltk) >= 3.2.5 +# BuildRequires: /usr/bin/coverage + +%{?python_extras_subpkg:Recommends: python3-%{pypiname}+languages} +%{!?python_extras_subpkg:Recommends: python3dist(nltk) >= 3.2.5} + +%description -n python3-%{pypiname} %_description + +%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypiname} -i %{python3_sitelib}/%{pypiname}-*.egg-info languages} + + +%prep +%autosetup -n %{pypiname}.py-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +#make tests + +%files -n python3-%{pypiname} +%license LICENSE +%doc README.md CHANGELOG.md readme.rst docs/ +%{python3_sitelib}/%{pypiname}-*.egg-info/ +%{python3_sitelib}/%{pypiname}/ + +%changelog +* Fri Jul 23 2021 Fedora Release Engineering - 0.5.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.5.8-6 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.5.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.5.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Miro Hrončok - 0.5.8-3 +- Add lunr[languages] subpackage + +* Thu Jun 25 2020 Robin Lee - 0.5.8-2 +- BR python3dist(setuptools) + +* Fri Jun 12 2020 Qiyu Yan - 0.5.8-1 +- Update to 0.5.8 + +* Tue May 26 2020 Miro Hrončok - 0.5.6-2 +- Rebuilt for Python 3.9 + +* Sun Mar 8 2020 Robin Lee - 0.5.6-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..0cd5e13 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lunr.py-0.5.8.tar.gz) = 90c279b9e91744f19c4a155947526bff749aee5d727bc38cc36ee05228a6624419a54bef4214e8195a69abcf1a5b40b29c4fa8b14bece0befbde02d13af969ac