File pkgconf.patch of Package libinput

From e453ad51ae29b4a1282795ded83f63223d36fe89 Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Thu, 29 May 2025 15:35:11 +0200
Subject: [PATCH] Teach meson about pkgconfig Requires.private
References: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1207
References: https://bugzilla.suse.com/show_bug.cgi?id=1242039

Fixes: ed87c6dbb0059cc6cdf79b1086c2034a8970fbf6
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
---
 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 98e500b2..a4bc11af 100644
--- a/meson.build
+++ b/meson.build
@@ -439,12 +439,14 @@ if meson.version().version_compare('>= 0.54.0')
 	meson.override_dependency('libinput', dep_libinput)
 endif
 
+# Hol' up, keep this synchronized with src/libinput.pc.in
 pkgconfig.generate(
 	filebase : 'libinput',
 	name : 'Libinput',
 	description : 'Input device library',
 	version : meson.project_version(),
-	libraries : lib_libinput
+	libraries : lib_libinput,
+	requires_private : 'libudev'
 )
 
 git_version_h = vcs_tag(command : ['git', 'describe'],
-- 
2.49.0

openSUSE Build Service is sponsored by