diff --git a/python-evdev.spec b/python-evdev.spec new file mode 100644 index 0000000..d7edad5 --- /dev/null +++ b/python-evdev.spec @@ -0,0 +1,57 @@ +Name: python-evdev +Version: 1.1.2 +Release: 5 +Summary: Python bindings to the generic input event interface in Linux +License: BSD +URL: https://python-evdev.readthedocs.io +Source0: https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: gcc kernel-headers python3-devel python3-setuptools + +%description +This package provides python 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: Python bindings to the Linux input handling subsystem +%{?python_provide:%python_provide python3-evdev} + +%description -n python3-evdev +This package provides python 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 + +%build +%py3_build + +%install +%py3_install + +%files -n python3-evdev +%license LICENSE +%doc README.rst +%{python3_sitearch}/{evdev/,evdev-%{version}-py%{python3_version}.egg-info/} + +%changelog +* Wed Mar 4 2020 duyeyu - 1.1.2-5 +- Initial package. diff --git a/v1.1.2.tar.gz b/v1.1.2.tar.gz new file mode 100644 index 0000000..72febea Binary files /dev/null and b/v1.1.2.tar.gz differ