SHA256
1
0
forked from pool/libinput

Switch to %udev_hwdb_update

This commit is contained in:
Franck Bui 2025-02-28 16:57:20 +01:00
parent c64a9ce34b
commit d6a8f82055
2 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Feb 28 15:13:10 UTC 2025 - Franck Bui <fbui@suse.com>
- 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 <jengelh@inai.de>

View File

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