forked from pool/libinput
Switch to %udev_hwdb_update
This commit is contained in:
parent
c64a9ce34b
commit
d6a8f82055
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user