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>
|
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(libudev)
|
||||||
BuildRequires: pkgconfig(libwacom) >= 0.20
|
BuildRequires: pkgconfig(libwacom) >= 0.20
|
||||||
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
BuildRequires: pkgconfig(mtdev) >= 1.1.0
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libinput is a library that handles input devices for display servers and
|
libinput is a library that handles input devices for display servers and
|
||||||
@ -168,8 +169,8 @@ done
|
|||||||
|
|
||||||
%ldconfig_scriptlets -n %lname
|
%ldconfig_scriptlets -n %lname
|
||||||
|
|
||||||
%post udev
|
%posttrans udev
|
||||||
[ -x /usr/bin/udevadm ] && /usr/bin/udevadm hwdb --update || :
|
%udev_hwdb_update
|
||||||
|
|
||||||
%if "%flavor" == ""
|
%if "%flavor" == ""
|
||||||
%files udev
|
%files udev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user