15
0

- BuildRequires on a binary library package is a bad idea as well

as the required SOVER needs to be calculated.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libevdev?expand=0&rev=2
This commit is contained in:
2021-11-22 15:00:29 +00:00
committed by Git OBS Bridge
parent 5c879f76e7
commit 136b5ca53e
2 changed files with 13 additions and 8 deletions

View File

@@ -1,5 +1,10 @@
-------------------------------------------------------------------
Mon Nov 22 14:59:29 UTC 2021 - Matej Cepl <mcepl@suse.com>
- BuildRequires on a binary library package is a bad idea as well
as the required SOVER needs to be calculated.
-------------------------------------------------------------------
Fri Nov 19 09:14:29 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- initial packaging required by libwacom (bsc#1192852)

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-libevdev
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@@ -19,7 +19,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%global modname libevdev
%define libevdev_sover 2
%define libevdev_reqver 1.6.0
Name: python-%{modname}
Version: 0.9
@@ -29,13 +28,14 @@ License: MIT
Group: Development/Libraries/Python
URL: https://python-libevdev.readthedocs.io/
Source0: https://gitlab.freedesktop.org/libevdev/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pytest}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libevdev%{libevdev_sover} >= %{libevdev_reqver}
Requires: libevdev%{libevdev_sover} >= %{libevdev_reqver}
BuildRequires: libevdev-devel >= %{libevdev_reqver}
BuildRequires: python-rpm-macros
%define libmodule %(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libevdev.so))
Requires: %{libmodule} >= %{libevdev_reqver}
BuildArch: noarch
%python_subpackages
%description