15
0

Accepting request 1235190 from home:dimstar:Factory

- 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.

OBS-URL: https://build.opensuse.org/request/show/1235190
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libevdev?expand=0&rev=6
This commit is contained in:
2025-01-06 13:20:57 +00:00
committed by Git OBS Bridge
parent 504e0273b1
commit 554eae4e8a
2 changed files with 11 additions and 3 deletions

View File

@@ -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