Skip to content

Commit 925f92b

Browse files
committed
spec: add python3.12 package
Add a python3.12 version of the ovirt-engine-sdk-python. Signed-off-by: Jean-Louis Dupond <[email protected]>
1 parent 9a248fa commit 925f92b

File tree

1 file changed

+15
-31
lines changed

1 file changed

+15
-31
lines changed

Diff for: python-ovirt-engine-sdk4.spec.in

+15-31
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ 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
3130
%package -n python3.11-ovirt-engine-sdk4
3231
Summary: oVirt Engine Software Development Kit (Python)
3332
BuildRequires: python3.11-devel
@@ -40,22 +39,19 @@ Requires: python3.11-six
4039
%description -n python3.11-ovirt-engine-sdk4
4140
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
4241
API.
43-
%endif
4442

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

55-
%description -n python3.11-ovirt-engine-sdk4
56-
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
52+
%description -n python3.12-ovirt-engine-sdk4
53+
This package contains the Python 3.12 SDK for version 4 of the oVirt Engine
5754
API.
58-
%endif
5955

6056
%prep
6157
%setup -c -q -n ovirt-engine-sdk-python-@PACKAGE_VERSION@
@@ -64,31 +60,23 @@ API.
6460
%define python3_pkgversion 3
6561
%define __python3 /usr/bin/python3
6662
%py3_build
67-
%if 0%{?rhel} < 9
6863
%define python3_pkgversion 3.11
6964
%define __python3 /usr/bin/python3.11
7065
%py3_build
71-
%endif
72-
%if 0%{?rhel} >= 9
73-
%define python3_pkgversion 3.11
74-
%define __python3 /usr/bin/python3.11
66+
%define python3_pkgversion 3.12
67+
%define __python3 /usr/bin/python3.12
7568
%py3_build
76-
%endif
7769

7870
%install
7971
%define python3_pkgversion 3
8072
%define __python3 /usr/bin/python3
8173
%py3_install
82-
%if 0%{?rhel} < 9
8374
%define python3_pkgversion 3.11
8475
%define __python3 /usr/bin/python3.11
8576
%py3_install
86-
%endif
87-
%if 0%{?rhel} >= 9
88-
%define python3_pkgversion 3.11
89-
%define __python3 /usr/bin/python3.11
77+
%define python3_pkgversion 3.12
78+
%define __python3 /usr/bin/python3.12
9079
%py3_install
91-
%endif
9280

9381
%files -n python3-ovirt-engine-sdk4
9482
%doc README.adoc
@@ -98,25 +86,21 @@ API.
9886
%define __python3 /usr/bin/python3
9987
%{python3_sitearch}/*
10088

101-
%if 0%{?rhel} < 9
10289
%files -n python3.11-ovirt-engine-sdk4
10390
%doc README.adoc
10491
%doc examples
10592
%license LICENSE.txt
10693
%define python3_pkgversion 3.11
10794
%define __python3 /usr/bin/python3.11
10895
%{python3_sitearch}/*
109-
%endif
11096

111-
%if 0%{?rhel} >= 9
112-
%files -n python3.11-ovirt-engine-sdk4
97+
%files -n python3.12-ovirt-engine-sdk4
11398
%doc README.adoc
11499
%doc examples
115100
%license LICENSE.txt
116-
%define python3_pkgversion 3.11
117-
%define __python3 /usr/bin/python3.11
101+
%define python3_pkgversion 3.12
102+
%define __python3 /usr/bin/python3.12
118103
%{python3_sitearch}/*
119-
%endif
120104

121105
%changelog
122106
* Thu Mar 23 2023 Martin Necas <[email protected]> - 4.6.2-1

0 commit comments

Comments
 (0)