From 49dbe5e029f344b4849812709dac863841635fe0b547ba4cfd41ee3d75ab51fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 20 Feb 2025 10:02:23 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-libevdev revision 8e8e770b436f4fafe8e0ef2999a7437a --- python-libevdev.changes | 8 ++++++++ python-libevdev.spec | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-libevdev.changes b/python-libevdev.changes index 5f7ced7..686aa42 100644 --- a/python-libevdev.changes +++ b/python-libevdev.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jan 6 13:13:38 UTC 2025 - Dominique Leuenberger + +- Avoid usage of %{_libdir}: a noarch package cannot rely on libdir + pointing to arch-specific packages. TWeak using + %{_prefix}/lib*/libevdev.so to find the correct library package + %name. + ------------------------------------------------------------------- Sat Sep 24 10:52:33 UTC 2022 - Dirk Müller diff --git a/python-libevdev.spec b/python-libevdev.spec index 5c5b6e7..1363c22 100644 --- a/python-libevdev.spec +++ b/python-libevdev.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-libevdev # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,7 +33,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: libevdev-devel >= %{libevdev_reqver} BuildRequires: python-rpm-macros -%define libmodule %(rpm -q --qf "%%{name}" -f $(readlink -f %{_libdir}/libevdev.so)) +%define libmodule %(rpm -q --qf "%%{name}" -f $(readlink -f %{_prefix}/lib*/libevdev.so)) Requires: %{libmodule} >= %{libevdev_reqver} BuildArch: noarch %python_subpackages