Name:             python-sphinxcontrib-spelling
Version:          8.0.1
Release:          1
Summary:          Sphinx-based documentation spell checker
License:          BSD-2-Clause
URL:              https://github.com/sphinx-contrib/spelling
Source0:          https://files.pythonhosted.org/packages/source/s/sphinxcontrib_spelling/sphinxcontrib_spelling-%{version}.tar.gz
BuildArch:        noarch
BuildRequires:    python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-devel python%{python3_pkgversion}-pbr
BuildRequires:    python%{python3_pkgversion}-fixtures python%{python3_pkgversion}-six
BuildRequires:    python%{python3_pkgversion}-enchant python%{python3_pkgversion}-sphinx hunspell-en hunspell-de
BuildRequires:    python%{python3_pkgversion}-pytest
BuildRequires:    python3-pip  python3-hatchling python3-hatch-vcs python3-wheel


%description
It contains sphinxcontrib.spelling, a spell checker for
Sphinx-based documents. It uses PyEnchant to generate
reports showing misspelled words.

%package -n       python%{python3_pkgversion}-sphinxcontrib-spelling
Summary:          Sphinx-based documentation spell checker
%{?python_provide:%python_provide python%{python3_pkgversion}-sphinxcontrib-spelling}
Requires:         python%{python3_pkgversion}-enchant python%{python3_pkgversion}-six
Requires:         python%{python3_pkgversion}-sphinx

%description -n python%{python3_pkgversion}-sphinxcontrib-spelling
It contains sphinxcontrib.spelling, a spell checker for
Sphinx-based documents. It uses PyEnchant to generate
reports showing misspelled words.

%prep
%autosetup -p1 -n sphinxcontrib_spelling-%{version}

%build
%pyproject_build

%install
%pyproject_install

%check
%{__python3} -m pytest -k 'not test_filter'

%files -n python%{python3_pkgversion}-sphinxcontrib-spelling
%doc README LICENSE
%{python3_sitelib}/sphinxcontrib*

%changelog
* Mon Aug 04 2025 yaoxin <1024769339@qq.com> - 8.0.1-1
- Update to 8.0.1:
  * Fix spelling:word-list example
  * build(deps): bump actions/setup-python from 2 to 4
  * add docs for setting up enchant library
  * gracefully handle if git is not installed
  * use json api to retrieve names from pypi.org

* Tue Aug 22 2023 xu_ping <707078654@qq.com> - 8.0.0-1
- Update package to version 8.0.0

* Thu Jul 13 2023 sunhui <sunhui@kylinos.cn> - 7.7.0-1
- Update package to version 7.7.0

* Thu Jul 07 2022 wangkai <wangkai385@h-partners.com> - 7.6.0-1
- Update to 7.6.0

* Sat Jan 08 2022 Ge Wang <wangge20@huawei.com> - 4.2.1-3
- Use unittest replace nose due to python-nose is abandonted

* Tue Aug 11 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 4.2.1-2
- Remove unused tar package

* Mon Aug 10 2020 zhangjiapeng <zhangjiapeng9@huawei.com> - 4.2.1-1
- Update to 4.2.1

* Wed Jan 8 2020 likexin <likexin4@huawei.com> - 4.2.0-2
- package init