From a54f8fda72dccbc81860451d01a188d6ab2e3469 Mon Sep 17 00:00:00 2001
From: Marcin Krol <hawk@tld-linux.org>
Date: Sat, 16 Dec 2023 01:19:46 +0100
Subject: [PATCH 1/1] - from PLD, updated to 9.10.0

---
 python3-libvirt.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 python3-libvirt.spec

diff --git a/python3-libvirt.spec b/python3-libvirt.spec
new file mode 100644
index 0000000..53a536f
--- /dev/null
+++ b/python3-libvirt.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without	lxc		# LXC support
+%bcond_without	qemu		# Qemu support
+
+# qemu available only on x86 and ppc
+%ifnarch %{ix86} %{x8664} x32 ppc
+%undefine	with_qemu
+%endif
+
+%define		origname	libvirt-python
+Summary:	Python 3.x bindings to interact with virtualization capabilities
+Summary(pl.UTF-8):	Wiązania Pythona 3.x do współpracy z funkcjami wirtualizacji
+Name:		python3-libvirt
+Version:	9.10.0
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Languages/Python
+Source0:	https://libvirt.org/sources/python/%{origname}-%{version}.tar.gz
+# Source0-md5:	e409f23c12edcdf1ce7111a3488638f6
+URL:		https://libvirt.org/
+BuildRequires:	libvirt-devel >= 9.10.0
+BuildRequires:	pkgconfig
+BuildRequires:	python3 >= 1:3.5
+BuildRequires:	python3-devel >= 1:3.5
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildConflicts:	python-PyXML < 0.8.4-13
+Requires:	libvirt >= 8.8.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libvirt is a C toolkit to interact with the virtualization
+capabilities of recent versions of Linux.
+
+This package contains the Python 3.x bindings for the libvirt library.
+
+%description -l pl.UTF-8
+Libvirt to zestaw narzędzi w C do współpracy z funkcjami wirtualizacji
+obecnych wersji Linuksa.
+
+Ten pakiet zawiera wiązania Pythona 3.x do biblioteki libvirt.
+
+%prep
+%setup -q -n %{origname}-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{py3_sitedir}/libvirtmod.cpython-*.so
+%{py3_sitedir}/libvirt.py
+%{py3_sitedir}/__pycache__/libvirt.cpython-*.py[co]
+%{py3_sitedir}/libvirtaio.py
+%{py3_sitedir}/__pycache__/libvirtaio.cpython-*.py[co]
+%if %{with lxc}
+%attr(755,root,root) %{py3_sitedir}/libvirtmod_lxc.cpython-*.so
+%{py3_sitedir}/libvirt_lxc.py
+%{py3_sitedir}/__pycache__/libvirt_lxc.cpython-*.py[co]
+%endif
+%if %{with qemu}
+%attr(755,root,root) %{py3_sitedir}/libvirtmod_qemu.cpython-*.so
+%{py3_sitedir}/libvirt_qemu.py
+%{py3_sitedir}/__pycache__/libvirt_qemu.cpython-*.py[co]
+%endif
+%{py3_sitedir}/libvirt_python-%{version}-py*.egg-info
-- 
2.49.0