2011-04-15 13:47:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyenchant
|
|
|
|
#
|
2021-01-22 07:21:18 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-04-15 13:47:52 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2013-06-17 12:52:59 +00:00
|
|
|
|
2019-01-08 11:26:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-04-15 13:47:52 +00:00
|
|
|
#
|
|
|
|
|
2013-06-17 12:52:59 +00:00
|
|
|
|
2017-08-31 16:51:54 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-20 09:15:49 +00:00
|
|
|
%define skip_python2 1
|
2017-08-31 16:51:54 +00:00
|
|
|
Name: python-pyenchant
|
2021-01-22 07:21:18 +00:00
|
|
|
Version: 3.2.0
|
2011-04-15 13:47:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for the Enchant spellchecking system
|
2018-08-24 13:05:32 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2011-04-15 13:47:52 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-03-20 09:15:49 +00:00
|
|
|
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}
|
2017-08-31 16:51:54 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-01-08 11:26:59 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2018-08-24 13:05:32 +00:00
|
|
|
BuildRequires: enchant-2-backend-hunspell
|
2019-01-08 11:26:59 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: enchant
|
|
|
|
%endif
|
2017-08-31 16:51:54 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: myspell-en
|
|
|
|
BuildRequires: myspell-en_AU
|
|
|
|
BuildRequires: myspell-en_US
|
2018-08-24 13:05:32 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-01-08 11:26:59 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2018-08-24 13:05:32 +00:00
|
|
|
Requires: enchant-2-backend-hunspell
|
2019-01-08 11:26:59 +00:00
|
|
|
%else
|
|
|
|
Requires: enchant
|
|
|
|
%endif
|
2018-08-24 13:05:32 +00:00
|
|
|
Provides: python-enchant
|
2012-02-20 13:35:59 +00:00
|
|
|
BuildArch: noarch
|
2017-08-31 16:51:54 +00:00
|
|
|
%python_subpackages
|
2011-04-15 13:47:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
PyEnchant is a spellchecking library for Python, based on the excellent Enchant library.
|
|
|
|
|
|
|
|
%prep
|
2017-08-31 16:51:54 +00:00
|
|
|
%setup -q -n pyenchant-%{version}
|
|
|
|
chmod a-x *.txt
|
2020-03-20 09:15:49 +00:00
|
|
|
# cleanup github tarball
|
|
|
|
rm -rf website .github archive tools
|
2011-04-15 13:47:52 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-31 16:51:54 +00:00
|
|
|
%python_build
|
2011-04-15 13:47:52 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-31 16:51:54 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2020-05-21 16:11:05 +00:00
|
|
|
%python_exec -c 'import enchant; print(vars(enchant.Dict()))'
|
2020-05-31 18:34:13 +00:00
|
|
|
%pytest
|
2011-04-15 13:47:52 +00:00
|
|
|
|
2017-08-31 16:51:54 +00:00
|
|
|
%files %{python_files}
|
2018-08-24 13:05:32 +00:00
|
|
|
%license LICENSE.txt
|
2020-03-20 09:15:49 +00:00
|
|
|
%doc README.rst TODO.txt
|
2017-08-31 16:51:54 +00:00
|
|
|
%{python_sitelib}/enchant
|
|
|
|
%{python_sitelib}/pyenchant-%{version}-py*.egg-info
|
2011-04-15 13:47:52 +00:00
|
|
|
|
|
|
|
%changelog
|