## 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 pypi_name tpm2-pytss %global _name tpm2_pytss Name: python-%{pypi_name} Version: 3.0.0 Release: %autorelease Summary: TPM 2.0 TSS Bindings for Python License: BSD-2-Clause URL: https://github.com/tpm2-software/tpm2-pytss Source: %{pypi_source %{pypi_name}} BuildRequires: python3-devel BuildRequires: python3-pytest %if %{undefined rhel} BuildRequires: python3-pytest-xdist %endif BuildRequires: tpm2-tss-devel >= 2.0.0 BuildRequires: gcc # for tests BuildRequires: swtpm BuildRequires: tpm2-tools %global _description %{expand: TPM2 TSS Python bindings for Enhanced System API (ESYS), Feature API (FAPI), Marshaling (MU), TCTI Loader (TCTILdr) and RC Decoding (rcdecode) libraries. It also contains utility methods for wrapping keys to TPM 2.0 data structures for importation into the TPM, unwrapping keys and exporting them from the TPM, TPM-less makecredential command and name calculations, TSS2 PEM Key format support, importing Keys from PEM, DER and SSH formats, conversion from tpm2-tools based command line strings and loading tpm2-tools context files. } %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n %{_name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{_name} %check export OPENSSL_ENABLE_SHA1_SIGNATURES=1 %pyproject_check_import # The test test_tools_decode_tpml_tagged_tpm_property checks TPM2 revision which is not stable # In upstream this test as well as the tools are removed so I do not have any good way to fix it %ifarch s390x # this test does not work for some reason on the s390x as it times out %global testargs -k "not test_spi_helper_good and not test_tools_decode_tpml_tagged_tpm_property" %else %global testargs -k "not test_tools_decode_tpml_tagged_tpm_property" %endif %pytest --import-mode=append %{?!rhel:-n 1} %{?testargs} %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Tue Aug 18 2026 Jakub Jelen - 3.0.0-1 - New upstream release 3.0.0 * Mon Jul 27 2026 Jakub Jelen - 2.3.0-19 - Backport patches to work with current tpm2-tss and python (#2504590) * Mon Jun 29 2026 Miro HronĨok - 2.3.0-13 - Drop redundant BuildRequires for python3-wheel * Mon Jun 08 2026 Yaakov Selkowitz - 2.3.0-12 - Fix build with latest python-cryptography * Fri Jun 13 2025 Benjamin A. Beasley - 2.3.0-6 - Patch for cryptography 45; fixes RHBZ#2372172 * Wed Feb 05 2025 Jakub Jelen - 2.3.0-4 - Fix build with gcc15 (#2341227) * Wed Jul 03 2024 Jakub Jelen - 2.3.0-1 - New upstream release (#2295581) * Mon May 27 2024 Jakub Jelen - 2.2.1-2 - Fix build issue in rawhide (#2283520) * Tue Mar 05 2024 Jakub Jelen - 2.2.1-1 - New upstream release (#2149103) * Wed Aug 16 2023 Jakub Jelen - 2.1.0-3 - Enable tests on i686 again * Wed Aug 16 2023 Jakub Jelen - 2.1.0-2 - Enable builds on i686 again - Fix another test issues * Mon Aug 07 2023 Jakub Jelen - 2.1.0-1 - New upstream release (#2149103) * Wed Oct 26 2022 Jakub Jelen - 1.2.0-1 - Official Fedora package (#2135713) * Tue Apr 12 2022 Traxtopel - 1.1.0-1 - Initial package. ## END: Generated by rpmautospec