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