# # spec file for package python-getch # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python3 1 Name: python2-getch Version: 1.0 Release: 1.1 Summary: the getch module License: MIT Group: Development/Languages/Python Url: https://pypi.org/project/getch Source: https://files.pythonhosted.org/packages/56/f7/cde35f44d267df7122005c40f1a15cf5e3c60ffc83a2ab00d11d99e9d8c4/getch-1.0-python2.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: fdupes %python_subpackages %description The getch module does single-char input by providing wrappers for the conio.h library functions getch() (gets a character from user input, no output - this is useful for password input) and getche() (also outputs to the screen), if conio.h does not exist, it uses a stub-library using termios.h and other headers to emulate this behaviour: %prep %setup -q -n getch-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %{python_sitearch}/* %changelog * Mon May 25 2020 Holger Bruenjes - initial package for version 1.4.1