2022-10-26 14:49:50 +00:00
|
|
|
%global pypi_name tpm2-pytss
|
|
|
|
%global _name tpm2_pytss
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
Version: 1.2.0
|
2023-06-14 22:05:32 +00:00
|
|
|
Release: 3%{?dist}
|
2022-10-26 14:49:50 +00:00
|
|
|
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}}
|
|
|
|
Patch0: python-tpm2-pytss-1.2.0-openssl.patch
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-pytest
|
2023-05-23 16:45:39 +00:00
|
|
|
%if %{undefined rhel}
|
2022-10-26 14:49:50 +00:00
|
|
|
BuildRequires: python3-pytest-xdist
|
2023-05-23 16:45:39 +00:00
|
|
|
%endif
|
2022-10-26 14:49:50 +00:00
|
|
|
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 %{pypi_name}-%{version}
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%pyproject_install
|
|
|
|
|
|
|
|
%pyproject_save_files %{_name}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pyproject_check_import
|
|
|
|
# tests are very dependent on the python/openssl versions and fail at various places
|
|
|
|
# The test test_tools_decode_tpms_nv_public fails on Fedora rawhide now
|
2023-05-23 16:45:39 +00:00
|
|
|
%pytest --import-mode=append -k "not test_tools_decode_tpms_nv_public" %{?!rhel:-n %{_smp_build_ncpus}}
|
2022-10-26 14:49:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
%doc README.md
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-14 22:05:32 +00:00
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.2.0-3
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-01-20 18:00:14 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-10-26 14:49:50 +00:00
|
|
|
* Wed Oct 26 2022 Jakub Jelen <jjelen@redhat.com> - 1.2.0-1
|
|
|
|
- Official Fedora package (#2135713)
|
|
|
|
|
|
|
|
* Tue Apr 12 2022 Traxtopel <traxtopel@gmail.com> - 1.1.0-1
|
|
|
|
- Initial package.
|