2023-04-29 22:08:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pynput
|
|
|
|
#
|
2023-08-13 19:39:28 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2023-04-29 22:08:40 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-08-13 19:39:28 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
2023-04-29 22:08:40 +00:00
|
|
|
Name: python-pynput
|
|
|
|
Version: 1.7.6
|
|
|
|
Release: 0
|
|
|
|
Summary: Monitor and control user input devices
|
2023-08-13 19:39:28 +00:00
|
|
|
License: LGPL-3.0-only
|
|
|
|
URL: https://github.com/moses-palmer/pynput
|
2023-04-29 22:08:40 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz
|
2023-08-13 19:39:28 +00:00
|
|
|
BuildRequires: %{python_module Sphinx >= 1.3.1}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
# this is part of the auto generated spec file, but opensuse
|
|
|
|
# BuildRequires: %%{python_module setuptools-lint >= 0.5}
|
2023-04-29 22:08:40 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-08-13 19:39:28 +00:00
|
|
|
BuildRequires: %{python_module evdev}
|
|
|
|
BuildRequires: %{python_module python-xlib}
|
2023-04-29 22:08:40 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2023-08-13 19:39:28 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-04-29 22:08:40 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
2023-08-17 07:57:17 +00:00
|
|
|
Requires: python-evdev >= 1.3
|
|
|
|
Requires: python-six
|
|
|
|
Suggests: python-enum34
|
|
|
|
Suggests: python-pyobjc-framework-ApplicationServices >= 8.0
|
|
|
|
Suggests: python-pyobjc-framework-Quartz >= 8.0
|
2023-04-29 22:08:40 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Monitor and control user input devices
|
|
|
|
|
|
|
|
%prep
|
2023-08-13 19:39:28 +00:00
|
|
|
%autosetup -p1 -n pynput-%{version}
|
2023-04-29 22:08:40 +00:00
|
|
|
|
|
|
|
%build
|
2023-08-13 19:39:28 +00:00
|
|
|
%pyproject_wheel
|
2023-04-29 22:08:40 +00:00
|
|
|
|
|
|
|
%install
|
2023-08-13 19:39:28 +00:00
|
|
|
%pyproject_install
|
2023-04-29 22:08:40 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
2023-08-13 19:39:28 +00:00
|
|
|
%license COPYING.LGPL
|
|
|
|
%{python_sitelib}/pynput
|
|
|
|
%{python_sitelib}/pynput-%{version}.dist-info
|
2023-04-29 22:08:40 +00:00
|
|
|
|
|
|
|
%changelog
|