add -tests subpackage

This commit is contained in:
Gerd Hoffmann 2022-09-27 11:36:00 +02:00
parent 9d055b55ed
commit bf2ef83562

View File

@ -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 <kraxel@redhat.com> - 1.3-1
- update to version 1.3