openssl: upgrade to v3.3.0

Other significant changes:

python-cryptography: upgrade to v42.0.7
python-flit-core: upgrade to v3.9.0
python-pyOpenSSL: upgrade to v24.1.0
python3-setuptools-rust: upgrade to v1.9.0
tpm2-pkcs11: upgrade to v1.9.0
tpm2-pytss: upgrade to v2.2.1

Moved to wheel build model, `python setup.py build` is deprecated.

Change-Id: If090d334ff20a3fefc51381ebde4766ce5633c34
Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/24025
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vamsi Krishna Brahmajosyula <vamsi-krishna.brahmajosyula@broadcom.com>
This commit is contained in:
Shreenidhi Shedi 2024-06-03 14:33:49 +05:30
parent 9c6052db50
commit c7b1653219
15 changed files with 169 additions and 79 deletions

View File

@ -1,7 +1,7 @@
Summary: This project is an implementation of the TCG TPM 2.0 specification.
Name: ibmtpm
Version: 1682
Release: 2%{?dist}
Release: 3%{?dist}
License: BSD 2-Clause
URL: https://sourceforge.net/projects/ibmswtpm2/files
Group: System Environment/Security
@ -11,7 +11,7 @@ Distribution: Photon
Source0: %{name}%{version}.tar.gz
%define sha512 %{name}=564c2154e5459cbbf4ec052bea7909d1eaff0aa07b291c7de44b1204ecfda3c4156fa18da4499e4202b8772b54ae30d0c7c89bd12cd415f3882d17c8d340686d
Patch0: support-openssl-3.2.x-builds.patch
Patch0: support-openssl-3.3.x-builds.patch
BuildRequires: openssl-devel
BuildRequires: systemd-devel
@ -55,6 +55,8 @@ EOF
%{_unitdir}/ibmtpm_server.service
%changelog
* Wed Jun 05 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 1682-3
- Fix build with openssl-3.3.0
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 1682-2
- Bump version as a part of openssl upgrade
* Sun Oct 09 2022 Shreenidhi Shedi <sshedi@vmware.com> 1682-1

View File

@ -1,7 +1,7 @@
From b0dbe81fbdf989877e6db9c80ff41b4dd0793aac Mon Sep 17 00:00:00 2001
From: Shreenidhi Shedi <sshedi@vmware.com>
Date: Sun, 19 Nov 2023 11:04:06 +0530
Subject: [PATCH] support openssl-3.2.x builds
Subject: [PATCH] support openssl-3.3.x builds
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com>
---
@ -17,7 +17,7 @@ index 13e5070..cb87e3d 100644
#define SYMMETRIC_ALIGNMENT RADIX_BYTES
-#if OPENSSL_VERSION_NUMBER > 0x300000ffL
+#if OPENSSL_VERSION_NUMBER > 0x30200000L
+#if OPENSSL_VERSION_NUMBER > 0x30300000L
// Check the bignum_st definition in crypto/bn/bn_lcl.h or crypto/bn/bn_local.h and either update
// the version check or provide the new definition for this version.
// Currently safe for all 3.0.n.a

View File

@ -0,0 +1,26 @@
From 0b103e17b160c04aafd67780b032ef449dd4bf3b Mon Sep 17 00:00:00 2001
From: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
Date: Thu, 6 Jun 2024 00:11:11 +0530
Subject: [PATCH] support build with openssl-3.3.0
Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 9ad9699..6e4b4fb 100755
--- a/configure
+++ b/configure
@@ -15627,7 +15627,7 @@ then :
# OpenSSL 3; we use the 1.1x API
CPPFLAGS="$CPPFLAGS -DOPENSSL_API_COMPAT=0x10100000L"
;;
- 301*|302*)
+ 30*)
# OpenSSL development branch; request 1.1x API
CPPFLAGS="$CPPFLAGS -DOPENSSL_API_COMPAT=0x10100000L"
;;
--
2.45.2

View File

