Hello community, here is the log from the commit of package python-pyenchant for openSUSE:Factory checked in at 2018-08-31 09:51:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyenchant (Old) and /work/SRC/openSUSE:Factory/.python-pyenchant.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pyenchant" Fri Aug 31 09:51:05 2018 rev:13 rq:631372 version:2.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyenchant/python-pyenchant.changes 2017-09-07 22:08:37.525780715 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyenchant.new/python-pyenchant.changes 2018-08-31 09:51:20.765517447 +0200 @@ -1,0 +2,8 @@ +Fri Aug 24 13:01:16 UTC 2018 - tchvatal@suse.com + +- Update to 2.0.0: + * Support for enchant2, py3 fixes +- Add patch to prefer enchant2 when both available: + * enchant2.patch + +------------------------------------------------------------------- Old: ---- pyenchant-1.6.11.tar.gz New: ---- enchant2.patch pyenchant-2.0.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyenchant.spec ++++++ --- /var/tmp/diff_new_pack.fcOUkQ/_old 2018-08-31 09:51:22.149520928 +0200 +++ /var/tmp/diff_new_pack.fcOUkQ/_new 2018-08-31 09:51:22.181521008 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyenchant # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,27 +18,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python -%bcond_without test Name: python-pyenchant -Version: 1.6.11 +Version: 2.0.0 Release: 0 Summary: Python bindings for the Enchant spellchecking system -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Languages/Python -Url: https://github.com/rfk/pyenchant/ +URL: https://github.com/rfk/pyenchant/ Source: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz -BuildRequires: %{python_module devel} +Patch0: enchant2.patch BuildRequires: %{python_module setuptools} +BuildRequires: enchant-2-backend-hunspell BuildRequires: fdupes -BuildRequires: python-rpm-macros -BuildRequires: python3-2to3 -%if %{with test} -BuildRequires: enchant BuildRequires: myspell-en BuildRequires: myspell-en_AU BuildRequires: myspell-en_US -%endif -Requires: enchant +BuildRequires: python-rpm-macros +BuildRequires: python3-2to3 +Requires: enchant-2-backend-hunspell +Provides: python-enchant BuildArch: noarch %ifpython2 Provides: PyEnchant = %{version} @@ -53,7 +51,9 @@ %prep %setup -q -n pyenchant-%{version} +%patch0 -p1 chmod a-x *.txt +chmod a-x *egg-info/* %build %python_build @@ -62,15 +62,13 @@ %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check export LANG=en_US.UTF-8 %python_exec setup.py test -%endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE.txt README.txt TODO.txt +%license LICENSE.txt +%doc README.txt TODO.txt %{python_sitelib}/enchant %{python_sitelib}/pyenchant-%{version}-py*.egg-info ++++++ enchant2.patch ++++++
From ed02ae493ade4ca749462d041ce83261783fa1a1 Mon Sep 17 00:00:00 2001 From: Raphael Michel
Date: Thu, 8 Mar 2018 10:40:00 +0100 Subject: [PATCH] Auto-detect enchant2
After support for enchant2 is already merged, the only thing missing is to detect the library :) --- enchant/_enchant.py | 1 + 1 file changed, 1 insertion(+) 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. + yield find_library("enchant-2") yield find_library("enchant") yield find_library("libenchant") yield find_library("libenchant-1") ++++++ pyenchant-1.6.11.tar.gz -> pyenchant-2.0.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/PKG-INFO new/pyenchant-2.0.0/PKG-INFO --- old/pyenchant-1.6.11/PKG-INFO 2017-07-21 09:29:46.000000000 +0200 +++ new/pyenchant-2.0.0/PKG-INFO 2017-12-10 01:21:52.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: pyenchant -Version: 1.6.11 +Version: 2.0.0 Summary: Python bindings for the Enchant spellchecking system Home-page: https://pythonhosted.org/pyenchant/ Author: Ryan Kelly Author-email: ryan@rfk.id.au License: LGPL +Description-Content-Type: UNKNOWN Description: UNKNOWN Keywords: spelling spellcheck enchant Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/enchant/__init__.py new/pyenchant-2.0.0/enchant/__init__.py --- old/pyenchant-1.6.11/enchant/__init__.py 2017-07-21 09:28:38.000000000 +0200 +++ new/pyenchant-2.0.0/enchant/__init__.py 2017-12-10 01:21:32.000000000 +0100 @@ -79,9 +79,9 @@ _DOC_ERRORS = ['enchnt','enchnt','incant','fr'] # Make version info available -__ver_major__ = 1 -__ver_minor__ = 6 -__ver_patch__ = 11 +__ver_major__ = 2 +__ver_minor__ = 0 +__ver_patch__ = 0 __ver_sub__ = "" __version__ = "%d.%d.%d%s" % (__ver_major__,__ver_minor__, __ver_patch__,__ver_sub__) @@ -715,15 +715,6 @@ word = self._StringClass(word) return _e.dict_is_removed(self._this,word.encode()) - def is_in_session(self,word): - """Check whether a word is in the session list.""" - warnings.warn("Dict.is_in_session is deprecated, "\ - "please use Dict.is_added", - category=DeprecationWarning,stacklevel=2) - self._check_this() - word = self._StringClass(word) - return _e.dict_is_in_session(self._this,word.encode()) - def store_replacement(self,mis,cor): """Store a replacement spelling for a miss-spelled word. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/enchant/_enchant.py new/pyenchant-2.0.0/enchant/_enchant.py --- old/pyenchant-1.6.11/enchant/_enchant.py 2017-07-18 06:39:34.000000000 +0200 +++ new/pyenchant-2.0.0/enchant/_enchant.py 2017-12-10 01:21:32.000000000 +0100 @@ -309,12 +309,6 @@ def dict_is_removed(dict,word): return dict_is_removed1(dict,word,len(word)) -dict_is_in_session1 = e.enchant_dict_is_in_session -dict_is_in_session1.argtypes = [t_dict,c_char_p,c_size_t] -dict_is_in_session1.restype = c_int -def dict_is_in_session(dict,word): - return dict_is_in_session1(dict,word,len(word)) - dict_store_replacement1 = e.enchant_dict_store_replacement dict_store_replacement1.argtypes = [t_dict,c_char_p,c_size_t,c_char_p,c_size_t] dict_store_replacement1.restype = None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/enchant/pypwl.py new/pyenchant-2.0.0/enchant/pypwl.py --- old/pyenchant-1.6.11/enchant/pypwl.py 2017-07-18 06:39:34.000000000 +0200 +++ new/pyenchant-2.0.0/enchant/pypwl.py 2017-12-10 01:21:32.000000000 +0100 @@ -247,12 +247,6 @@ """Add a word to the session list.""" self._words.insert(word) - def is_in_session(self,word): - """Check whether a word is in the session list.""" - warnings.warn("PyPWL.is_in_session is deprecated, please use PyPWL.is_added",category=DeprecationWarning) - # Consider all words to be in the session list - return self.check(word) - def store_replacement(self,mis,cor): """Store a replacement spelling for a miss-spelled word. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/pyenchant.egg-info/PKG-INFO new/pyenchant-2.0.0/pyenchant.egg-info/PKG-INFO --- old/pyenchant-1.6.11/pyenchant.egg-info/PKG-INFO 2017-07-21 09:29:45.000000000 +0200 +++ new/pyenchant-2.0.0/pyenchant.egg-info/PKG-INFO 2017-12-10 01:21:51.000000000 +0100 @@ -1,11 +1,12 @@ Metadata-Version: 1.1 Name: pyenchant -Version: 1.6.11 +Version: 2.0.0 Summary: Python bindings for the Enchant spellchecking system Home-page: https://pythonhosted.org/pyenchant/ Author: Ryan Kelly Author-email: ryan@rfk.id.au License: LGPL +Description-Content-Type: UNKNOWN Description: UNKNOWN Keywords: spelling spellcheck enchant Platform: UNKNOWN diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyenchant-1.6.11/setup.cfg new/pyenchant-2.0.0/setup.cfg --- old/pyenchant-1.6.11/setup.cfg 2017-07-21 09:29:46.000000000 +0200 +++ new/pyenchant-2.0.0/setup.cfg 2017-12-10 01:21:52.000000000 +0100 @@ -4,5 +4,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0