From a05bc04265147bbf5b5cdf3baf1a843624e20023 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 9 May 2023 05:17:32 +0000 Subject: [PATCH] import libvirt-python-9.0.0-1.el9 --- .gitignore | 2 +- .libvirt-python.metadata | 2 +- ...IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch | 42 ------------------- SPECS/libvirt-python.spec | 21 +++++++--- 4 files changed, 18 insertions(+), 49 deletions(-) delete mode 100644 SOURCES/libvirt-python-Add-VIR_DOMAIN_IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch diff --git a/.gitignore b/.gitignore index d89f421..c3aa0c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/libvirt-python-8.5.0.tar.gz +SOURCES/libvirt-python-9.0.0.tar.gz diff --git a/.libvirt-python.metadata b/.libvirt-python.metadata index 91a8cda..1646205 100644 --- a/.libvirt-python.metadata +++ b/.libvirt-python.metadata @@ -1 +1 @@ -a7c3504fa28225fa28d402f68e099eadaf14dba4 SOURCES/libvirt-python-8.5.0.tar.gz +d84b47c633f3c21204dc44253563ac5a29b6818b SOURCES/libvirt-python-9.0.0.tar.gz diff --git a/SOURCES/libvirt-python-Add-VIR_DOMAIN_IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch b/SOURCES/libvirt-python-Add-VIR_DOMAIN_IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch deleted file mode 100644 index 7eee91c..0000000 --- a/SOURCES/libvirt-python-Add-VIR_DOMAIN_IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 75d1f57e95c4447a607b8007da54af5bbec34850 Mon Sep 17 00:00:00 2001 -Message-Id: <75d1f57e95c4447a607b8007da54af5bbec34850@dist-git> -From: Michal Privoznik -Date: Thu, 7 Jul 2022 16:04:10 +0200 -Subject: [PATCH] Add VIR_DOMAIN_IOTHREAD_THREAD_POOL_{MIN,MAX} macros - -The python version of virDomainSetIOThreadParams -(setIOThreadParams()), expects two arguments on input: the thread -ID and a dictionary which is then translated into our typed -parameters. During this translation we use a helper array which -holds type for each typed parameter supported -(virPyDomainSetIOThreadParams[]). Otherwise we guess what the -correct type is. Now, when introducing -VIR_DOMAIN_IOTHREAD_THREAD_POOL_{MIN,MAX} typed params into -libvirt I forgot to update the array. Do that now. - -Signed-off-by: Michal Privoznik -(cherry picked from commit b943a5bd18b4cc765719c0dbc628a077c3db4d52) -Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2117475 -Signed-off-by: Michal Privoznik ---- - libvirt-override.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/libvirt-override.c b/libvirt-override.c -index cba67d9..2a2a7dd 100644 ---- a/libvirt-override.c -+++ b/libvirt-override.c -@@ -1695,6 +1695,10 @@ static virPyTypedParamsHint virPyDomainSetIOThreadParams[] = { - { VIR_DOMAIN_IOTHREAD_POLL_MAX_NS, VIR_TYPED_PARAM_ULLONG }, - { VIR_DOMAIN_IOTHREAD_POLL_GROW, VIR_TYPED_PARAM_UINT }, - { VIR_DOMAIN_IOTHREAD_POLL_SHRINK, VIR_TYPED_PARAM_UINT }, -+# if LIBVIR_CHECK_VERSION(8, 5, 0) -+ { VIR_DOMAIN_IOTHREAD_THREAD_POOL_MIN, VIR_TYPED_PARAM_INT }, -+ { VIR_DOMAIN_IOTHREAD_THREAD_POOL_MAX, VIR_TYPED_PARAM_INT }, -+# endif /* LIBVIR_CHECK_VERSION(8, 5, 0) */ - }; - - static PyObject * --- -2.35.1 - diff --git a/SPECS/libvirt-python.spec b/SPECS/libvirt-python.spec index 2eb6121..e732d23 100644 --- a/SPECS/libvirt-python.spec +++ b/SPECS/libvirt-python.spec @@ -14,18 +14,17 @@ Summary: The libvirt virtualization API python3 binding Name: libvirt-python -Version: 8.5.0 -Release: 2%{?dist}%{?extra_release} +Version: 9.0.0 +Release: 1%{?dist}%{?extra_release} Source0: https://libvirt.org/sources/python/%{name}-%{version}.tar.gz -Patch1: libvirt-python-Add-VIR_DOMAIN_IOTHREAD_THREAD_POOL_-MIN-MAX-macros.patch - Url: https://libvirt.org License: LGPLv2+ BuildRequires: git -BuildRequires: libvirt-devel >= 8.5.0-5 +BuildRequires: libvirt-devel >= 9.0.0-2 BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-lxml +BuildRequires: python3-setuptools BuildRequires: gcc # Don't want provides for python shared objects @@ -93,6 +92,18 @@ exit 1 %{python3_sitearch}/*egg-info %changelog +* Wed Feb 1 2023 Jiri Denemark - 9.0.0-1 +- Rebased to libvirt-python-9.0.0 (rhbz#2124467) + +* Thu Dec 8 2022 Jiri Denemark - 8.10.0-1 +- Rebased to libvirt-python-8.10.0 (rhbz#2124467) + +* Fri Nov 4 2022 Jiri Denemark - 8.9.0-1 +- Rebased to libvirt-python-8.9.0 (rhbz#2124467) + +* Mon Sep 26 2022 Jiri Denemark - 8.7.0-1 +- Rebased to libvirt-python-8.7.0 (rhbz#2124467) + * Thu Aug 18 2022 Jiri Denemark - 8.5.0-2 - Add VIR_DOMAIN_IOTHREAD_THREAD_POOL_{MIN,MAX} macros (rhbz#2117475)