trivial: Split off a subpackage for the UX capsule data

This makes the CoreOS image over 1Mb smaller, which is over 30% of the size of
the base fwupd package.
This commit is contained in:
Richard Hughes 2021-01-20 09:59:28 +00:00
parent 11603b3e06
commit 9c1bdf68be

View File

@ -144,6 +144,9 @@ Recommends: %{name}-plugin-modem-manager
%if 0%{?have_flashrom}
Recommends: %{name}-plugin-flashrom
%endif
%if 0%{?have_uefi}
Recommends: %{name}-plugin-uefi-capsule-data
%endif
%description
fwupd is a daemon to allow session software to update device firmware.
@ -181,6 +184,17 @@ This provides the optional package which is only required on hardware that
can be flashed using flashrom. It is probably not required on servers.
%endif
%if 0%{?have_uefi}
%package plugin-uefi-capsule-data
Summary: Localized data for the UEFI UX capsule
%description plugin-uefi-capsule-data
This provides the pregenerated BMP artwork for the UX capsule, which allows the
"Installing firmware update" localized text to be shown during a UEFI firmware
update operation. This subpackage is probably not required on embedded hardware
or server machines.
%endif
%prep
%autosetup -p1
@ -451,9 +465,6 @@ done
%{_libdir}/fwupd-plugins-3/libfu_plugin_wacom_usb.so
%{_libdir}/fwupd-plugins-3/libfu_plugin_goodixmoc.so
%ghost %{_localstatedir}/lib/fwupd/gnupg
%if 0%{?have_uefi}
%{_datadir}/fwupd/ux-capsule.tar.xz
%endif
%if 0%{?have_modem_manager}
%files plugin-modem-manager
@ -463,6 +474,10 @@ done
%files plugin-flashrom
%{_libdir}/fwupd-plugins-3/libfu_plugin_flashrom.so
%endif
%if 0%{?have_uefi}
%files plugin-uefi-capsule-data
%{_datadir}/fwupd/uefi-capsule-ux.tar.xz
%endif
%files devel
%{_datadir}/gir-1.0/Fwupd-2.0.gir