forked from gvalkov/python-evdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-evdev.spec
More file actions
91 lines (68 loc) · 2.91 KB
/
python-evdev.spec
File metadata and controls
91 lines (68 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%global gittag0 v0.6.1
%global _summary Python bindings for the Linux input handling subsystem
Name: python-evdev
Version: 0.6.1
Release: 1%{?dist}
Summary: %{_summary}
License: BSD
URL: https://python-evdev.readthedocs.io
Source0: https://github.com/gvalkov/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%{version}.tar.gz
Group: Development/Libraries
BuildRequires: kernel-headers python3-devel python3-setuptools
BuildRequires: python2-devel python-setuptools
%description
This package provides bindings to the Linux generic input event interface.
%package -n python2-evdev
Summary: %{_summary}
Group: Development/Libraries
%{?python_provide:%python_provide python2-evdev}
%description -n python2-evdev
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.
In other words, python-evdev allows you to read and write input events on Linux.
An event can be a key or button press, a mouse movement or a tap on a
touchscreen.
%package -n python3-evdev
Summary: %{_summary}
Group: Development/Libraries
%{?python_provide:%python_provide python3-evdev}
%description -n python3-evdev
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.
In other words, python-evdev allows you to read and write input events on Linux.
An event can be a key or button press, a mouse movement or a tap on a
touchscreen.
#------------------------------------------------------------------------------
%prep
%autosetup -n %{name}-%{version}
#------------------------------------------------------------------------------
%build
%py2_build
%py3_build
#------------------------------------------------------------------------------
%install
%py2_install
%py3_install
#------------------------------------------------------------------------------
%files -n python2-evdev
%license LICENSE
%doc README.rst
%{python2_sitearch}/*
%files -n python3-evdev
%license LICENSE
%doc README.rst
%{python3_sitearch}/*
#------------------------------------------------------------------------------
%changelog
* Sun Jun 05 2016 Georgi Valkov <georgi.t.valkov@gmail.com> - 0.6.1-1
- Initial RPM Release