Accepting request 788926 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/788926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyenchant?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2020-04-19 19:46:12 +00:00 committed by Git OBS Bridge
commit 78c57de059
5 changed files with 26 additions and 42 deletions

View File

@ -1,22 +0,0 @@
From ed02ae493ade4ca749462d041ce83261783fa1a1 Mon Sep 17 00:00:00 2001
From: Raphael Michel <mail@raphaelmichel.de>
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
@@ -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")
# 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 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc31cda72ace001da8fe5d42f11c26e514a91fa8c70468739216ddd8de64e2a0
size 64022

3
pyenchant-3.0.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4606fb3c8de3e2ca005adbde21518c8e3bd05e8affdc82ded3c9780fc3a7d891
size 75730

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Mar 20 08:06:02 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to version 3.0.1
* Uncouple PyEnchant version from the Enchant version. This release
should be compatible with Enchant 1.6 to 2.2
* Fix using PyEnchant with Enchant >= 2.0
* Add support for pypy3, Python 3.7 and Python 3.8
* New website, hosted on https://pyenchant.github.io/pyenchant/
* Add enchant.set_prefix_dir()
* Drop support for Python2
- Drop obsolete patch enchant2.patch
-------------------------------------------------------------------
Fri Jul 19 10:11:23 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pyenchant
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,16 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
%define skip_python2 1
Name: python-pyenchant
Version: 2.0.0
Version: 3.0.1
Release: 0
Summary: Python bindings for the Enchant spellchecking system
License: LGPL-2.1-or-later
Group: Development/Languages/Python
URL: https://github.com/rfk/pyenchant/
Source: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
Patch0: enchant2.patch
URL: https://pyenchant.github.io/pyenchant
Source: https://github.com/pyenchant/pyenchant/archive/v%{version}.tar.gz#/pyenchant-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
%if 0%{?suse_version} > 1500
BuildRequires: enchant-2-backend-hunspell
@ -38,7 +38,6 @@ BuildRequires: myspell-en
BuildRequires: myspell-en_AU
BuildRequires: myspell-en_US
BuildRequires: python-rpm-macros
BuildRequires: python3-2to3
%if 0%{?suse_version} > 1500
Requires: enchant-2-backend-hunspell
%else
@ -46,12 +45,6 @@ Requires: enchant
%endif
Provides: python-enchant
BuildArch: noarch
%ifpython2
Provides: PyEnchant = %{version}
Obsoletes: PyEnchant < %{version}
Provides: %{oldpython}-enchant = %{version}
Obsoletes: %{oldpython}-enchant < %{version}
%endif
%python_subpackages
%description
@ -59,9 +52,9 @@ PyEnchant is a spellchecking library for Python, based on the excellent Enchant
%prep
%setup -q -n pyenchant-%{version}
%patch0 -p1
chmod a-x *.txt
chmod a-x *egg-info/*
# cleanup github tarball
rm -rf website .github archive tools
%build
%python_build
@ -72,11 +65,11 @@ chmod a-x *egg-info/*
%check
export LANG=en_US.UTF-8
%python_exec setup.py test
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.txt TODO.txt
%doc README.rst TODO.txt
%{python_sitelib}/enchant
%{python_sitelib}/pyenchant-%{version}-py*.egg-info