%global forgeurl https://github.com/damonlynch/hatch-argparse-manpage %global version %(date +%Y%m%d) %global commit 9d91b708a5feb655529fc07be66735f96e4d8d7f %global _forgeversionsuffix %{scm}%(printf %.7s %{commit}) %global source_date_epoch_from_changelog 0 %forgemeta Name: python-hatch-argparse-manpage Version: %{forgeversion} Release: %{autorelease} Summary: Hatch build hook for argparse-manpage License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: pkgconfig(python3) BuildRequires: python3dist(argparse-manpage) BuildRequires: python3dist(hatchling) BuildRequires: python3dist(pip) BuildRequires: python3dist(rich) %description Hatch Argparse Manpage provides a build hook for argparse-manpage. It allows to generate manual pages from ArgumentParser objects. %prep %forgesetup %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files hatch_argparse_manpage %__install -p -m 644 -D -t %{buildroot}%{_licensedir}/%{name} LICENSE.txt %__install -p -m 644 -D -t %{buildroot}%{_pkgdocdir} CHANGES.md README.md %check %pyproject_check_import %files -f %{pyproject_files} %license %{_licensedir}/* %doc %{_pkgdocdir}