-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpython-evdev.spec
60 lines (47 loc) · 1.9 KB
/
python-evdev.spec
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
%define module evdev
Name: python-%{module}
Version: 0.7.0
Release: 1
Summary: Python 3 bindings to the Linux input handling subsystem
Group: Development/Python
License: BSD
URL: http://python-evdev.rtfd.org
Source0: https://github.com/gvalkov/python-evdev/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(python)
BuildRequires: python3egg(setuptools)
%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 python2-%{module}
Summary: Python 2 bindings to the Linux input handling subsystem
BuildRequires: pkgconfig(python2)
BuildRequires: pythonegg(setuptools)
%description -n python2-%{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
%build
%py_build
%py2_build
%install
%py2_install
%py3_install
%files
%doc README.rst
%{python_sitearch}/%{module}/
%{python_sitearch}/%{module}-%{version}-py%{python_version}.egg-info/
%files -n python2-%{module}
%doc README.rst
%{python2_sitearch}/%{module}/
%{python2_sitearch}/%{module}-%{version}-py%{python2_version}.egg-info