%global srcname Pyphen %global modname pyphen Name: python-pyphen Version: 0.13.2 Release: 1%{?dist} Summary: Pure Python module to hyphenate text License: GPLv2+ or LGPLv2+ or MPLv1.1 URL: https://github.com/Kozea/Pyphen Source0: https://github.com/Kozea/%{srcname}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz Patch1: %{name}-strip-optional-dependencies.patch BuildArch: noarch BuildRequires: pyproject-rpm-macros %description Pyphen is a pure Python module to hyphenate text using existing hyphenation dictionaries, e.g., from Libreoffice language packs. %package -n python3-pyphen Summary: Pure Python module to hyphenate text %description -n python3-pyphen Pyphen is a pure Python module to hyphenate text using existing hyphenation dictionaries, e.g., from Libreoffice language packs. %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires -r -x test %build %pyproject_wheel %install %pyproject_install %check %pytest %files -n python3-pyphen %license LICENSE COPYING.GPL COPYING.LGPL COPYING.MPL %doc README.rst %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}.dist-info/ %changelog * Fri Jul 12 2024 Felix Schwarz - 0.13.2-1 - initial package for EPEL 9