diff --git a/lunr_nltk.patch b/lunr_nltk.patch new file mode 100644 index 0000000..a78e08c --- /dev/null +++ b/lunr_nltk.patch @@ -0,0 +1,15 @@ +diff -rupN lunr.py-0.6.0/setup.py lunr.py-0.6.0-new/setup.py +--- lunr.py-0.6.0/setup.py 2021-04-22 12:13:30.000000000 +0200 ++++ lunr.py-0.6.0-new/setup.py 2021-10-08 09:23:37.143568652 +0200 +@@ -40,10 +40,7 @@ setup( + python_requires=">=3.6", + install_requires=[], + extras_require={ +- # NLTK 3.5 requires regex which does not ship with all types of wheels +- # and causes installation issues in mkdocs upstream +- # https://github.com/mkdocs/mkdocs/issues/2062 +- "languages": ["nltk>=3.2.5,<3.5"] ++ "languages": ["nltk>=3.2.5"] + }, + keywords="lunr full text search", + classifiers=[ diff --git a/python-lunr.spec b/python-lunr.spec index fe6be99..1164c3a 100644 --- a/python-lunr.spec +++ b/python-lunr.spec @@ -2,12 +2,14 @@ Name: python-%{pypiname} Version: 0.6.0 -Release: 2%{?dist} +Release: 3%{?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 +# Remove nltk version constraint to fix FailsToInstall +Patch0: lunr_nltk.patch BuildArch: noarch @@ -43,7 +45,7 @@ BuildRequires: python3dist(setuptools) %prep -%autosetup -n %{pypiname}.py-%{version} +%autosetup -p1 -n %{pypiname}.py-%{version} %build %py3_build @@ -61,6 +63,9 @@ BuildRequires: python3dist(setuptools) %{python3_sitelib}/%{pypiname}/ %changelog +* Fri Oct 08 2021 Sandro Mani - 0.6.0-3 +- Remove nltk version constraint to fix FailsToInstall + * Mon Oct 04 2021 Sandro Mani - 0.6.0-2 - Rebuild to fix FailsToInstall