[packages/libxml2] - fix building python bindings - rel 4

baggins baggins at pld-linux.org
Sat Jan 16 10:52:59 CET 2016


commit c95aad2391ec3128b726b423a1b37916a5b29a74
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 16 10:52:43 2016 +0100

    - fix building python bindings
    - rel 4

 libxml2.spec | 24 ++++++------------------
 1 file changed, 6 insertions(+), 18 deletions(-)
---
diff --git a/libxml2.spec b/libxml2.spec
index 33d57de..29c94ae 100644
--- a/libxml2.spec
+++ b/libxml2.spec
@@ -16,7 +16,7 @@ Summary(pl.UTF-8):	Biblioteka libXML wersja 2
 Summary(pt_BR.UTF-8):	Biblioteca libXML versão 2
 Name:		libxml2
 Version:	2.9.3
-Release:	3
+Release:	4
 Epoch:		1
 License:	MIT
 Group:		Libraries
@@ -40,7 +40,7 @@ BuildRequires:	python3-devel >= 1:3.2
 BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	rpm-pythonprov
 %endif
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	xz-devel
 %{?with_zlib:BuildRequires:	zlib-devel >= 1.2.3.3}
 # history support in xmllint is disabled by default
@@ -189,18 +189,14 @@ dostęp do biblioteki libxml2.
 
 %if %{with python2}
 cd python
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build --build-base build-2
+%py_build
 cd ..
 %endif
 
 
 %if %{with python3}
 cd python
-CC="%{__cc}" \
-CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build --build-base build-3
+%py3_build
 cd ..
 %endif
 
@@ -219,11 +215,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
 cd python
-%{__python} setup.py \
-	build --build-base build-2 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 cd ..
@@ -231,11 +223,7 @@ cd ..
 
 %if %{with python3}
 cd python
-%{__python3} setup.py \
-	build --build-base build-3 \
-	install --skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 cd ..
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libxml2.git/commitdiff/c95aad2391ec3128b726b423a1b37916a5b29a74



More information about the pld-cvs-commit mailing list