## START: Set by rpmautospec ## (rpmautospec version 0.7.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 Name: python-hanzidentifier Version: 1.3.0 Release: %autorelease Summary: Identify Chinese text as Simplified or Traditional License: MIT URL: https://github.com/tsroten/hanzidentifier Source: %{url}/archive/v%{version}/hanzidentifier-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Hanzi Identifier is a simple Python module that identifies a string of text as having Simplified or Traditional characters.} %description %_description %package -n python3-hanzidentifier Summary: %{summary} %description -n python3-hanzidentifier %_description %prep %autosetup -p1 -n hanzidentifier-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files hanzidentifier %check %pyproject_check_import %pytest %files -n python3-hanzidentifier -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri Mar 28 2025 John Doe - 1.3.0-1 - Uncommitted changes ## END: Generated by rpmautospec