From 0a74eb17331721e64d13cfbfdf4cdbf4d59b638f Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 15 Jun 2023 12:01:30 -0400 Subject: [PATCH] Update BuildRequires to enchant2 The runtime requirement was switched to enchant2 a while ago, but the BuildRequires was missed. The -devel package is no longer required to build though since no binding is built; the library is loaded through ctypes. Also, check imports as a minimal test (since the testsuite is not included in the upstream tarball), and update the project URL. --- python-enchant.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/python-enchant.spec b/python-enchant.spec index dd20274..e35b778 100644 --- a/python-enchant.spec +++ b/python-enchant.spec @@ -2,15 +2,15 @@ Name: python-enchant Version: 3.2.2 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Python bindings for Enchant spellchecking library License: LGPLv2+ -URL: http://packages.python.org/pyenchant/ +URL: https://pyenchant.github.io/pyenchant/ Source0: https://files.pythonhosted.org/packages/source/p/py%{srcname}/py%{srcname}-%{version}.tar.gz BuildArch: noarch -BuildRequires: enchant-devel +BuildRequires: enchant2 %description PyEnchant is a spellchecking library for Python, based on the Enchant @@ -50,7 +50,8 @@ rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/%{srcname}/share # Tests are not included in the upstream tarball -#%%check +%check +%py3_check_import %{srcname} %{srcname}.checker %{srcname}.tokenize %files -n python3-%{srcname} @@ -72,6 +73,10 @@ rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/%{srcname}/share %changelog +* Thu Jun 15 2023 Yaakov Selkowitz - 3.2.2-8 +- Update BuildRequires to enchant2 +- Check imports as a minimal test + * Tue Jun 13 2023 Python Maint - 3.2.2-7 - Rebuilt for Python 3.12