update to 25.7, switch to pyproject rpm macros

Resolves: RHEL-101730

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-07-03 13:17:54 +02:00
parent f958e1e95a
commit 4e73d83d0e
2 changed files with 10 additions and 11 deletions

View File

@ -1,21 +1,20 @@
%global pypi_version 25.4.1
Name: python-virt-firmware
Version: %{pypi_version}
Version: 25.7
Release: %autorelease
Summary: Tools for virtual machine firmware volumes
License: GPL-2.0-only
URL: https://pypi.org/project/virt-firmware/
Source0: virt_firmware-%{pypi_version}.tar.gz
Source0: virt_firmware-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(cryptography)
BuildRequires: python3dist(setuptools)
BuildRequires: make help2man
BuildRequires: systemd systemd-rpm-macros
%generate_buildrequires
%pyproject_buildrequires
%description
Tools for ovmf / armvirt firmware volumes This is a small collection of tools
for edk2 firmware images. They support decoding and printing the content of
@ -63,13 +62,13 @@ be used for a more finegrained secure boot configuration for virtual
machines.
%prep
%autosetup -n virt_firmware-%{pypi_version}
%autosetup -n virt_firmware-%{version}
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
# manpages
install -m 755 -d %{buildroot}%{_mandir}/man1
install -m 644 man/*.1 %{buildroot}%{_mandir}/man1
@ -120,7 +119,7 @@ done
%{_mandir}/man1/pe-*.1*
%{python3_sitelib}/virt/firmware
%{python3_sitelib}/virt/peutils
%{python3_sitelib}/virt_firmware-%{pypi_version}-py%{python3_version}.egg-info
%{python3_sitelib}/virt_firmware-%{version}.dist-info
%files -n python3-virt-firmware-tests
%{_datadir}/%{name}/tests

View File

@ -1 +1 @@
SHA512 (virt_firmware-25.4.1.tar.gz) = 2f82299415a0bf5dd8874764fe7d71cfe9a12e489657237f6a889288294e69fed9076219ae91a2d60084ae1ffac6bc4f3e2760999e8030aad045cb59ea152367
SHA512 (virt_firmware-25.7.tar.gz) = 05ed004c09792603c7f5f26ad59707f20ee7982e7291d9eaea24168a6fde171ac5a64c943c7049349deeb97cd89fb121a6d24fe47b18f7bfa0227a07deb5b742