|
| 1 | +%global gittag0 v0.6.1 |
| 2 | +%global _summary Python bindings for the Linux input handling subsystem |
| 3 | + |
| 4 | +Name: python-evdev |
| 5 | +Version: 0.6.1 |
| 6 | +Release: 1%{?dist} |
| 7 | +Summary: %{_summary} |
| 8 | + |
| 9 | +License: BSD |
| 10 | +URL: https://python-evdev.readthedocs.io |
| 11 | +Source0: https://github.com/gvalkov/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%{version}.tar.gz |
| 12 | +Group: Development/Libraries |
| 13 | + |
| 14 | +BuildRequires: kernel-headers python3-devel python3-setuptools |
| 15 | +BuildRequires: python2-devel python-setuptools |
| 16 | + |
| 17 | +%description |
| 18 | +This package provides bindings to the Linux generic input event interface. |
| 19 | + |
| 20 | + |
| 21 | +%package -n python2-evdev |
| 22 | +Summary: %{_summary} |
| 23 | +Group: Development/Libraries |
| 24 | +%{?python_provide:%python_provide python2-evdev} |
| 25 | + |
| 26 | +%description -n python2-evdev |
| 27 | + |
| 28 | +This package provides bindings to the generic input event interface in Linux. |
| 29 | +The evdev interface serves the purpose of passing events generated in the kernel |
| 30 | +directly to userspace through character devices that are typically located in |
| 31 | +/dev/input/. |
| 32 | + |
| 33 | +This package also comes with bindings to uinput, the userspace input subsystem. |
| 34 | +Uinput allows userspace programs to create and handle input devices that can |
| 35 | +inject events directly into the input subsystem. |
| 36 | + |
| 37 | +In other words, python-evdev allows you to read and write input events on Linux. |
| 38 | +An event can be a key or button press, a mouse movement or a tap on a |
| 39 | +touchscreen. |
| 40 | + |
| 41 | + |
| 42 | +%package -n python3-evdev |
| 43 | +Summary: %{_summary} |
| 44 | +Group: Development/Libraries |
| 45 | +%{?python_provide:%python_provide python3-evdev} |
| 46 | + |
| 47 | +%description -n python3-evdev |
| 48 | +This package provides bindings to the generic input event interface in Linux. |
| 49 | +The evdev interface serves the purpose of passing events generated in the kernel |
| 50 | +directly to userspace through character devices that are typically located in |
| 51 | +/dev/input/. |
| 52 | + |
| 53 | +This package also comes with bindings to uinput, the userspace input subsystem. |
| 54 | +Uinput allows userspace programs to create and handle input devices that can |
| 55 | +inject events directly into the input subsystem. |
| 56 | + |
| 57 | +In other words, python-evdev allows you to read and write input events on Linux. |
| 58 | +An event can be a key or button press, a mouse movement or a tap on a |
| 59 | +touchscreen. |
| 60 | + |
| 61 | + |
| 62 | +#------------------------------------------------------------------------------ |
| 63 | +%prep |
| 64 | +%autosetup -n %{name}-%{version} |
| 65 | + |
| 66 | +#------------------------------------------------------------------------------ |
| 67 | +%build |
| 68 | +%py2_build |
| 69 | +%py3_build |
| 70 | + |
| 71 | +#------------------------------------------------------------------------------ |
| 72 | +%install |
| 73 | +%py2_install |
| 74 | +%py3_install |
| 75 | + |
| 76 | +#------------------------------------------------------------------------------ |
| 77 | +%files -n python2-evdev |
| 78 | +%license LICENSE |
| 79 | +%doc README.rst |
| 80 | +%{python2_sitearch}/* |
| 81 | + |
| 82 | +%files -n python3-evdev |
| 83 | +%license LICENSE |
| 84 | +%doc README.rst |
| 85 | +%{python3_sitearch}/* |
| 86 | + |
| 87 | + |
| 88 | +#------------------------------------------------------------------------------ |
| 89 | +%changelog |
| 90 | +* Sun Jun 05 2016 Georgi Valkov <georgi.t.valkov@gmail.com> - 0.6.1-1 |
| 91 | +- Initial RPM Release |
0 commit comments