[packages/python3-libvirt] - python-libvirt.spec updated to 6.6.0 for python 3.5+
qboosh
qboosh at pld-linux.org
Sun Oct 4 16:09:41 CEST 2020
commit 89f4ed0706682b7cd3d01f479bb9b05fc7caad19
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 4 16:12:38 2020 +0200
- python-libvirt.spec updated to 6.6.0 for python 3.5+
python-libvirt.spec | 136 ---------------------------------------------------
python3-libvirt.spec | 76 ++++++++++++++++++++++++++++
2 files changed, 76 insertions(+), 136 deletions(-)
---
diff --git a/python-libvirt.spec b/python-libvirt.spec
deleted file mode 100644
index 80859a2..0000000
--- a/python-libvirt.spec
+++ /dev/null
@@ -1,136 +0,0 @@
-#
-# Conditional build:
-%bcond_without lxc # LXC support
-%bcond_without qemu # Qemu support
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-# qemu available only on x86 and ppc
-%ifnarch %{ix86} %{x8664} x32 ppc
-%undefine with_qemu
-%endif
-
-%define origname libvirt-python
-Summary: Python 2.x bindings to interact with virtualization capabilities
-Summary(pl.UTF-8): Wiązania Pythona 2.x do współpracy z funkcjami wirtualizacji
-Name: python-libvirt
-# keep 5.x here for python2 support
-Version: 5.10.0
-Release: 1
-License: LGPL v2.1+
-Group: Development/Languages/Python
-Source0: https://libvirt.org/sources/python/%{origname}-%{version}.tar.gz
-# Source0-md5: 045c8b45a1aed0725d874ce072027570
-URL: https://libvirt.org/
-BuildRequires: libvirt-devel >= 5.10.0
-BuildRequires: pkgconfig
-%if %{with python2}
-BuildRequires: python >= 1:2.5
-BuildRequires: python-devel >= 1:2.5
-%endif
-%if %{with python3}
-BuildRequires: python3 >= 1:3.2
-BuildRequires: python3-devel >= 1:3.2
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildConflicts: python-PyXML < 0.8.4-13
-Requires: libvirt >= 5.10.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 2.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 2.x do biblioteki libvirt.
-
-%package -n python3-libvirt
-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
-Group: Development/Languages/Python
-Requires: libvirt >= 5.10.0
-
-%description -n python3-libvirt
-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 -n python3-libvirt -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
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{py_sitedir}/libvirtmod.so
-%{py_sitedir}/libvirt.py[co]
-%if %{with lxc}
-%attr(755,root,root) %{py_sitedir}/libvirtmod_lxc.so
-%{py_sitedir}/libvirt_lxc.py[co]
-%endif
-%if %{with qemu}
-%attr(755,root,root) %{py_sitedir}/libvirtmod_qemu.so
-%{py_sitedir}/libvirt_qemu.py[co]
-%endif
-%{py_sitedir}/libvirt_python-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-libvirt
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{py3_sitedir}/libvirtmod.*.so
-%{py3_sitedir}/libvirt.py
-%{py3_sitedir}/__pycache__/libvirt.*.py[co]
-%{py3_sitedir}/libvirtaio.py
-%{py3_sitedir}/__pycache__/libvirtaio.*.py[co]
-%if %{with lxc}
-%attr(755,root,root) %{py3_sitedir}/libvirtmod_lxc.*.so
-%{py3_sitedir}/libvirt_lxc.py
-%{py3_sitedir}/__pycache__/libvirt_lxc.*.py[co]
-%endif
-%if %{with qemu}
-%attr(755,root,root) %{py3_sitedir}/libvirtmod_qemu.*.so
-%{py3_sitedir}/libvirt_qemu.py
-%{py3_sitedir}/__pycache__/libvirt_qemu.*.py[co]
-%endif
-%{py3_sitedir}/libvirt_python-%{version}-py*.egg-info
-%endif
diff --git a/python3-libvirt.spec b/python3-libvirt.spec
new file mode 100644
index 0000000..7dcc455
--- /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: 6.6.0
+Release: 1
+License: LGPL v2.1+
+Group: Development/Languages/Python
+Source0: https://libvirt.org/sources/python/%{origname}-%{version}.tar.gz
+# Source0-md5: f153718d1d47c2e101b2e152e75fabd3
+URL: https://libvirt.org/
+BuildRequires: libvirt-devel >= 6.6.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 >= 6.6.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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-libvirt.git/commitdiff/89f4ed0706682b7cd3d01f479bb9b05fc7caad19
More information about the pld-cvs-commit
mailing list