%define wheel asciimatics Name: python-%{wheel} Version: 1.15.1 %global forgeurl https://github.com/peterbrittain/%{wheel} %global tag %{version} %global date 20260704 %forgemeta Release: 0%{?dist} # Fill in the actual package summary to submit package to Fedora Summary: A cross-platform package to replace curses (mouse/keyboard input & text colours/positioning) and create ASCII animations # No license information obtained, it's up to the packager to fill it in License: Apache-2.0 URL: %forgeurl Source: %forgesource BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest # Fill in the actual package description to submit package to Fedora %global _description %{expand: A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations. Asciimatics is a package to help people create full-screen text UIs (from interactive forms to ASCII animations) on any platform. It is licensed under the Apache Software Foundation License 2.0. It brings a little joy to anyone who was programming in the 80s... Oh and it provides a single cross-platform Python class to do all the low-level console function you could ask for, including: - Coloured/styled text - including 256 colour terminals and unicode characters (even CJK languages) - Cursor positioning - Keyboard input (without blocking or echoing) including unicode support - Mouse input (terminal permitting) - Detecting and handling when the console resizes - Screen scraping In addition, it provides some simple, high-level APIs to provide more complex features including: - Anti-aliased ASCII line-drawing - Image to ASCII conversion - including JPEG and GIF formats - Many animation effects - e.g. sprites, particle systems, banners, etc. - Various widgets for text UIs - e.g. buttons, text boxes, radio buttons, etc. Currently this package has been proven to work on CentOS 6 & 7, Raspbian (i.e. Debian wheezy), Ubuntu 14.04, Windows 7, 8 & 10, OSX 10.11 and Android Marshmallow (courtesy of https://termux.com), though it should also work for any other platform that provides a working curses implementation. It should be implementation agnostic and has been successfully tested on CPython and PyPy2.} %description %_description %package -n python3-%{wheel} Summary: %{summary} %description -n python3-%{wheel} %_description %prep %forgeautosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files -l %{wheel} %check %pytest tests %files -n python3-%{wheel} -f %{pyproject_files} %changelog %autochangelog