Blame python-virt-firmware.spec

93edce1
%global pypi_version 24.2
1697f9e
1697f9e
Name:           python-virt-firmware
1697f9e
Version:        %{pypi_version}
1f36b92
Release:        %autorelease
1697f9e
Summary:        Tools for virtual machine firmware volumes
1697f9e
1697f9e
License:        GPLv2
22cf896
URL:            https://pypi.org/project/virt-firmware/
22cf896
Source0:        virt-firmware-%{pypi_version}.tar.gz
1697f9e
BuildArch:      noarch
1697f9e
1697f9e
BuildRequires:  python3-devel
3237785
BuildRequires:  python3dist(cryptography)
1697f9e
BuildRequires:  python3dist(setuptools)
e8208ee
BuildRequires:  make help2man
1697f9e
1697f9e
%description
1697f9e
Tools for ovmf / armvirt firmware volumes This is a small collection of tools
1697f9e
for edk2 firmware images. They support decoding and printing the content of
1697f9e
firmware volumes. Variable stores (OVMF_VARS.fd) can be modified, for example
1697f9e
to enroll secure boot certificates.
1697f9e
1697f9e
%package -n     python3-virt-firmware
1697f9e
Summary:        %{summary}
1697f9e
%{?python_provide:%python_provide python3-virt-firmware}
5f0a0f5
Provides:       virt-firmware
f2ea561
Conflicts:      python3-virt-firmware-peutils < 23.9
a6ed055
Obsoletes:      python3-virt-firmware-peutils < 23.9
1697f9e
Requires:       python3dist(cryptography)
1697f9e
Requires:       python3dist(setuptools)
a6ed055
Requires:       python3dist(pefile)
1697f9e
%description -n python3-virt-firmware
1697f9e
Tools for ovmf / armvirt firmware volumes This is a small collection of tools
1697f9e
for edk2 firmware images. They support decoding and printing the content of
1697f9e
firmware volumes. Variable stores (OVMF_VARS.fd) can be modified, for example
1697f9e
to enroll secure boot certificates.
1697f9e
bf2ef83
%package -n     python3-virt-firmware-tests
bf2ef83
Summary:        %{summary} - test cases
6130a79
Requires:       python3-virt-firmware
b30eb48
Requires:       python3dist(pytest)
bc0a7a5
Requires:       edk2-ovmf
bf2ef83
%description -n python3-virt-firmware-tests
bf2ef83
test cases
bf2ef83
1697f9e
%prep
22cf896
%autosetup -n virt-firmware-%{pypi_version}
1697f9e
1697f9e
%build
1697f9e
%py3_build
1697f9e
1697f9e
%install
1697f9e
%py3_install
810ca42
# manpages
6130a79
install -m 755 -d      %{buildroot}%{_mandir}/man1
6130a79
install -m 644 man/*.1 %{buildroot}%{_mandir}/man1
bf2ef83
# tests
bf2ef83
mkdir -p %{buildroot}%{_datadir}/%{name}
bf2ef83
cp -ar tests %{buildroot}%{_datadir}/%{name}
1697f9e
1697f9e
%files -n python3-virt-firmware
1697f9e
%license LICENSE
4c38391
%doc README.md experimental
1697f9e
%{_bindir}/host-efi-vars
1697f9e
%{_bindir}/virt-fw-dump
1697f9e
%{_bindir}/virt-fw-vars
61527d2
%{_bindir}/virt-fw-sigdb
3265c01
%{_bindir}/kernel-bootcfg
3265c01
%{_bindir}/uefi-boot-menu
6358fae
%{_bindir}/migrate-vars
a6ed055
%{_bindir}/pe-dumpinfo
a6ed055
%{_bindir}/pe-listsigs
a6ed055
%{_bindir}/pe-addsigs
8a3c0f3
%{_bindir}/pe-inspect
4fb6af2
%{_mandir}/man1/virt-*.1*
932d1a2
%{_mandir}/man1/kernel-bootcfg.1*
932d1a2
%{_mandir}/man1/uefi-boot-menu.1*
1f9aead
%{_mandir}/man1/pe-*.1*
1697f9e
%{python3_sitelib}/virt/firmware
4fb6af2
%{python3_sitelib}/virt/peutils
a6ed055
%{python3_sitelib}/virt_firmware-%{pypi_version}-py%{python3_version}.egg-info
4fb6af2
bf2ef83
%files -n python3-virt-firmware-tests
bf2ef83
%{_datadir}/%{name}/tests
bf2ef83
1697f9e
%changelog
1f36b92
%autochangelog