%global commit ba8183b07c4a250ee33f3466832dd741c7849a2a %global shortcommit ba8183b0 %global commitdate 20250531 # Documentation contains javascript, using # python-mkdocs-print-site-plugin allows one to have # a single page with fewer unnecessary web assets %bcond builddocs 0 Name: python-tamilstring Version: 1.5.31 Release: %autorelease Summary: Manage tamil unicode characters License: MIT URL: https://gitlab.com/boopalan-dev/tamilstring # PyPI source does not have documentation Source: %{url}/-/archive/%{commit}/tamilstring-%{shortcommit}.tar.gz # Update metadata to not use deprecated form # https://gitlab.com/boopalan-dev/tamilstring/-/merge_requests/6 Patch: license-metadata.patch BuildArch: noarch BuildRequires: python3-devel %if %{with builddocs} # Documentation BuildRequires: python3dist(mkdocs) BuildRequires: python3dist(mkdocs-material) %endif %global _description %{expand: TamilString is a Python library designed to simplify the handling and manipulation of Tamil Unicode characters, enabling developers to process Tamil text more efficiently in their applications.} %description %_description %package -n python3-tamilstring Summary: %{summary} %description -n python3-tamilstring %_description %if %{with builddocs} %package doc Summary: Documentation for TamilString %description doc %_description Documentation files %endif %prep %autosetup -p1 -n tamilstring-%{commit} %generate_buildrequires %pyproject_buildrequires -x dev %build %pyproject_wheel %if %{with builddocs} mkdocs build --site-dir public %endif %install %pyproject_install %pyproject_save_files -l tamilstring %check %pyproject_check_import %pytest %files -n python3-tamilstring -f %{pyproject_files} %if %{with builddocs} %files doc %doc public %endif %changelog %autochangelog