From d75004346f4e937cb1bcb8bcd6884b2c7bff3b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Thu, 23 Mar 2023 19:38:59 +0100 Subject: [PATCH] Add Python 3.11 subpackage to be usable in ansible-core 2.14 for el8 (#104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Nečas --- .automation/generate-setup-files.sh | 8 ++++---- python-ovirt-engine-sdk4.spec.in | 32 ++++++++++++++++------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.automation/generate-setup-files.sh b/.automation/generate-setup-files.sh index 3605605..75a07a5 100755 --- a/.automation/generate-setup-files.sh +++ b/.automation/generate-setup-files.sh @@ -1,10 +1,10 @@ #!/bin/sh -e VERSION="4.6.2" -MILESTONE=master -# MILESTONE= -RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)" -# RPM_RELEASE=1 +# MILESTONE=master +MILESTONE= +# RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)" +RPM_RELEASE=1 PACKAGE_NAME="python-ovirt-engine-sdk4" diff --git a/python-ovirt-engine-sdk4.spec.in b/python-ovirt-engine-sdk4.spec.in index b01b18e..790b927 100644 --- a/python-ovirt-engine-sdk4.spec.in +++ b/python-ovirt-engine-sdk4.spec.in @@ -43,16 +43,17 @@ API. %endif %if 0%{?rhel} < 9 -%package -n python39-ovirt-engine-sdk4 +%package -n python3.11-ovirt-engine-sdk4 Summary: oVirt Engine Software Development Kit (Python) -BuildRequires: python39-devel +BuildRequires: python3.11-devel +BuildRequires: python3.11-setuptools Requires: libxml2 -Requires: python39 -Requires: python39-pycurl >= 7.43.0-6 -Requires: python39-six +Requires: python3.11 +Requires: python3.11-pycurl >= 7.43.0-6 +Requires: python3.11-six -%description -n python39-ovirt-engine-sdk4 -This package contains the Python 3.9 SDK for version 4 of the oVirt Engine +%description -n python3.11-ovirt-engine-sdk4 +This package contains the Python 3.11 SDK for version 4 of the oVirt Engine API. %endif @@ -64,8 +65,8 @@ API. %define __python3 /usr/bin/python3 %py3_build %if 0%{?rhel} < 9 -%define python3_pkgversion 39 -%define __python3 /usr/bin/python3.9 +%define python3_pkgversion 3.11 +%define __python3 /usr/bin/python3.11 %py3_build %endif %if 0%{?rhel} >= 9 @@ -79,8 +80,8 @@ API. %define __python3 /usr/bin/python3 %py3_install %if 0%{?rhel} < 9 -%define python3_pkgversion 39 -%define __python3 /usr/bin/python3.9 +%define python3_pkgversion 3.11 +%define __python3 /usr/bin/python3.11 %py3_install %endif %if 0%{?rhel} >= 9 @@ -98,12 +99,12 @@ API. %{python3_sitearch}/* %if 0%{?rhel} < 9 -%files -n python39-ovirt-engine-sdk4 +%files -n python3.11-ovirt-engine-sdk4 %doc README.adoc %doc examples %license LICENSE.txt -%define python3_pkgversion 39 -%define __python3 /usr/bin/python3.9 +%define python3_pkgversion 3.11 +%define __python3 /usr/bin/python3.11 %{python3_sitearch}/* %endif @@ -118,6 +119,9 @@ API. %endif %changelog +* Thu Mar 23 2023 Martin Necas - 4.6.2-1 +- Add Python 3.11 subpackage to be usable in ansible-core 2.14 for el8 + * Wed Mar 1 2023 Martin Necas - 4.6.1-1 - Add Python 3.11 subpackage to be usable in ansible-core-2.14