Sisyphus repository
Last update: 25 may 2019 | SRPMs: 17693 | Visits: 13597923
en ru br
ALT Linux repos
S:1.2.0-alt1

Group :: Development/Python
RPM: python-module-evdev

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define modname evdev
# asyncio required
%def_disable python2

Name: python-module-%modname
Version: 1.1.2
Release: alt1

Summary: Python bindings to the generic input event interface
Group: Development/Python
License: 3-clause BSD
Url: https://pypi.python.org/pypi/%modname

Source: https://pypi.io/packages/source/e/%modname/%modname-%version.tar.gz

BuildRequires: glibc-kernheaders

%if_enabled python2
BuildRequires: python-devel
BuildRequires: python-module-setuptools
%endif

BuildRequires: python3-devel rpm-build-python3
BuildRequires: python3-module-distribute

%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/

%package -n python3-module-%modname
Summary: Python3 bindings to the generic input event interface
Group: Development/Python3

%description -n python3-module-%modname
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/

%prep
%setup -n %modname-%version -a0
cp -a %modname-%version py3build

%build
%{?_enable_python2:%python_build}

pushd py3build
%python3_build
popd

%install
%{?_enable_python2:%python_install}

pushd py3build
%python3_install
popd

%if_enabled python2
%files
%python_sitelibdir/%modname/
%exclude %python_sitelibdir/*.egg-info
%doc README*
%endif

%files -n python3-module-%modname
%python3_sitelibdir/%modname/
%exclude %python3_sitelibdir/*.egg-info
%doc README*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin