%global modname swtpm_cert_manager Name: swtpm-cert-manager Version: 0.1.0 Release: 1%{?dist} Summary: A tool for analyzing and manipulating SWTPM state files to manage TPM certificates License: MIT-0 URL: https://github.com Source: %{name}-%{version}.tar.gz # el9 seems to have issues reading the project metadata from pyproject.toml # so we will deploy a setup.py to work around it. Patch: 0001-Deploy-legacy-setup.py-to-work-around-issue-with-el9.patch 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 %if 0%{?rhel} < 10 Requires: python-tomli %endif Requires: swtpm Requires: swtpm-tools Requires: tpm2-tools %global _description %{expand: A tool for analyzing and manipulating SWTPM state files to manage TPM certificates.} %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}/%{name} %changelog * Thu Aug 21 2025 Sergio Correia - 0.1.0-1 - Initial release 0.1.0