## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global forgeurl https://github.com/tmbo/questionary Version: 2.1.1 %global tag %{version} %forgemeta Name: python-questionary Release: %autorelease Summary: Python library to build pretty command line user prompts License: MIT URL: %{forgeurl} Source: %{forgesource} # Fix tests with prompt-toolkit >= 3.0.52 Patch: https://github.com/tmbo/questionary/commit/7dacad5c304644098b5cf5817950da3dccda03ab.patch # Fix tests with prompt-toolkit that distinguishes Backspace from Ctrl-H # https://src.fedoraproject.org/rpms/python-prompt-toolkit/c/f3de74d91053d62d4ac8642202bd9be23dadc007 Patch: %{name}-backspace.patch BuildArch: noarch BuildRequires: python3-devel # Tests BuildRequires: python3dist(pytest) # Documentation BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-autodoc-typehints) BuildRequires: python3dist(sphinx-copybutton) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: texinfo %global _description %{expand: Questionary is a Python library for effortlessly building pretty command line interfaces.} %description %_description %package -n python3-questionary Summary: %{summary} %description -n python3-questionary %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel export PYTHONPATH=$PWD pushd docs sphinx-build -b texinfo . texinfo pushd texinfo makeinfo --docbook questionary.texi popd %install %pyproject_install %pyproject_save_files -l questionary install -pDm0644 docs/texinfo/questionary.xml \ %{buildroot}%{_datadir}/help/en/python-questionary/questionary.xml find docs/texinfo/questionary-figures -type f -exec install -pDm 755 "{}" \ "%{buildroot}%{_datadir}/help/en/python-questionary/questionary-figures/{}" \; %check %pyproject_check_import %pytest %files -n python3-questionary -f %{pyproject_files} %doc README.md %doc examples %dir %{_datadir}/help/en %lang(en) %{_datadir}/help/en/python-questionary %changelog ## START: Generated by rpmautospec * Fri Aug 07 2026 Filipe Rosset - 2.1.1-2 - update spec to use forge macros * Thu Jul 30 2026 Jerry James - 2.1.1-1 - Version 2.1.1 - Add patch to fix build with prompt-toolkit 3.0.52 - Add patch to fix build when CtrlH != Backspace - Tell %%pyproject_save_files that license files are installed - Remove unnecessary bootstrap mode - Remove unnecessary SETUPTOOLS_SCM_PRETEND_VERSION settings * Thu Jul 16 2026 Fedora Release Engineering - 2.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Sat Jan 17 2026 Fedora Release Engineering - 2.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Wed Oct 22 2025 Benson Muite - 2.1.0-2 - Full package build * Wed Oct 22 2025 Benson Muite - 2.1.0-1 - Initial import bz#2385917 ## END: Generated by rpmautospec