Hide the /usr/lib/firmware install path behind a variable

This way we can trick rpminspect into not complaining about a /usr/lib
install path.

Related: RHELPLAN-170468
This commit is contained in:
Peter Hutterer 2024-07-22 11:55:34 +10:00
parent 2fc0d50db5
commit c6b64acff2

View File

@ -2,6 +2,7 @@
%global udevdir %(pkg-config --variable=udevdir udev)
%global cargo_install_lib 0
%global crate udev-hid-bpf
%global _firmware /usr/lib/firmware
%if 0%{?rhel}
%global bundled_rust_deps 1
@ -138,18 +139,18 @@ export RUSTFLAGS="%build_rustflags"
%license LICENSE
%license LICENSE.dependencies
%{_udevhwdbdir}/81-hid-bpf-stable.hwdb
/usr/lib/firmware/hid/bpf/*-FR-TEC__Raptor-Mach-2.bpf.o
/usr/lib/firmware/hid/bpf/*-HP__Elite-Presenter.bpf.o
/usr/lib/firmware/hid/bpf/*-Huion__Kamvas-Pro-19.bpf.o
/usr/lib/firmware/hid/bpf/*-IOGEAR__Kaliber-MMOmentum.bpf.o
/usr/lib/firmware/hid/bpf/*-Microsoft__Xbox-Elite-2.bpf.o
/usr/lib/firmware/hid/bpf/*-Wacom__ArtPen.bpf.o
/usr/lib/firmware/hid/bpf/*-XPPen__Artist24.bpf.o
/usr/lib/firmware/hid/bpf/*-XPPen__ArtistPro16Gen2.bpf.o
/usr/lib/firmware/hid/bpf/*-Huion__Inspiroy-2-S.bpf.o
/usr/lib/firmware/hid/bpf/*-Huion__Dial-2.bpf.o
/usr/lib/firmware/hid/bpf/*-XPPen__DecoMini4.bpf.o
/usr/lib/firmware/hid/bpf/*-Thrustmaster__TCA-Yoke-Boeing.bpf.o
%{_firmware}/hid/bpf/*-FR-TEC__Raptor-Mach-2.bpf.o
%{_firmware}/hid/bpf/*-HP__Elite-Presenter.bpf.o
%{_firmware}/hid/bpf/*-Huion__Kamvas-Pro-19.bpf.o
%{_firmware}/hid/bpf/*-IOGEAR__Kaliber-MMOmentum.bpf.o
%{_firmware}/hid/bpf/*-Microsoft__Xbox-Elite-2.bpf.o
%{_firmware}/hid/bpf/*-Wacom__ArtPen.bpf.o
%{_firmware}/hid/bpf/*-XPPen__Artist24.bpf.o
%{_firmware}/hid/bpf/*-XPPen__ArtistPro16Gen2.bpf.o
%{_firmware}/hid/bpf/*-Huion__Inspiroy-2-S.bpf.o
%{_firmware}/hid/bpf/*-Huion__Dial-2.bpf.o
%{_firmware}/hid/bpf/*-XPPen__DecoMini4.bpf.o
%{_firmware}/hid/bpf/*-Thrustmaster__TCA-Yoke-Boeing.bpf.o
%files testing
%license LICENSE