%global modname swtpm_cert_manager Name: swtpm-cert-manager Version: 0.2.1 Release: 1%{?dist} Summary: A tool for generating SWTPM state files with a malformed EK to aid debugging License: MIT-0 URL: https://github.com Source: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: git-core BuildRequires: python-devel BuildRequires: python-pytest %if 0%{?rhel} < 10 BuildRequires: python-tomli %endif BuildRequires: openssl BuildRequires: swtpm BuildRequires: swtpm-tools BuildRequires: tpm2-tools Requires: openssl Requires: python-cryptography Requires: python-pyasn1 Requires: python-pyasn1-modules Requires: swtpm Requires: swtpm-tools Requires: tpm2-tools %global _description %{expand: A tool for generating SWTPM state files with a malformed EK to aid debugging.} %description %_description %prep %autosetup -S git %generate_buildrequires %pyproject_buildrequires -p %build %pyproject_wheel %install %pyproject_install %check %pytest tests/ -v %files %{python3_sitelib}/%{modname}* %{_bindir}/swtpm-cert-malformed %{_datadir}/%{name}/swtpm_setup_malformed.conf %changelog