%global pypi_name unicode-segmentation-rs %global srcname unicode_segmentation_rs %global common_description %{expand: Python bindings for the Rust unicode-segmentation and unicode-width crates. It provides functions to correctly split strings by words, sentences, or grapheme clusters according to Unicode Standard Annex #29.} Name: python-%{pypi_name} Version: 0.2.4 Release: 3%{?dist} Summary: Unicode segmentation and width for Python using Rust # The source is MIT (except for certain non-code files licensed CC0-1.0 that do # not contributing to the licenses of the binary RPMs). Statically linked Rust # dependencies contribute the following (from the output of # %%{cargo_license_summary}): # # MIT # MIT OR Apache-2.0 License: MIT AND (MIT OR Apache-2.0) URL: https://github.com/WeblateOrg/unicode-segmentation-rs Source0: https://files.pythonhosted.org/packages/source/u/%{srcname}/%{srcname}-%{version}.tar.gz # fix(deps): update rust crate pyo3 to 0.29.0 (#243) # https://github.com/WeblateOrg/unicode-segmentation-rs/commit/b9ee42956f1c95561fa09fe99a46441532729ac5 # # fix(deps): don’t depend on deprecated pyo3/generate-import-lib feature # https://github.com/WeblateOrg/unicode-segmentation-rs/pull/271 # # Backported to v0.2.4. Patch: unicode_segmentation_rs-0.2.4-pyo3-0.29.patch BuildRequires: cargo-rpm-macros BuildRequires: gcc BuildRequires: %{py3_dist pytest} %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{common_description} %prep %autosetup -n %{srcname}-%{version} sed -i 's/maturin>=1.10/maturin>=1.9/' pyproject.toml %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %pyproject_buildrequires %build %cargo_license_summary %{cargo_license} > LICENSE.dependencies %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %pyproject_check_import %pytest -v %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %license LICENSE.dependencies %doc README.md %changelog * Wed Jul 22 2026 Python Maint - 0.2.4-3 - Rebuilt for Python 3.15.0b4 ABI change * Thu Jul 16 2026 Fedora Release Engineering - 0.2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jul 02 2026 Benjamin A. Beasley - 0.2.4-1 - Update to version 0.2.4 (close RHBZ#2496486) - Update to PyO3 0.29 * Wed Jun 03 2026 Python Maint - 0.2.0-3 - Rebuilt for Python 3.15 * Sat Jan 17 2026 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Tue Dec 16 2025 Sudip Shil - 0.2.0-1 - Initial packaging of python-unicode-segmentation-rs