qemu: Drop unused firmware files and /var/run
Commit Message
* Drop firmware files for platforms we do not support.
* Drop /var/run directory which violetes the FSH.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
qemu/qemu.nm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
@@ -5,7 +5,7 @@
name = qemu
version = 7.2.0
-release = 2
+release = 3
groups = Applications/Virtualization
url = https://www.qemu.org
@@ -92,6 +92,19 @@ build
# Remove ivshm stuff
rm -vf %{BUILDROOT}%{bindir}/ivshmem* %{BUILDROOT}%{mandir}/ivshmem*
+ # Remove deprecated run directory.
+ rm -rvf %{BUILDROOT}/var/run
+
+ # Remove firmware files for non supported platforms.
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/hppa-firmware.img
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-ppc
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc32
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/openbios-sparc64
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/palcode-clipper
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-ccw.img
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/s390-netboot.img
+ rm -rvf %{BUILDROOT}%{datadir}/%{name}/u-boot.e500
+
# Make firmware non-executable
find %{BUILDROOT}%{datadir}/%{name} -type f -executable | xargs chmod -v a-x
end