From 4955c8d7ed7097b7a882720e574576d6bdec087e0afbfb52f84ea0eb2fb60502 Mon Sep 17 00:00:00 2001 From: Matthias Bach Date: Thu, 24 Dec 2020 18:17:56 +0000 Subject: [PATCH] - Modernise spec file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=14 --- python-evdev.changes | 5 +++++ python-evdev.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-evdev.changes b/python-evdev.changes index 25b49ad..9b51c0c 100644 --- a/python-evdev.changes +++ b/python-evdev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 24 18:16:44 UTC 2020 - Matthias Bach - 1.3.0 + +- Modernise spec file + ------------------------------------------------------------------- Sun Jan 12 16:55:08 UTC 2020 - Matthias Bach diff --git a/python-evdev.spec b/python-evdev.spec index ec5e354..8b20002 100644 --- a/python-evdev.spec +++ b/python-evdev.spec @@ -1,7 +1,7 @@ # # spec file for package python-evdev # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %define modname evdev -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-evdev Version: 1.3.0 Release: 0 @@ -46,7 +45,7 @@ input devices that can inject events directly into the input subsystem. %prep -%setup -q +%autosetup %build %python_build @@ -56,7 +55,7 @@ subsystem. %python_expand %fdupes %{buildroot}/%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%{$python_version} tests -k 'not test_uinput' +%pytest_arch tests -k 'not test_uinput' %files %{python_files} %{python_sitearch}/evdev*