From b28e9f5ed7bbfc938e5c77e3976022fa2c18522d3a0739841f18fb7a11718c0e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 29 Apr 2023 22:08:40 +0000 Subject: [PATCH] Accepting request 1083542 from home:fcrozat:branches:home:simotek:base new package, to be used for streamdeck-ui OBS-URL: https://build.opensuse.org/request/show/1083542 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynput?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + no-setuptools-lint.patch | 12 ++++++++ pynput-1.7.6.tar.gz | 3 ++ python-pynput.changes | 18 +++++++++++ python-pynput.spec | 66 ++++++++++++++++++++++++++++++++++++++++ unicode.patch | 19 ++++++++++++ 7 files changed, 142 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 no-setuptools-lint.patch create mode 100644 pynput-1.7.6.tar.gz create mode 100644 python-pynput.changes create mode 100644 python-pynput.spec create mode 100644 unicode.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/no-setuptools-lint.patch b/no-setuptools-lint.patch new file mode 100644 index 0000000..da31592 --- /dev/null +++ b/no-setuptools-lint.patch @@ -0,0 +1,12 @@ +Index: pynput-1.7.3/setup.py +=================================================================== +--- pynput-1.7.3.orig/setup.py ++++ pynput-1.7.3/setup.py +@@ -23,7 +23,6 @@ RUNTIME_PACKAGES = [ + + #: Additional requirements used during setup + SETUP_PACKAGES = [ +- 'setuptools-lint >=0.5', + 'sphinx >=1.3.1'] + + #: Packages requires for different environments diff --git a/pynput-1.7.6.tar.gz b/pynput-1.7.6.tar.gz new file mode 100644 index 0000000..2496efc --- /dev/null +++ b/pynput-1.7.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a5726546da54116b687785d38b1db56997ce1d28e53e8d22fc656d8b92e533c +size 79501 diff --git a/python-pynput.changes b/python-pynput.changes new file mode 100644 index 0000000..fac56d8 --- /dev/null +++ b/python-pynput.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Fri Apr 28 13:43:30 UTC 2023 - Frederic Crozat + +- Update to 1.7.6 +- Ship license as part of generated packages. +- Do not try to build on python2 and simplify Suggests list. +- Only build on primary python. + +------------------------------------------------------------------- +Mon Aug 2 08:18:36 UTC 2021 - Simon Lees + +- Update to 1.7.3 and prep for factory inclusion + * Add no-setuptools-lint.patch from suggestion on #opensuse-python + +------------------------------------------------------------------- +Wed Apr 3 17:05:43 UTC 2019 - Lars Vogdt + +- initial version 1.4.2 diff --git a/python-pynput.spec b/python-pynput.spec new file mode 100644 index 0000000..ea4349f --- /dev/null +++ b/python-pynput.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pynput +# +# Copyright (c) 2021 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/ +# + +%global skip_python2 1 +%global pythons %{primary_python} + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pynput +Version: 1.7.6 +Release: 0 +License: LGPL-3.0 +Summary: Monitor and control user input devices +Url: https://github.com/moses-palmer/pynput +Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz +Patch0: unicode.patch +Patch1: no-setuptools-lint.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: python3-Sphinx >= 1.3.1 +# SECTION test requirements +BuildRequires: %{python_module six} +# /SECTION +BuildRequires: fdupes +Requires: python-six +Suggests: python-evdev >= 1.3 +Suggests: python-python-xlib >= 0.17 +Suggests: python-pyobjc-framework-Quartz >= 7.0 +BuildArch: noarch + +%python_subpackages + +%description +Monitor and control user input devices + +%prep +%setup -q -n pynput-%{version} +%autopatch -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license COPYING.LGPL +%doc README.rst +%{python_sitelib}/* + +%changelog diff --git a/unicode.patch b/unicode.patch new file mode 100644 index 0000000..da6fa0b --- /dev/null +++ b/unicode.patch @@ -0,0 +1,19 @@ +Index: pynput-1.7.6/lib/pynput/_info.py +=================================================================== +--- pynput-1.7.6.orig/lib/pynput/_info.py 2022-01-01 20:57:22.000000000 +0100 ++++ pynput-1.7.6/lib/pynput/_info.py 2023-04-23 18:22:28.036346734 +0200 +@@ -1,6 +1,6 @@ + # coding=utf-8 + # pystray +-# Copyright (C) 2015-2022 Moses Palmér ++# Copyright (C) 2015-2022 Moses Palmer + # + # This program is free software: you can redistribute it and/or modify it under + # the terms of the GNU Lesser General Public License as published by the Free +@@ -15,5 +15,5 @@ + # You should have received a copy of the GNU Lesser General Public License + # along with this program. If not, see . + +-__author__ = u'Moses Palmér' ++__author__ = u'Moses Palmer' + __version__ = (1, 7, 6)