## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name pfzy %global modname pfzy Name: python-%{modname} Version: 0.3.4 Release: %autorelease Summary: Python port of the fzy fuzzy string matching algorithm License: MIT URL: https://github.com/kazhala/pfzy Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Python port of the fzy fuzzy string matching algorithm. The fzy fuzzy matching algorithm can calculate the matching score while also providing the matching indices which fuzzy finder applications can use to provide extra highlights. This package provides three main features: an async fuzzy match function, a fzy scorer for fuzzy string matching, and a substring scorer for exact matches. It addresses a gap left by similar tools like fuzzywuzzy, which don't provide matching indices essential for fuzzy finder applications that need to highlight matched characters.} %description %{_description} %package -n python3-%{modname} Summary: %{summary} %description -n python3-%{modname} %{_description} %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L %{modname} %check # Import check to verify the package is installable %pyproject_check_import # Note: Tests disabled as they may require additional dependencies # not yet packaged for Fedora %files -n python3-%{modname} -f %{pyproject_files} %doc README.md %license LICENSE %changelog ## START: Generated by rpmautospec * Wed Mar 04 2026 John Doe - 0.3.4-1 - Uncommitted changes ## END: Generated by rpmautospec