File smassh.spec of Package smassh
#
# spec file for package smassh
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} > 1500
%define pythons %{primary_python}
%else
%{?sle15_python_module_pythons}
%endif
Name:           smassh
Version:        3.1.6
Release:        0
Summary:        TUI based typing test application
License:        GPL-3.0-only
Group:          Amusements/Teaching/Language
URL:            https://github.com/kraanzu/smassh
Source:         %{url}/archive/v%{version}.tar.gz#/smassh-%{version}.tar.gz
Source99:       %{name}.rpmlintrc
BuildRequires:  %{python_module base}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module poetry}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       %{python_module click}
Requires:       %{python_module platformdirs}
Requires:       %{python_module requests}
Requires:       %{python_module textual}
Requires:       symbols-only-nerd-fonts
BuildArch:      noarch
%description
Smassh is a TUI-based typing test application inspired by MonkeyType. Some
features that Smassh comes with include interactive UI, words and time modes
for typing, real-time comparison of speed carets, on-the-fly styles and
settings changing, and multiple theme and language support.
%prep
%autosetup -p1 -n smassh-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%{_bindir}/smassh
%license LICENSE
%doc CHANGELOG.md README.md
%{python_sitelib}/smassh
%{python_sitelib}/smassh-%{version}.dist-info
%changelog