python-libevdev 0.5

This commit is contained in:
Peter Hutterer 2018-04-24 09:54:21 +10:00
parent cc6e0e004a
commit 9bf087e07a
4 changed files with 7 additions and 31 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/python-libevdev-0.4.tar.gz /python-libevdev-0.4.tar.gz
/python-libevdev-0.5.tar.gz

View File

@ -1,26 +0,0 @@
From 17ae4427875c8e7cdc565ba32839af93e0bd2f24 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Mon, 26 Feb 2018 16:40:29 +1000
Subject: [PATCH] device: fix setting an EV_REP value
Leftover from earlier versions
---
libevdev/device.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libevdev/device.py b/libevdev/device.py
index 618164f..2ff63ce 100644
--- a/libevdev/device.py
+++ b/libevdev/device.py
@@ -741,7 +741,7 @@ class Device(object):
if t == libevdev.EV_ABS:
data = self.absinfo[c]
elif t == libevdev.EV_REP:
- data = self.event_value(c)
+ data = self.value[c]
else:
data = None
d.enable(c, data)
--
2.14.3

View File

@ -1,14 +1,12 @@
Name: python-libevdev Name: python-libevdev
Version: 0.4 Version: 0.5
Release: 2%{?dist} Release: 1%{?dist}
Summary: Python bindings to the libevdev evdev device wrapper library Summary: Python bindings to the libevdev evdev device wrapper library
License: MIT License: MIT
URL: https://pypi.python.org/pypi/libevdev/ URL: https://pypi.python.org/pypi/libevdev/
Source0: http://github.com/whot/python-libevdev/archive/%{version}/%{name}-%{version}.tar.gz Source0: http://github.com/whot/python-libevdev/archive/%{version}/%{name}-%{version}.tar.gz
Patch01: 0001-device-fix-setting-an-EV_REP-value.patch
BuildArch: noarch BuildArch: noarch
%description %description
@ -48,6 +46,9 @@ devices and create uinput devices.
%{python3_sitelib}/libevdev-%{version}-py*.egg-info %{python3_sitelib}/libevdev-%{version}-py*.egg-info
%changelog %changelog
* Tue Apr 24 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.5-1
- python-libevdev 0.5
* Thu Apr 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.4-2 * Thu Apr 19 2018 Peter Hutterer <peter.hutterer@redhat.com> 0.4-2
- Fix failure when setting up EV_REP - Fix failure when setting up EV_REP

View File

@ -1 +1 @@
SHA512 (python-libevdev-0.4.tar.gz) = 499ba25b2209ac09a6d48e18b08c0ff4831af68a46c899b5781f007c9386aca89be33897612bfeb30c6520910f675d64ce9855c2f645696ae6640826f250efbc SHA512 (python-libevdev-0.5.tar.gz) = f6cf2c015628443588ff67f9c138f16d90f08e41ed6d2be740f7e76f20a87e2996d4e192ceec90103d163b556e273151439e1bad377e3ee1793b1967e38f1112