From d6a8f82055bfa659d1e0b0a70b441df3a21b9b42af56768280d22579a6fe8238 Mon Sep 17 00:00:00 2001 From: Franck Bui Date: Fri, 28 Feb 2025 16:57:20 +0100 Subject: [PATCH] Switch to %udev_hwdb_update --- libinput.changes | 11 +++++++++++ libinput.spec | 5 +++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/libinput.changes b/libinput.changes index 066adf7..f173cf8 100644 --- a/libinput.changes +++ b/libinput.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Feb 28 15:13:10 UTC 2025 - Franck Bui + +- Use %udev_hwdb_update in %posttrans to update udev hwdb + + On recent distros such as TW, this shouldn't be necessary at all as the hwdb + is automatically updated via the rpm file triggers mechanism. However the + explicit call to update the hwdb is kept in case the spec file is also used + for older ditros. The call is also done from %posttrans where we know that + udev is fully functional without the need of 'Requires(post): udev'. + ------------------------------------------------------------------- Mon Jan 6 11:50:58 UTC 2025 - Jan Engelhardt diff --git a/libinput.spec b/libinput.spec index fe89c80..b67d008 100644 --- a/libinput.spec +++ b/libinput.spec @@ -70,6 +70,7 @@ BuildRequires: pkgconfig(libevdev) >= 0.4 BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(libwacom) >= 0.20 BuildRequires: pkgconfig(mtdev) >= 1.1.0 +BuildRequires: systemd-rpm-macros %description libinput is a library that handles input devices for display servers and @@ -168,8 +169,8 @@ done %ldconfig_scriptlets -n %lname -%post udev -[ -x /usr/bin/udevadm ] && /usr/bin/udevadm hwdb --update || : +%posttrans udev +%udev_hwdb_update %if "%flavor" == "" %files udev -- 2.51.1