14
0

Accepting request 786750 from home:mcalabkova:branches:devel:languages:python

- 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

OBS-URL: https://build.opensuse.org/request/show/786750
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyenchant?expand=0&rev=25
This commit is contained in:
Tomáš Chvátal
2020-03-20 09:15:49 +00:00
committed by Git OBS Bridge
parent 461ccc4c4f
commit 7551f45bcb
5 changed files with 26 additions and 42 deletions

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