Use python3 instead of python2
Use autosetup
This commit is contained in:
parent
3a36255906
commit
34f7e1b832
23
0001-Use-python3-explicitly.patch
Normal file
23
0001-Use-python3-explicitly.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 77c42fd9e22797c4f04c8097372c4348e1c903b0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
||||||
|
Date: Wed, 4 Apr 2018 11:15:40 +1000
|
||||||
|
Subject: [PATCH libevdev] Use python3 explicitly
|
||||||
|
|
||||||
|
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
||||||
|
---
|
||||||
|
libevdev/make-event-names.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libevdev/make-event-names.py b/libevdev/make-event-names.py
|
||||||
|
index 44e1685..f100bbe 100755
|
||||||
|
--- a/libevdev/make-event-names.py
|
||||||
|
+++ b/libevdev/make-event-names.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# Parses linux/input.h scanning for #define KEY_FOO 134
|
||||||
|
# Prints C header files or Python files that can be used as
|
||||||
|
# mapping and lookup tables.
|
||||||
|
--
|
||||||
|
2.14.3
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
Name: libevdev
|
Name: libevdev
|
||||||
Version: 1.5.9
|
Version: 1.5.9
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Kernel Evdev Device Wrapper Library
|
Summary: Kernel Evdev Device Wrapper Library
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -8,8 +8,10 @@ License: MIT
|
|||||||
URL: http://www.freedesktop.org/wiki/Software/libevdev
|
URL: http://www.freedesktop.org/wiki/Software/libevdev
|
||||||
Source0: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
Source0: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
|
Patch01: 0001-Use-python3-explicitly.patch
|
||||||
|
|
||||||
BuildRequires: automake libtool
|
BuildRequires: automake libtool
|
||||||
BuildRequires: python2
|
BuildRequires: python3
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{name} is a library to wrap kernel evdev devices and provide a proper API
|
%{name} is a library to wrap kernel evdev devices and provide a proper API
|
||||||
@ -30,7 +32,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
Utilities to handle and/or debug evdev devices.
|
Utilities to handle and/or debug evdev devices.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf --force -v --install || exit 1
|
autoreconf --force -v --install || exit 1
|
||||||
@ -64,6 +66,10 @@ rm -f %{buildroot}%{_libdir}/*.la
|
|||||||
%{_bindir}/libevdev-tweak-device
|
%{_bindir}/libevdev-tweak-device
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 04 2018 Peter Hutterer <peter.hutterer@redhat.com> 1.5.9-3
|
||||||
|
- Use python3 instead of python2
|
||||||
|
- use autosetup
|
||||||
|
|
||||||
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.9-2
|
* Thu Mar 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.9-2
|
||||||
- Update Python 2 dependency declarations to new packaging standards
|
- Update Python 2 dependency declarations to new packaging standards
|
||||||
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
||||||
|
Loading…
Reference in New Issue
Block a user