SHA256
1
0
forked from pool/libinput

Switch to %udev_hwdb_update #1

Merged
jengelh merged 1 commits from :udev-rpm-macro into master 2025-02-28 19:13:52 +01:00
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