## 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-zhon Version: 2.1.1 Release: %autorelease Summary: Zhon provides constants used in Chinese text processing. License: MIT URL: https://github.com/tsroten/zhon Source: %{url}/archive/v%{version}/zhon-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Zhon is a Python library that provides constants commonly used in Chinese text processing. Zhon includes the following commonly-used constants: - CJK characters and radicals - Chinese punctuation marks - Chinese sentence regular expression pattern - Pinyin vowels, consonants, lowercase, uppercase, and punctuation - Pinyin syllable, word, and sentence regular expression patterns - Zhuyin characters and marks - Zhuyin syllable regular expression pattern - CC-CEDICT characters} %description %_description %package -n python3-zhon Summary: %{summary} %description -n python3-zhon %_description %prep %autosetup -n zhon-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files zhon %check %pyproject_check_import %pytest %files -n python3-zhon -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri Mar 21 2025 John Doe - 2.1.1-1 - Uncommitted changes ## END: Generated by rpmautospec