- updated to 2.1.0
authorMarcin Krol <hawk@tld-linux.org>
Mon, 22 Aug 2016 11:13:25 +0000 (11:13 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Mon, 22 Aug 2016 11:13:25 +0000 (11:13 +0000)
python-libvirt.spec

index 9cdb882c3c966345158eb4444e2aaf803b41ee02..1cb4e7c2f0f9a2b2c4cbb37f2657a60524934890 100644 (file)
@@ -5,7 +5,7 @@
 %bcond_without python3         # CPython 3.x module
 
 # qemu available only on x86 and ppc
-%ifnarch %{ix86} %{x8664} ppc
+%ifnarch %{ix86} %{x8664} x32 ppc
 %undefine      with_qemu
 %endif
 
 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:       1.2.17
+Version:       2.1.0
 Release:       1
 License:       LGPL v2.1+
 Group:         Development/Languages/Python
 Source0:       ftp://ftp.libvirt.org/libvirt/python/%{origname}-%{version}.tar.gz
-# Source0-md5: a695e323e33db562d86e947f7ac77f09
+# Source0-md5: 7f595fed5b9da18b07fd73beafd82ed2
 URL:           http://www.libvirt.org/
 BuildRequires: libvirt-devel >= 1.0.2
 BuildRequires: pkgconfig
@@ -29,7 +29,8 @@ BuildRequires:        python3 >= 1:3
 BuildRequires: python3-devel >= 1:3
 %endif
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.627
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildConflicts:        python-PyXML < 0.8.4-13
 Requires:      libvirt >= 1.0.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -67,39 +68,21 @@ Ten pakiet zawiera wiązania Pythona 3.x do biblioteki libvirt.
 %setup -q -n %{origname}-%{version}
 
 %build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build \
-       --build-base build-2
+%py_build
 
 %if %{with python3}
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python3} setup.py build \
-       --build-base build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python} setup.py \
-       build \
-               --build-base build-2 \
-       install \
-               --optimize=2 \
-               --skip-build \
-               --root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 
 %if %{with python3}
-%{__python3} setup.py \
-       build \
-               --build-base build-3 \
-       install \
-               --optimize=2 \
-               --skip-build \
-               --root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean