-
Notifications
You must be signed in to change notification settings - Fork 25
/
python-ovirt-engine-sdk4.spec.in
154 lines (130 loc) · 3.95 KB
/
python-ovirt-engine-sdk4.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Name: @PACKAGE_NAME@
Summary: Python SDK for version 4 of the oVirt Engine API
Version: @RPM_VERSION@
Release: @RPM_RELEASE@%{?release_suffix}%{?dist}
Group: Development/Languages
License: ASL 2.0
URL: http://ovirt.org
Source: ovirt-engine-sdk-python-@[email protected]
BuildRequires: gcc
BuildRequires: libxml2-devel
Requires: libxml2
%description
This package contains the Python SDK for version 4 of the oVirt Engine
API.
%package -n python3-ovirt-engine-sdk4
Summary: oVirt Engine Software Development Kit (Python)
BuildRequires: python3-devel
Requires: libxml2
Requires: python3
Requires: python3-pycurl >= 7.43.0-6
Requires: python3-six
%description -n python3-ovirt-engine-sdk4
This package contains the Python 3 SDK for version 4 of the oVirt Engine
API.
%if 0%{?rhel} >= 9
%package -n python3.11-ovirt-engine-sdk4
Summary: oVirt Engine Software Development Kit (Python)
BuildRequires: python3.11-devel
BuildRequires: python3.11-setuptools
Requires: libxml2
Requires: python3.11
Requires: python3.11-pycurl >= 7.43.0-6
Requires: python3.11-six
%description -n python3.11-ovirt-engine-sdk4
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
API.
%endif
%if 0%{?rhel} < 9
%package -n python3.11-ovirt-engine-sdk4
Summary: oVirt Engine Software Development Kit (Python)
BuildRequires: python3.11-devel
BuildRequires: python3.11-setuptools
Requires: libxml2
Requires: python3.11
Requires: python3.11-pycurl >= 7.43.0-6
Requires: python3.11-six
%description -n python3.11-ovirt-engine-sdk4
This package contains the Python 3.11 SDK for version 4 of the oVirt Engine
API.
%endif
%prep
%setup -c -q -n ovirt-engine-sdk-python-@PACKAGE_VERSION@
%build
%define python3_pkgversion 3
%define __python3 /usr/bin/python3
%py3_build
%if 0%{?rhel} < 9
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%py3_build
%endif
%if 0%{?rhel} >= 9
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%py3_build
%endif
%install
%define python3_pkgversion 3
%define __python3 /usr/bin/python3
%py3_install
%if 0%{?rhel} < 9
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%py3_install
%endif
%if 0%{?rhel} >= 9
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%py3_install
%endif
%files -n python3-ovirt-engine-sdk4
%doc README.adoc
%doc examples
%license LICENSE.txt
%define python3_pkgversion 3
%define __python3 /usr/bin/python3
%{python3_sitearch}/*
%if 0%{?rhel} < 9
%files -n python3.11-ovirt-engine-sdk4
%doc README.adoc
%doc examples
%license LICENSE.txt
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%{python3_sitearch}/*
%endif
%if 0%{?rhel} >= 9
%files -n python3.11-ovirt-engine-sdk4
%doc README.adoc
%doc examples
%license LICENSE.txt
%define python3_pkgversion 3.11
%define __python3 /usr/bin/python3.11
%{python3_sitearch}/*
%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
* Fri Nov 25 2022 Martin Perina <[email protected]> - 4.6.0-1
- Update to model 4.6.0
- Switch from Python 3.8 to 3.9 on EL8 to support ansible-core >= 2.13
* Thu Aug 4 2022 Ori Liel <[email protected]> - 4.5.2
- Update to model 4.5.11
* Tue Mar 29 2022 Ori Liel <[email protected]> - 4.5.1
- Update to model 4.5.7
* Wed Oct 27 2021 Martin Necas <[email protected]> - 4.5.0-1
- Update to model 4.5.0
* Thu Aug 5 2021 Martin Necas <[email protected]> - 4.4.15-1
- Update to model 4.4.34
- Improve examples upload_disk, download_disk, backup_vm
* Thu Jul 2 2020 Martin Perina <[email protected]> - 4.4.4-1
- Update to model 4.4.17
- Improve examples code around image transfer features
* Thu Jun 06 2019 Sandro Bonazzola <[email protected]> - 4.3.1-1
- 4.3.1
- Adhere to Fedora packaging guidelines naming schema
* Wed Jun 14 2017 Sandro Bonazzola <[email protected]> - 4.2.0-1
- 4.2.0