add uki-direct subpackage
This commit is contained in:
parent
66eb62e8c3
commit
6e22a183d4
@ -14,6 +14,7 @@ BuildRequires: python3-devel
|
|||||||
BuildRequires: python3dist(cryptography)
|
BuildRequires: python3dist(cryptography)
|
||||||
BuildRequires: python3dist(setuptools)
|
BuildRequires: python3dist(setuptools)
|
||||||
BuildRequires: make help2man
|
BuildRequires: make help2man
|
||||||
|
BuildRequires: systemd systemd-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tools for ovmf / armvirt firmware volumes This is a small collection of tools
|
Tools for ovmf / armvirt firmware volumes This is a small collection of tools
|
||||||
@ -43,6 +44,14 @@ Requires: edk2-ovmf
|
|||||||
%description -n python3-virt-firmware-tests
|
%description -n python3-virt-firmware-tests
|
||||||
test cases
|
test cases
|
||||||
|
|
||||||
|
%package -n uki-direct
|
||||||
|
Provides: ukidirect
|
||||||
|
Summary: %{summary} - manage UKI kernels.
|
||||||
|
Requires: python3-virt-firmware
|
||||||
|
%description -n uki-direct
|
||||||
|
kernel-install plugin and systemd unit to manage automatic
|
||||||
|
UKI (unified kernel image) updates.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n virt-firmware-%{pypi_version}
|
%autosetup -n virt-firmware-%{pypi_version}
|
||||||
|
|
||||||
@ -57,6 +66,20 @@ install -m 644 man/*.1 %{buildroot}%{_mandir}/man1
|
|||||||
# tests
|
# tests
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||||
cp -ar tests %{buildroot}%{_datadir}/%{name}
|
cp -ar tests %{buildroot}%{_datadir}/%{name}
|
||||||
|
# uki-direct
|
||||||
|
install -m 755 -d %{buildroot}%{_unitdir}
|
||||||
|
install -m 755 -d %{buildroot}/usr/lib/kernel/install.d
|
||||||
|
install -m 644 systemd/kernel-bootcfg-boot-successful.service %{buildroot}%{_unitdir}
|
||||||
|
install -m 755 systemd/99-uki-uefi-setup.install %{buildroot}/usr/lib/kernel/install.d
|
||||||
|
|
||||||
|
%post -n uki-direct
|
||||||
|
%systemd_post kernel-bootcfg-boot-successful.service
|
||||||
|
|
||||||
|
%preun -n uki-direct
|
||||||
|
%systemd_preun kernel-bootcfg-boot-successful.service
|
||||||
|
|
||||||
|
%postun -n uki-direct
|
||||||
|
%systemd_postun kernel-bootcfg-boot-successful.service
|
||||||
|
|
||||||
%files -n python3-virt-firmware
|
%files -n python3-virt-firmware
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -81,5 +104,9 @@ cp -ar tests %{buildroot}%{_datadir}/%{name}
|
|||||||
%files -n python3-virt-firmware-tests
|
%files -n python3-virt-firmware-tests
|
||||||
%{_datadir}/%{name}/tests
|
%{_datadir}/%{name}/tests
|
||||||
|
|
||||||
|
%files -n uki-direct
|
||||||
|
%{_unitdir}/kernel-bootcfg-boot-successful.service
|
||||||
|
/usr/lib/kernel/install.d/99-uki-uefi-setup.install
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
Loading…
Reference in New Issue
Block a user