diff --git a/0001-device-fix-setting-an-EV_REP-value.patch b/0001-device-fix-setting-an-EV_REP-value.patch new file mode 100644 index 0000000..2f6e2a6 --- /dev/null +++ b/0001-device-fix-setting-an-EV_REP-value.patch @@ -0,0 +1,26 @@ +From 17ae4427875c8e7cdc565ba32839af93e0bd2f24 Mon Sep 17 00:00:00 2001 +From: Peter Hutterer +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 + diff --git a/python-libevdev.spec b/python-libevdev.spec index eb85c6a..9362344 100644 --- a/python-libevdev.spec +++ b/python-libevdev.spec @@ -1,12 +1,14 @@ Name: python-libevdev Version: 0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Python bindings to the libevdev evdev device wrapper library License: MIT URL: https://pypi.python.org/pypi/libevdev/ 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 %description @@ -29,7 +31,7 @@ devices and create uinput devices. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 %build @@ -46,6 +48,9 @@ devices and create uinput devices. %{python3_sitelib}/libevdev-%{version}-py*.egg-info %changelog +* Thu Apr 19 2018 Peter Hutterer 0.4-2 +- Fix failure when setting up EV_REP + * Mon Feb 26 2018 Peter Hutterer - 0.4-1 - initial import (#1549003)