forked from pool/python-pynput
Accepting request 1103641 from home:gregfreemyer:branches:devel:languages:python
- boo#1214205 shows the spec file has some serious issues - This package was not using the latest python packaging guidelines - I basically re-did it from scratch It is better to review this without referencing the current package OBS-URL: https://build.opensuse.org/request/show/1103641 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynput?expand=0&rev=3
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
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
|
|
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 13 01:48:04 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||||
|
|
||||||
|
- boo#1214205 shows the spec file has some serious issues
|
||||||
|
- This package was not using the latest python packaging guidelines
|
||||||
|
- I basically re-did it from scratch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 28 13:43:30 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
Fri Apr 28 13:43:30 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pynput
|
# spec file for package python-pynput
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,52 +15,54 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# 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-%{**}}
|
%{?sle15_python_module_pythons}
|
||||||
|
|
||||||
Name: python-pynput
|
Name: python-pynput
|
||||||
Version: 1.7.6
|
Version: 1.7.6
|
||||||
Release: 0
|
Release: 0
|
||||||
License: LGPL-3.0
|
|
||||||
Summary: Monitor and control user input devices
|
Summary: Monitor and control user input devices
|
||||||
Url: https://github.com/moses-palmer/pynput
|
License: LGPL-3.0-only
|
||||||
|
URL: https://github.com/moses-palmer/pynput
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz
|
||||||
Patch0: unicode.patch
|
BuildRequires: %{python_module Sphinx >= 1.3.1}
|
||||||
Patch1: no-setuptools-lint.patch
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: python-rpm-macros
|
# this is part of the auto generated spec file, but opensuse
|
||||||
|
# BuildRequires: %%{python_module setuptools-lint >= 0.5}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module evdev}
|
||||||
|
BuildRequires: %{python_module python-xlib}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: python3-Sphinx >= 1.3.1
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-six
|
Requires: %{python_module evdev >= 1.3}
|
||||||
Suggests: python-evdev >= 1.3
|
Requires: %{python_module six}
|
||||||
Suggests: python-python-xlib >= 0.17
|
Suggests: %{python_module enum34}
|
||||||
Suggests: python-pyobjc-framework-Quartz >= 7.0
|
Suggests: %{python_module pyobjc-framework-ApplicationServices >= 8.0}
|
||||||
|
Suggests: %{python_module pyobjc-framework-Quartz >= 8.0}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Monitor and control user input devices
|
Monitor and control user input devices
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pynput-%{version}
|
%autosetup -p1 -n pynput-%{version}
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING.LGPL
|
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%license COPYING.LGPL
|
||||||
|
%{python_sitelib}/pynput
|
||||||
|
%{python_sitelib}/pynput-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,19 +0,0 @@
|
|||||||
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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
-__author__ = u'Moses Palmér'
|
|
||||||
+__author__ = u'Moses Palmer'
|
|
||||||
__version__ = (1, 7, 6)
|
|
Reference in New Issue
Block a user