diff --git a/.gitignore b/.gitignore index e69de29..8a68de2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/python-libevdev-.*.tar.gz diff --git a/python-libevdev.spec b/python-libevdev.spec new file mode 100644 index 0000000..30bc300 --- /dev/null +++ b/python-libevdev.spec @@ -0,0 +1,51 @@ +Name: python-libevdev +Version: 0.9 +Release: 3%{?dist} +Summary: Python bindings to the libevdev evdev device wrapper library + +License: MIT +URL: https://pypi.python.org/pypi/libevdev/ +Source0: https://gitlab.freedesktop.org/libevdev/python-libevdev/-/archive/%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch + +%description +%{name} provides the Python bindings to the libevdev evdev device +wrapper library. These bindings provide a pythonic API to access evdev +devices and create uinput devices. + +%package -n python3-libevdev +Summary: Python bindings to the libevdev evdev device wrapper library + +BuildRequires: python3-devel python3-setuptools +Requires: libevdev + +%{?python_provide:%python_provide python3-libevdev} + +%description -n python3-libevdev +%{name} provides the Python bindings to the libevdev evdev device +wrapper library. These bindings provide a pythonic API to access evdev +devices and create uinput devices. + + +%prep +%autosetup -n %{name}-%{version} -p1 + + +%build +%py3_build + + +%install +%py3_install + + +%files -n python3-libevdev +%license COPYING +%{python3_sitelib}/libevdev/ +%{python3_sitelib}/libevdev-%{version}-py*.egg-info + +%changelog +* Fri May 14 2021 Peter Hutterer 0.9-3 +- Import from Fedora (#1957087) + diff --git a/sources b/sources new file mode 100644 index 0000000..3f933d7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-libevdev-0.9.tar.gz) = 8b61b7b5d7f2ccc7c510afa321e048c0b1a77cf6d646d611269c75787ed4fcdb70d463dfdc7bf62b260788db3695a9797fa5809c5ff4d0441180dc31028a3b2a