Skip to content

Commit d750043

Browse files
authored
Add Python 3.11 subpackage to be usable in ansible-core 2.14 for el8 (#104)
Signed-off-by: Martin Nečas <[email protected]>
1 parent e9b217b commit d750043

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.automation/generate-setup-files.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh -e
22

33
VERSION="4.6.2"
4-
MILESTONE=master
5-
# MILESTONE=
6-
RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)"
7-
# RPM_RELEASE=1
4+
# MILESTONE=master
5+
MILESTONE=
6+
# RPM_RELEASE="0.1.$MILESTONE.$(date -u +%Y%m%d%H%M%S)"
7+
RPM_RELEASE=1
88

99
PACKAGE_NAME="python-ovirt-engine-sdk4"
1010

python-ovirt-engine-sdk4.spec.in

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,17 @@ API.
4343
%endif
4444

4545
%if 0%{?rhel} < 9
46-
%package -n python39-ovirt-engine-sdk4
46+
%package -n python3.11-ovirt-engine-sdk4
4747
Summary: oVirt Engine Software Development Kit (Python)
48-
BuildRequires: python39-devel
48+
BuildRequires: python3.11-devel
49+
BuildRequires: python3.11-setuptools
4950
Requires: libxml2
50-
Requires: python39
51-
Requires: python39-pycurl >= 7.43.0-6
52-
Requires: python39-six
51+
Requires: python3.11
52+
Requires: python3.11-pycurl >= 7.43.0-6
53+
Requires: python3.11-six
5354

54-
%description -n python39-ovirt-engine-sdk4
55-
This package contains the Python 3.9 SDK for version 4 of the oVirt Engine
55+
%description -n python3.11-ovirt-engine-sdk4
56+
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
5657
API.
5758
%endif
5859

@@ -64,8 +65,8 @@ API.
6465
%define __python3 /usr/bin/python3
6566
%py3_build
6667
%if 0%{?rhel} < 9
67-
%define python3_pkgversion 39
68-
%define __python3 /usr/bin/python3.9
68+
%define python3_pkgversion 3.11
69+
%define __python3 /usr/bin/python3.11
6970
%py3_build
7071
%endif
7172
%if 0%{?rhel} >= 9
@@ -79,8 +80,8 @@ API.
7980
%define __python3 /usr/bin/python3
8081
%py3_install
8182
%if 0%{?rhel} < 9
82-
%define python3_pkgversion 39
83-
%define __python3 /usr/bin/python3.9
83+
%define python3_pkgversion 3.11
84+
%define __python3 /usr/bin/python3.11
8485
%py3_install
8586
%endif
8687
%if 0%{?rhel} >= 9
@@ -98,12 +99,12 @@ API.
9899
%{python3_sitearch}/*
99100

100101
%if 0%{?rhel} < 9
101-
%files -n python39-ovirt-engine-sdk4
102+
%files -n python3.11-ovirt-engine-sdk4
102103
%doc README.adoc
103104
%doc examples
104105
%license LICENSE.txt
105-
%define python3_pkgversion 39
106-
%define __python3 /usr/bin/python3.9
106+
%define python3_pkgversion 3.11
107+
%define __python3 /usr/bin/python3.11
107108
%{python3_sitearch}/*
108109
%endif
109110

@@ -118,6 +119,9 @@ API.
118119
%endif
119120

120121
%changelog
122+
* Thu Mar 23 2023 Martin Necas <[email protected]> - 4.6.2-1
123+
- Add Python 3.11 subpackage to be usable in ansible-core 2.14 for el8
124+
121125
* Wed Mar 1 2023 Martin Necas <[email protected]> - 4.6.1-1
122126
- Add Python 3.11 subpackage to be usable in ansible-core-2.14
123127

0 commit comments

Comments
 (0)