## 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-dragonmapper Version: 0.3.0 Release: %autorelease Summary: Identification and conversion functions for Chinese text processing License: MIT URL: https://github.com/tsroten/dragonmapper Source: %{url}/archive/v%{version}/dragonmapper-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Dragon Mapper is a Python library that provides identification and conversion functions for Chinese text processing. Features - Convert between Chinese characters, Pinyin, Zhuyin, and the International Phonetic Alphabet. - Identify a string as Traditional or Simplified Chinese, Pinyin, Zhuyin, or the International Phonetic Alphabet.} %description %_description %package -n python3-dragonmapper Summary: %{summary} %description -n python3-dragonmapper %_description %prep %autosetup -p1 -n dragonmapper-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files dragonmapper %check %pyproject_check_import %pytest %files -n python3-dragonmapper -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Fri Mar 21 2025 John Doe - 0.3.0-1 - Uncommitted changes ## END: Generated by rpmautospec