Name: python-cvmutils Version: 0.3.1 Release: %autorelease Summary: Tools for confidential virtual machines License: LGPL-2.1-or-later URL: https://gitlab.com/vkuznets/cvmutils Source: https://gitlab.com/vkuznets/cvmutils/-/archive/%version/cvmutils-%version.tar.gz BuildArch: noarch BuildRequires: python3-devel systemd-rpm-macros %description This tool prepares Linux OS image to run with encrypted root volume. %package -n python3-cvmutils Requires: systemd-udev util-linux cryptsetup e2fsprogs openssl Summary: %{summary} %description -n python3-cvmutils This tool prepares Linux OS image to run with encrypted root volume. %package -n cvmutils-reseal Summary: %{summary} Requires: %{name} = %{version}-%{release} %description -n cvmutils-reseal A tool for LUKS volume key re-sealing when expected PCR values change. %prep %autosetup -p1 -n cvmutils-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %check %pytest %files -n python3-cvmutils %doc README.md %license COPYING %{_bindir}/cvm-encrypt-image %{python3_sitelib}/cvmutils %{python3_sitelib}/cvmutils-%{version}.dist-info %{_datarootdir}/cvmutils/scripts %{_mandir}/man1/cvm-encrypt-image.1* %files -n cvmutils-reseal %{_bindir}/cvm-reseal %{_mandir}/man1/cvm-reseal.1* %changelog %autochangelog