[packages/python3-evdev] - up to 2.0.0

baggins baggins at pld-linux.org
Fri Sep 25 23:28:01 CEST 2026


commit 810e9ef3c433247155906a02a2ae861eb9b05edc
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Sep 25 23:27:46 2026 +0200

    - up to 2.0.0

 python-evdev.spec  | 99 ------------------------------------------------------
 python3-evdev.spec | 49 +++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 99 deletions(-)
---
diff --git a/python-evdev.spec b/python-evdev.spec
deleted file mode 100644
index be52f94..0000000
--- a/python-evdev.spec
+++ /dev/null
@@ -1,99 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-%define 	module	evdev
-Summary:	Python bindings for the Linux input subsystem
-Name:		python-%{module}
-Version:	1.6.0
-Release:	1
-License:	BSD
-Group:		Libraries/Python
-Source0:	https://files.pythonhosted.org/packages/source/e/evdev/%{module}-%{version}.tar.gz
-# Source0-md5:	2b4fda53215359aabc561906f09845d4
-URL:		https://github.com/gvalkov/python-evdev
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel
-BuildRequires:	python-setuptools
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-setuptools
-%endif
-Requires:	python-modules
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This package provides bindings to the generic input event interface in
-Linux. The evdev interface serves the purpose of passing events
-generated in the kernel directly to userspace through character
-devices that are typically located in /dev/input/.
-
-This package also comes with bindings to uinput, the userspace input
-subsystem. Uinput allows userspace programs to create and handle input
-devices that can inject events directly into the input subsystem.
-
-%package -n python3-%{module}
-Summary:	Python bindings for the Linux input subsystem
-Group:		Libraries/Python
-Requires:	python3-modules
-
-%description -n python3-%{module}
-This package provides bindings to the generic input event interface in
-Linux. The evdev interface serves the purpose of passing events
-generated in the kernel directly to userspace through character
-devices that are typically located in /dev/input/.
-
-This package also comes with bindings to uinput, the userspace input
-subsystem. Uinput allows userspace programs to create and handle input
-devices that can inject events directly into the input subsystem.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst
-%dir %{py_sitedir}/%{module}
-%{py_sitedir}/%{module}/*.py[co]
-%attr(755,root,root) %{py_sitedir}/%{module}/*.so
-%{py_sitedir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc README.rst
-%dir %{py3_sitedir}/%{module}
-%{py3_sitedir}/%{module}/*.py
-%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
-%{py3_sitedir}/%{module}/__pycache__
-%{py3_sitedir}/%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python3-evdev.spec b/python3-evdev.spec
new file mode 100644
index 0000000..d601bae
--- /dev/null
+++ b/python3-evdev.spec
@@ -0,0 +1,49 @@
+%define		module	evdev
+Summary:	Python bindings for the Linux input subsystem
+Name:		python3-%{module}
+Version:	2.0.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/source/e/evdev/%{module}-%{version}.tar.gz
+# Source0-md5:	d2352944714abd2a29e817045261df05
+URL:		https://github.com/gvalkov/python-evdev
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	python3-devel
+BuildRequires:	python3-setuptools
+Requires:	python3-modules >= 3.11
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides bindings to the generic input event interface in
+Linux. The evdev interface serves the purpose of passing events
+generated in the kernel directly to userspace through character
+devices that are typically located in /dev/input/.
+
+This package also comes with bindings to uinput, the userspace input
+subsystem. Uinput allows userspace programs to create and handle input
+devices that can inject events directly into the input subsystem.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%dir %{py3_sitedir}/%{module}
+%{py3_sitedir}/%{module}/*.py
+%{py3_sitedir}/%{module}/py.typed
+%attr(755,root,root) %{py3_sitedir}/%{module}/*.so
+%{py3_sitedir}/%{module}/__pycache__
+%{py3_sitedir}/%{module}-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-evdev.git/commitdiff/810e9ef3c433247155906a02a2ae861eb9b05edc



More information about the pld-cvs-commit mailing list