@ -4,7 +4,7 @@
Summary: Free version of the SSH connectivity tools
Name: openssh
Version: 9.3p2
Release: 4%{?dist}
Release: 6%{?dist}
License: BSD
URL: https://www.openssh.com
Group: System Environment/Security
@ -25,6 +25,7 @@ Source5: %{name}.sysusers
Patch0: 0001-sshd_config-Avoid-duplicate-entry.patch
Patch1: 0002-Support-for-overriding-algorithms-for-ssh-keyscan.patch
Patch2: 0003-support-build-with-openssl-3.3.0.patch
# Add couple more syscalls to seccomp filter to support glibc-2.31
BuildRequires: openssl-devel
@ -209,6 +210,10 @@ rm -rf %{buildroot}/*
%{_unitdir}/sshd@.service
%changelog
* Thu Jun 06 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 9.3p2-6
- Support building with openssl 3.3.0
* Tue Jun 04 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 9.3p2-5
- Bump version as a part of openssl upgrade
* Mon Mar 11 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 9.3p2-4
- Introduce socket sub package
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 9.3p2-3

View File

@ -7,16 +7,16 @@
Summary: Management tools and libraries relating to cryptography
Name: openssl
Version: 3.2.0
Release: 3%{?dist}
Version: 3.3.0
Release: 1%{?dist}
License: OpenSSL
URL: http://www.openssl.org
Group: System Environment/Security
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://www.openssl.org/source/%{name}-%{version}-beta1.tar.gz
%define sha512 %{name}=07ce7d1c5c84371a1aeb64a208fbc74f89275765f9bb00a0e3262fcae7ecb83cdd73cba30a01fe44b60a0616b9c6bb4c9c42c43fc42ecf0b6fdde57a621813c6
Source0: http://www.openssl.org/source/%{name}-%{version}.tar.gz
%define sha512 %{name}=1f9daeee6542e1b831c65f1f87befaef98ccedc3abc958c9d17f064ef771924c30849e3ff880f94eed4aaa9d81ea105e3bc8815e6d2e4d6b60b5e890f14fc5da
Source1: rehash_ca_certificates.sh
Source2: provider_default.cnf
@ -123,7 +123,7 @@ exit 1
%if 0%{?with_certified_fips}
%autosetup -p1 -a0 -a7
%else
%autosetup -p1 -n %{name}-%{version}-beta1
%autosetup -p1 -n %{name}-%{version}
%endif
%build
@ -251,6 +251,7 @@ rm -rf %{buildroot}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.so
%exclude %{_libdir}/cmake/OpenSSL/*.cmake
%files perl
%defattr(-,root,root)
@ -271,6 +272,8 @@ rm -rf %{buildroot}/*
%{_mandir}/man7/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 3.3.0-1
- Upgrade to v3.3.0
* Fri Mar 22 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 3.2.0-3
- Remove dead symlinks during certificate rehash
* Fri Dec 29 2023 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 3.2.0-2

View File

@ -3,7 +3,7 @@
Summary: Photon OS Installer
Name: photon-os-installer
Version: 2.4
Release: 3%{?dist}
Release: 4%{?dist}
License: Apache 2.0 and GPL 2.0
Group: System Environment/Base
Vendor: VMware, Inc.
@ -66,6 +66,8 @@ rm -rf %{buildroot}
%{_bindir}/photon-iso-builder
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.4-4
- Bump version as a part of python3-pyOpenSSL upgrade
* Fri Apr 12 2024 Ankit Jain <ankit-aj.jain@broadcom.com> 2.4-3
- Add "jc" dependency
* Wed Oct 25 2023 Ankit Jain <ankitja@vmware.com> 2.4-2

View File

@ -1,15 +1,26 @@
%define srcname cryptography
Summary: Python cryptography library
Name: python3-cryptography
Version: 38.0.1
Release: 2%{?dist}
Version: 42.0.7
Release: 1%{?dist}
Url: https://pypi.python.org/pypi/cryptography
License: ASL 2.0
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://pypi.io/packages/source/c/cryptography/cryptography-%{version}.tar.gz
%define sha512 cryptography=a0e9eb645888a74e01377c0ed79427d066a50d10a9b628828195e82b7ee44ff59866f3659f2028541856bba818340c404e00061645c2676bc63f8ece42fd511e
Source0: https://pypi.io/packages/source/c/cryptography/%{srcname}-%{version}.tar.gz
%define sha512 %{srcname}=2f502fd78490ed2dc26884b05c9db32d6dcf8ed17ca3808299e528aa53ec13805e2be741d92d6a540b7dded011850cf033abe2e073f22f07e271c7c1c25c024b
# Steps to generate this tarball:
# Extract cryptography tarball
# Trigger the build
# cd ~/.cargo
# tar czf <tar-name>.tar.gz registry-<version>
Source1: %{name}-registry-%{version}.tar.gz
%define sha512 %{name}-registry=8a59eb057bed105001d990e8a03478bf32c8774a156314183404c47a03c09b430ad33273fc0c409eadde30ea53deca9512e7d69e65b9ebdc9bc1694be19412b6
BuildRequires: openssl-devel
BuildRequires: python3-devel
@ -21,14 +32,14 @@ BuildRequires: python3-typing-extensions
BuildRequires: python3-semantic-version
BuildRequires: rust
BuildRequires: ca-certificates
%if 0%{?with_check}
BuildRequires: python3-pip
BuildRequires: python3-wheel
%if 0%{?with_check}
BuildRequires: curl-devel
%endif
Requires: openssl
Requires: python3
Requires: python3-libs
Requires: python3-cffi
Requires: python3-idna
Requires: python3-pyasn1
@ -40,13 +51,17 @@ Requires: python3-asn1crypto
Cryptography is a Python library which exposes cryptographic recipes and primitives.
%prep
%autosetup -p1 -n cryptography-%{version}
%autosetup -p1 -a0 -a1 -n cryptography-%{version}
mkdir -p $HOME/.cargo/
mv registry $HOME/.cargo/
%build
%{py3_build}
export CARGO_NET_OFFLINE=true
%{pyproject_wheel}
%install
%{py3_install}
export CARGO_NET_OFFLINE=true
%{pyproject_install}
%check
openssl req \
@ -58,16 +73,25 @@ openssl req \
-subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=photon.com" \
-keyout photon.key \
-out photon.cert
openssl rsa -in photon.key -out photon.pem
mv photon.pem /etc/ssl/certs
pip3 install pretend pytest hypothesis iso8601 cryptography_vectors pytz
python3 setup.py test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 42.0.7-1
- Upgrade to v42.0.7
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 38.0.1-2
- Bump version as a part of openssl upgrade
* Mon Oct 17 2022 Prashant S Chauhan <psinghchauha@vmware.com> 38.0.1-1

View File

@ -1,20 +1,23 @@
Name: python3-flit-core
Version: 3.7.1
Version: 3.9.0
Release: 1%{?dist}
Summary: The build backend used by Hatch
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
Url: https://pypi.org/project/flit_core/
Url: https://pypi.org/project/flit_core
Source0: https://files.pythonhosted.org/packages/source/f/flit_core/flit_core-%{version}.tar.gz
%define sha512 flit_core=8c477bcd2924a93b51e6f3d8bbc3599929663c8d5addf16062e8e1b6c5acd740a4e4905b144092efb6e38e9700479525013831a53e055438f94c1e53ff5c6f8d
%define sha512 flit_core=1205589930d2c51d6aa6b2533a122a912e63b157e94adba2a0649a58d324fa98a5b84609d9b53e9d236f1cdb6a6984de2cefcf2f11abc2cd83956df21f269ad6
BuildRequires: python3-devel
BuildRequires: python3-libs
BuildRequires: python3-pip
BuildArch: noarch
Requires: python3
%description
This is the extensible, standards compliant build backend used by Hatch.
@ -35,5 +38,7 @@ python3 setup.py test
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 3.9.0-1
- Upgrade to v3.9.0
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 3.7.1-1
- Initial version

View File

@ -1,7 +1,7 @@
Summary: Python SSH module
Name: python3-paramiko
Version: 2.12.0
Release: 3%{?dist}
Release: 4%{?dist}
License: LGPL
Group: System Environment/Security
Vendor: VMware, Inc.
@ -19,6 +19,11 @@ BuildRequires: python3-pycryptodome
BuildRequires: python3-cryptography
BuildRequires: python3-setuptools
BuildRequires: python3-xml
BuildRequires: python3-pip
BuildRequires: python3-wheel
%if 0%{?with_check}
BuildRequires: python3-pytest
%endif
Requires: python3
Requires: python3-ecdsa > 0.11
@ -33,15 +38,14 @@ Requires: python3-bcrypt
%autosetup -p1 -n paramiko-%{version}
%build
%{py3_build}
%{pyproject_wheel}
%install
python3 setup.py install -O1 --skip-build \
--root "%{buildroot}" \
--single-version-externally-managed
%pyproject_install
%check
LANG=en_US.UTF-8 python3 test.py
pip3 install mock pytest_relaxed PyNaCl bcrypt
%{pytest}
%clean
rm -rf %{buildroot}
@ -51,6 +55,8 @@ rm -rf %{buildroot}
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.12.0-4
- Bump version as a part of python3-cryptography upgrade
* Fri Dec 08 2023 Shreenidhi Shedi <sshedi@vmware.com> 2.12.0-3
- Remove cryptodome dependency
* Fri Jan 06 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 2.12.0-2

View File

@ -1,7 +1,7 @@
Summary: Python wrapper module around the OpenSSL library
Name: python3-pyOpenSSL
Version: 22.0.0
Release: 3%{?dist}
Version: 24.1.0
Release: 1%{?dist}
Url: https://github.com/pyca/pyopenssl
License: ASL 2.0
Group: Development/Languages/Python
@ -9,11 +9,13 @@ Vendor: VMware, Inc.
Distribution: Photon
Source0: https://files.pythonhosted.org/packages/source/p/pyOpenSSL/pyOpenSSL-%{version}.tar.gz
%define sha512 pyOpenSSL=3d7695f27b7909eb82f05527ab7551fe90a85a70f20ea980293b59672a62f9b015966180407fa0786e94b01ad1d1acfaa7d40426bb63410efd24a144e559e2f0
%define sha512 pyOpenSSL=acb07025f085d2fe9338e5ce5f65937001b1a8376c41ac532e9b0548668ce05c844e3e28c58efad812a034becf8e24aa9504165ff6af4c3b085cf463fa4d2fb6
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-xml
BuildRequires: python3-pip
BuildRequires: python3-wheel
%if 0%{?with_check}
BuildRequires: openssl-devel
BuildRequires: curl-devel
@ -26,6 +28,7 @@ BuildRequires: python3-pyasn1
BuildRequires: python3-six
BuildRequires: python3-packaging
BuildRequires: python3-asn1crypto
BuildRequires: python3-pytest
%endif
Requires: python3
@ -41,16 +44,22 @@ High-level wrapper around a subset of the OpenSSL library.
%autosetup -n pyOpenSSL-%{version}
%build
%py3_build
%{pyproject_wheel}
%install
%py3_install
%{pyproject_install}
%check
pip3 install pretend flaky tomli
%pytest
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 24.1.0-1
- Upgrade to v24.1.0
* Sun Nov 19 2023 Shreenidhi Shedi <sshedi@vmware.com> 22.0.0-3
- Bump version as a part of openssl upgrade
* Fri Dec 02 2022 Prashant S Chauhan <psinghchauha@vmware.com> 22.0.0-2

View File

@ -1,7 +1,7 @@
Summary: Awesome Python HTTP Library That's Actually Usable
Name: python3-requests
Version: 2.28.1
Release: 1%{?dist}
Release: 2%{?dist}
License: Apache2
Group: Development/Languages/Python
Vendor: VMware, Inc.
@ -88,6 +88,8 @@ pytest3 -v -k "not test_https_warnings"
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.28.1-2
- Bump version as a part of python3-pyOpenSSL upgrade
* Sun Aug 21 2022 Gerrit Photon <photon-checkins@vmware.com> 2.28.1-1
- Automatic Version Bump
* Sat Dec 18 2021 Shreenidhi Shedi <sshedi@vmware.com> 2.26.0-1

View File

@ -1,19 +1,20 @@
Summary: Service identity verification for pyOpenSSL.
Name: python3-service_identity
Version: 21.1.0
Release: 1%{?dist}
Release: 2%{?dist}
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
Url: https://pypi.python.org/pypi/service_identity
Source0: service_identity-%{version}.tar.gz
%define sha512 service_identity=36a6f7cb30871bd38da865521503c622a70318f8c5cdc74b0565bdc292bb3b84682bf3afe050d007b21f27d0c54ba0bfe1cd71b63fb13fa42cbaef66cb115c2b
BuildRequires: python3-devel
BuildRequires: python3-libs
BuildRequires: python3-setuptools
BuildRequires: python3-xml
%if %{with_check}
%if 0%{?with_check}
BuildRequires: python3-pip
BuildRequires: python3-pytest
BuildRequires: python3-pyasn1-modules
@ -24,7 +25,6 @@ BuildRequires: python3-idna
%endif
Requires: python3
Requires: python3-libs
Requires: python3-pyasn1-modules
Requires: python3-pyasn1
Requires: python3-attrs
@ -47,11 +47,7 @@ In the simplest case, this means host name verification. However, service_identi
%py3_install
%check
pip3 install pathlib2
pip3 install funcsigs
pip3 install pluggy
pip3 install atomicwrites
pip3 install more-itertools
pip3 install pathlib2 funcsigs pluggy atomicwrites more-itertools
PYTHONPATH="%{buildroot}%{python3_sitelib}" py.test3
%files
@ -59,6 +55,8 @@ PYTHONPATH="%{buildroot}%{python3_sitelib}" py.test3
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 21.1.0-2
- Bump version as a part of python3-pyOpenSSL upgrade
* Sun Aug 21 2022 Gerrit Photon <photon-checkins@vmware.com> 21.1.0-1
- Automatic Version Bump
* Mon Jun 15 2020 Tapas Kundu <tkundu@vmware.com> 18.1.0-2

View File

@ -1,5 +1,5 @@
Name: python3-setuptools-rust
Version: 1.5.2
Version: 1.9.0
Release: 1%{?dist}
Summary: Setuptools plugin for Rust support
License: MIT
@ -7,22 +7,26 @@ Group: Development/Languages/Python
Url: https://github.com/PyO3/setuptools-rust
Vendor: VMware, Inc.
Distribution: Photon
Source0: https://files.pythonhosted.org/packages/source/s/setuptools-rust/setuptools-rust-%{version}.tar.gz
%define sha512 setuptools-rust=79b1de5581b9558cdf227320c421aa2445b2e6b8583ed9c118ee8d7acdfde9d947e7d11fa6a9697c475d4ca387c86ca6846429099ec30d2eb6e40f8849fcecc0
Source0: https://files.pythonhosted.org/packages/source/s/setuptools-rust/setuptools-rust-%{version}.tar.gz
%define sha512 setuptools-rust=8658ab89833affca2f7882f7a386442b40f5a7decc651f37a4ee65be50a002dad81d929f0b970ba53f628597efc852d7708f78bf90fab91a14bcb42048f374a6
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-typing-extensions
%if %{with_check}
BuildRequires: python3-pytest
BuildRequires: python3-wheel
BuildRequires: python3-pip
%if 0%{?with_check}
BuildRequires: python3-pytest
BuildRequires: python3-six
BuildRequires: python3-attrs
BuildRequires: python3-pluggy
BuildRequires: python3-more-itertools
BuildRequires: python3-atmoicwrites
%endif
Requires: python3
Requires: python3-semantic-version
BuildArch: noarch
@ -34,10 +38,10 @@ Compile and distribute Python extensions written in Rust as easily as if they we
%autosetup -n setuptools-rust-%{version}
%build
%py3_build
%{pyproject_wheel}
%install
%py3_install
%{pyproject_install}
%check
%pytest
@ -47,5 +51,7 @@ Compile and distribute Python extensions written in Rust as easily as if they we
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 1.9.0-1
- Upgrade to v1.9.0
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.5.2-1
- Initial Build

View File

@ -1,7 +1,7 @@
Summary: OSS implementation of the TCG TPM2 Software Stack (TSS2)
Name: tpm2-pkcs11
Version: 1.8.0
Release: 7%{?dist}
Version: 1.9.0
Release: 1%{?dist}
License: BSD 2-Clause
URL: https://github.com/tpm2-software/tpm2-pkcs11
Group: System Environment/Security
@ -9,10 +9,8 @@ Vendor: VMware, Inc.
Distribution: Photon
Source0: https://github.com/tpm2-software/tpm2-pkcs11/releases/download/1.6.0/%{name}-%{version}.tar.gz
%define sha512 tpm2=006943b3853dc80e44d2322ea0278d6a9f2139c3b3e2a2c5f33436d479d698c5b9d685fb1166d22562bcf3d52edb1075efe7592c27a8c3a0cd05356cab3c9874
%define sha512 tpm2=e88e78790a8d4d5a67713855106860e90dd18da00dc738ca7bfebf7979cdde54ce5089d0be015e7a208117bf393db700ca7739986c5e8138ee0e3b37344614b0
BuildRequires: make
BuildRequires: gcc
BuildRequires: openssl-devel
BuildRequires: tpm2-tools
BuildRequires: tpm2-tss-devel
@ -29,10 +27,8 @@ BuildRequires: python3-pyasn1-modules
BuildRequires: cmocka-devel
BuildRequires: dbus
BuildRequires: tpm2-pytss
%if 0%{?with_check}
BuildRequires: python3-pip
%endif
BuildRequires: python3-wheel
BuildRequires: python3-pip
Requires: openssl
Requires: tpm2-tools
@ -40,7 +36,7 @@ Requires: tpm2-tss
Requires: tpm2-abrmd
Requires: libyaml
Requires: sqlite-libs
Requires: tpm2-pytss
Requires: tpm2-pytss >= 2.2.1-1
%description
OSS implementation of the TCG TPM2 PKCSv11 Software Stack
@ -58,18 +54,18 @@ Requires: python3-PyYAML
Tools for TCG TPM2 PKCSv11 Software Stack
%prep
%autosetup -p1 -n %{name}-%{version}
%autosetup -p1
%build
sh ./bootstrap
autoreconf -vif
%configure \
--enable-unit
--enable-unit
%make_build PACKAGE_VERSION=%{version}
cd tools
%py3_build
%pyproject_wheel
%install
%make_install %{?_smp_mflags}
@ -77,17 +73,15 @@ cd tools
rm %{buildroot}%{_libdir}/pkgconfig/tpm2-pkcs11.pc
cd tools
%py3_install
%pyproject_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%if 0%{?with_check}
%check
make %{?_smp_mflags} check
%make_build check
cd tools
python3 setup.py test
%endif
%clean
rm -rf %{buildroot}/*
@ -104,6 +98,8 @@ rm -rf %{buildroot}/*
%{python3_sitelib}/*
%changelog
* Mon Jun 03 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 1.9.0-1
- Upgrade to v1.9.0
* Thu Mar 07 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 1.8.0-7
- Bump version as a part of dbus upgrade
* Mon Mar 04 2024 Nitesh Kumar <nitesh-nk.kumar@broadcom.com> 1.8.0-6

View File

@ -1,6 +1,6 @@
Name: tpm2-pytss
Version: 1.2.0
Release: 2%{?dist}
Version: 2.2.1
Release: 1%{?dist}
Summary: Python bindings for tpm2-tss
License: BSD
URL: https://github.com/tpm2-software/tpm2-pytss
@ -9,26 +9,32 @@ Group: System Environment/Security
Distribution: Photon
Source0: https://github.com/tpm2-software/tpm2-pytss/archive/refs/tags/%{name}-%{version}.tar.gz
%define sha512 %{name}=9f317b2144e27ac0e6b876d1987cd5c64f4c1f70d1689cea3d926749d9778b2ad813335269cff70c8335f15b72b1233fffe062f4cb5791c5480c58119cf42db7
%define sha512 %{name}=b55c8f0ba03204e803e33da115961893a1a7e08bcac29399a728d9f984be2d538076fa7dd289e96beedb6d6125a53f5b5841dd216f89d55833db9eb9197ba747
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
BuildRequires: python3-packaging
BuildRequires: python3-pkgconfig
BuildRequires: python3-pycparser
BuildRequires: python3-pip
BuildRequires: git
BuildRequires: tpm2-tss-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-cffi
BuildRequires: python3-asn1crypto
%if 0%{?with_check}
BuildRequires: python3-pytest
BuildRequires: python3-cryptography
BuildRequires: python3-cffi
BuildRequires: python3-pip
BuildRequires: python3-PyYAML
%endif
Requires: tpm2-tss
Requires: python3
Requires: python3-cffi
Requires: python3-asn1crypto
%description
TPM2 TSS Python bindings for Enhanced System API (ESYS).
@ -38,22 +44,22 @@ This package primarily exposes the TPM 2.0 Enhanced System API.
%autosetup -p1 -Sgit
%build
%py3_build
%{pyproject_wheel}
%install
%py3_install
%{pyproject_install}
%if 0%{?with_check}
%check
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%pytest
%endif
%files
%defattr(-,root,root)
%{python3_sitelib}/*
%changelog
* Tue Jun 04 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 2.2.1-1
- Upgrade to v2.2.1
* Mon Oct 31 2022 Prashant S Chauhan <psinghchauha@vmware.com> 1.2.0-2
- Update release to compile with python 3.11
* Wed Oct 05 2022 Shreenidhi Shedi <sshedi@vmware.com> 1.2.0-1