Accepting request 717458 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/717458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyenchant?expand=0&rev=15
This commit is contained in:
Dominique Leuenberger 2019-07-30 11:03:42 +00:00 committed by Git OBS Bridge
commit 3ad819495b
2 changed files with 13 additions and 7 deletions

View File

@ -12,11 +12,11 @@ Index: pyenchant-2.0.0/enchant/_enchant.py
===================================================================
--- pyenchant-2.0.0.orig/enchant/_enchant.py
+++ pyenchant-2.0.0/enchant/_enchant.py
@@ -71,6 +71,7 @@ def _e_path_possibilities():
yield "libenchant.so.1"
yield "libenchant.so"
# See if ctypes can find the library for us, under various names.
@@ -65,6 +65,7 @@ def _e_path_possibilities():
"""Generator yielding possible locations of the enchant library."""
# Allow it to be overridden using an environment variable.
yield os.environ.get("PYENCHANT_LIBRARY_PATH")
+ yield find_library("enchant-2")
yield find_library("enchant")
yield find_library("libenchant")
yield find_library("libenchant-1")
# For linuxish systems, allow default soname lookup a chance to succeed.
if sys.platform not in ("win32", "darwin"):
yield "libenchant.so.1.6.0"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 19 10:11:23 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>
- Modified enchant2.patch so the enchant-2 library is used when both
enchant 1 and enchant 2 are installed on the system (boo#1141993).
-------------------------------------------------------------------
Tue Jan 8 10:48:47 UTC 2019 - alarrosa@suse.com