Skip to content

Commit 7a91ead

Browse files
authored
Add Python 3.11 subpackage to be usable in ansible-core 2.14 (#100)
Signed-off-by: Martin Nečas <[email protected]>
1 parent 2aa5026 commit 7a91ead

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

python-ovirt-engine-sdk4.spec.in

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ Requires: python3-six
2727
This package contains the Python 3 SDK for version 4 of the oVirt Engine
2828
API.
2929

30+
%if 0%{?rhel} >= 9
31+
%package -n python3.11-ovirt-engine-sdk4
32+
Summary: oVirt Engine Software Development Kit (Python)
33+
BuildRequires: python3.11-devel
34+
BuildRequires: python3.11-setuptools
35+
Requires: libxml2
36+
Requires: python3.11
37+
Requires: python3.11-pycurl >= 7.43.0-6
38+
Requires: python3.11-six
39+
40+
%description -n python3.11-ovirt-engine-sdk4
41+
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
42+
API.
43+
%endif
44+
3045
%if 0%{?rhel} < 9
3146
%package -n python39-ovirt-engine-sdk4
3247
Summary: oVirt Engine Software Development Kit (Python)
@@ -53,6 +68,11 @@ API.
5368
%define __python3 /usr/bin/python3.9
5469
%py3_build
5570
%endif
71+
%if 0%{?rhel} >= 9
72+
%define python3_pkgversion 3.11
73+
%define __python3 /usr/bin/python3.11
74+
%py3_build
75+
%endif
5676

5777
%install
5878
%define python3_pkgversion 3
@@ -63,6 +83,11 @@ API.
6383
%define __python3 /usr/bin/python3.9
6484
%py3_install
6585
%endif
86+
%if 0%{?rhel} >= 9
87+
%define python3_pkgversion 3.11
88+
%define __python3 /usr/bin/python3.11
89+
%py3_install
90+
%endif
6691

6792
%files -n python3-ovirt-engine-sdk4
6893
%doc README.adoc
@@ -82,6 +107,16 @@ API.
82107
%{python3_sitearch}/*
83108
%endif
84109

110+
%if 0%{?rhel} >= 9
111+
%files -n python3.11-ovirt-engine-sdk4
112+
%doc README.adoc
113+
%doc examples
114+
%license LICENSE.txt
115+
%define python3_pkgversion 3.11
116+
%define __python3 /usr/bin/python3.11
117+
%{python3_sitearch}/*
118+
%endif
119+
85120
%changelog
86121
* Fri Nov 25 2022 Martin Perina <[email protected]> - 4.6.0-1
87122
- Update to model 4.6.0

0 commit comments

Comments
 (0)