[packages/python-libvirt] up to 4.0.0

atler atler at pld-linux.org
Sat Feb 10 13:55:10 CET 2018


commit d086242bfaa3e70fbab96e7738681b59f00cb419
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Feb 10 13:54:53 2018 +0100

    up to 4.0.0

 libvirt-python-build.patch | 30 ------------------------------
 python-libvirt.spec        |  8 ++++----
 2 files changed, 4 insertions(+), 34 deletions(-)
---
diff --git a/python-libvirt.spec b/python-libvirt.spec
index b389ac5..38da5d6 100644
--- a/python-libvirt.spec
+++ b/python-libvirt.spec
@@ -13,13 +13,12 @@
 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
-Version:	2.5.0
+Version:	4.0.0
 Release:	1
 License:	LGPL v2.1+
 Group:		Development/Languages/Python
 Source0:	ftp://ftp.libvirt.org/libvirt/python/%{origname}-%{version}.tar.gz
-# Source0-md5:	6a064196181adcb7769e42c312a65610
-Patch0:		libvirt-python-build.patch
+# Source0-md5:	b3db91358dd759b89fbe38bfe24e5ca1
 URL:		http://www.libvirt.org/
 BuildRequires:	libvirt-devel >= 1.0.2
 BuildRequires:	pkgconfig
@@ -67,7 +66,6 @@ Ten pakiet zawiera wiązania Pythona 3.x do biblioteki libvirt.
 
 %prep
 %setup -q -n %{origname}-%{version}
-%patch0 -p1
 
 %build
 %py_build
@@ -112,6 +110,8 @@ rm -rf $RPM_BUILD_ROOT
 %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
diff --git a/libvirt-python-build.patch b/libvirt-python-build.patch
deleted file mode 100644
index 3b98f4b..0000000
--- a/libvirt-python-build.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From f5edaf1ba5bc2db38ae0c7f595e17aff9d89dcfa Mon Sep 17 00:00:00 2001
-From: Daniel P. Berrange <berrange at redhat.com>
-Date: Wed, 21 Dec 2016 10:35:17 +0000
-Subject: [PATCH 1/1] Remove bogus \o escape in regex
-
-One of the regexes has a bogus \o instead of plain 'o'. Somehow
-this magically worked on all versions of python, until 3.6 came
-along and complained
-
-Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
----
- generator.py |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/generator.py b/generator.py
-index 730e456..2c3b667 100755
---- a/generator.py
-+++ b/generator.py
-@@ -1091,7 +1091,7 @@ def is_integral_type (name):
-     return not re.search ("^(unsigned)? ?(int|long)$", name) is None
- 
- def is_optional_arg(info):
--    return re.search("^\(?\optional\)?", info) is not None
-+    return re.search("^\(?optional\)?", info) is not None
- # Functions returning lists which need special rules to check for errors
- # and raise exceptions.
- functions_list_exception_test = {
--- 
-1.7.1
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-libvirt.git/commitdiff/d086242bfaa3e70fbab96e7738681b59f00cb419



More information about the pld-cvs-commit mailing list