Blame SPECS/python-evdev.spec

457520
%if 0%{?rhel} && 0%{?rhel} < 8
457520
%bcond_without legacy_python
457520
%endif
457520
457520
Name:           python-evdev
457520
Version:        1.1.2
457520
Release:        3%{?dist}
457520
Summary:        Python bindings for the Linux input handling subsystem
457520
457520
License:        BSD
457520
URL:            https://python-evdev.readthedocs.io
457520
Source0:        https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
457520
457520
BuildRequires:  gcc
457520
BuildRequires:  kernel-headers
457520
%if %{with legacy_python}
457520
BuildRequires:  python2-devel
457520
BuildRequires:  python2-setuptools
457520
%endif
457520
BuildRequires:  python3-devel
457520
BuildRequires:  python3-setuptools
457520
457520
Patch01: 0001-input-fix-ioctl-return-value-handling.patch
457520
Patch02: 0001-input-fix-unintended-fallthrough.patch
457520
457520
%global _description \
457520
This package provides python bindings to the generic input event interface in \
457520
Linux. The evdev interface serves the purpose of passing events generated in \
457520
the kernel directly to userspace through character devices that are typically \
457520
located in /dev/input/. \
457520
 \
457520
This package also comes with bindings to uinput, the userspace input subsystem. \
457520
Uinput allows userspace programs to create and handle input devices that can \
457520
inject events directly into the input subsystem. \
457520
 \
457520
In other words, python-evdev allows you to read and write input events on Linux. \
457520
An event can be a key or button press, a mouse movement or a tap on a \
457520
touchscreen.
457520
457520
457520
%description %{_description}
457520
457520
457520
%if %{with legacy_python}
457520
%package -n python2-evdev
457520
Summary:        %{summary}
457520
%{?python_provide:%python_provide python2-evdev}
457520
%description -n python2-evdev %{_description}
457520
%endif
457520
457520
%package -n python3-evdev
457520
Summary:        %{summary}
457520
%{?python_provide:%python_provide python3-evdev}
457520
%description -n python3-evdev %{_description}
457520
457520
457520
#------------------------------------------------------------------------------
457520
%prep
457520
%autosetup -p1
457520
457520
#------------------------------------------------------------------------------
457520
%build
457520
%if %{with legacy_python}
457520
%py2_build
457520
%endif
457520
%py3_build
457520
457520
#------------------------------------------------------------------------------
457520
%install
457520
%if %{with legacy_python}
457520
%py2_install
457520
%endif
457520
%py3_install
457520
457520
#------------------------------------------------------------------------------
457520
%if %{with legacy_python}
457520
%files -n python2-evdev
457520
%license LICENSE
457520
%doc README.rst
457520
%{python2_sitearch}/evdev/
457520
%{python2_sitearch}/evdev-%{version}-py%{python2_version}.egg-info/
457520
%endif
457520
457520
%files -n python3-evdev
457520
%license LICENSE
457520
%doc README.rst
457520
%{python3_sitearch}/evdev/
457520
%{python3_sitearch}/evdev-%{version}-py%{python3_version}.egg-info/
457520
457520
457520
#------------------------------------------------------------------------------
457520
%changelog
457520
* Fri Oct 05 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.1.2-3
457520
- Fix coverity complaints
457520
457520
* Wed Sep 26 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.1.2-2
457520
- Don't build with python2 on RHEL8
457520
457520
* Wed Sep 26 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.1.2-1
457520
- Bump to version 1.1.2
457520
457520
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 1.0.0-2
457520
- Rebuild with fixed binutils
457520
457520
* Sat Jul 28 2018 Georgi Valkov <georgi.t.valkov@gmail.com> - 1.0.0-1
457520
- Bump to version 1.0.0
457520
457520
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
457520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
457520
457520
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-3
457520
- Rebuilt for Python 3.7
457520
457520
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
457520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
457520
457520
* Tue Aug 22 2017 Georgi Valkov <georgi.t.valkov@gmail.com> - 0.7.0-1
457520
- Bump to version 0.7.0
457520
457520
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-5
457520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
457520
457520
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
457520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
457520
457520
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
457520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
457520
457520
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.1-2
457520
- Rebuild for Python 3.6
457520
457520
* Sun Jun 05 2016 Georgi Valkov <georgi.t.valkov@gmail.com> - 0.6.1-1
457520
- Initial RPM Release