From bf2ef83562bbd8518c35dd396faf2a943e175a55 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 27 Sep 2022 11:36:00 +0200 Subject: [PATCH] add -tests subpackage --- python-virt-firmware.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python-virt-firmware.spec b/python-virt-firmware.spec index 10a6e30..89c8002 100644 --- a/python-virt-firmware.spec +++ b/python-virt-firmware.spec @@ -31,6 +31,11 @@ for edk2 firmware images. They support decoding and printing the content of firmware volumes. Variable stores (OVMF_VARS.fd) can be modified, for example to enroll secure boot certificates. +%package -n python3-virt-firmware-tests +Summary: %{summary} - test cases +%description -n python3-virt-firmware-tests +test cases + %prep %autosetup -n virt-firmware-v%{pypi_version} @@ -42,6 +47,9 @@ make manpages %py3_install install -m 755 -d %{buildroot}%{_mandir}/man1 install -m 644 *.1 %{buildroot}%{_mandir}/man1 +# tests +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -ar tests %{buildroot}%{_datadir}/%{name} %files -n python3-virt-firmware %license LICENSE @@ -58,6 +66,9 @@ install -m 644 *.1 %{buildroot}%{_mandir}/man1 %{python3_sitelib}/virt/firmware %{python3_sitelib}/virt_firmware-%{pypi_version}-py%{python3_version}.egg-info +%files -n python3-virt-firmware-tests +%{_datadir}/%{name}/tests + %changelog * Tue Sep 27 2022 Gerd Hoffmann - 1.3-1 - update to version 1.3