Skip to content

Commit

Permalink
Add Python 3.11 subpackage to be usable in ansible-core 2.14 for el8 (#…
Browse files Browse the repository at this point in the history
…104)

Signed-off-by: Martin Nečas <[email protected]>
  • Loading branch information
mnecas authored Mar 23, 2023
1 parent e9b217b commit d750043
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
8 changes: 4 additions & 4 deletions .automation/generate-setup-files.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
32 changes: 18 additions & 14 deletions python-ovirt-engine-sdk4.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand All @@ -118,6 +119,9 @@ API.
%endif

%changelog
* Thu Mar 23 2023 Martin Necas <[email protected]> - 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 <[email protected]> - 4.6.1-1
- Add Python 3.11 subpackage to be usable in ansible-core-2.14

Expand Down

0 comments on commit d750043

Please sign in to comment.