## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global modname swtpm_cert_manager Name: swtpm-cert-manager Version: 0.3.0 Release: %autorelease 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 Patch0: revert-license-pep639.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 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 %setup -q %if 0%{?rhel} %patch -P0 -p1 %endif %generate_buildrequires %pyproject_buildrequires -p %build %pyproject_wheel %install %pyproject_install %check %pytest tests/ -v %files %{python3_sitelib}/%{modname}* %{_bindir}/swtpm-cert-malformed %{_bindir}/swtpm-cert-validate %{_datadir}/%{name}/swtpm_setup_malformed.conf %changelog ## START: Generated by rpmautospec * Thu Jun 25 2026 John Doe - 0.3.0-1 - Uncommitted changes ## END: Generated by rpmautospec