[packages/python-ldap] automatic change: use py_build/py_install macros

jajcus jajcus at pld-linux.org
Sat Nov 28 18:28:51 CET 2015


commit 3f480fedebcb2e61320873dd3f677a130f6a108b
Author: Jacek Konieczny <jajcus at jajcus.net>
Date:   Sat Nov 28 18:06:43 2015 +0100

    automatic change: use py_build/py_install macros

 python-ldap.spec | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/python-ldap.spec b/python-ldap.spec
index 5f19d46..f6526c3 100644
--- a/python-ldap.spec
+++ b/python-ldap.spec
@@ -49,9 +49,7 @@ przetwarzanie LDIF, LDAPURL, podschematy LDAPv3 itp.).
 %patch1 -p1
 
 %build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
 
 %if %{with tests}
 %{__python} setup.py test
@@ -64,10 +62,7 @@ PYTHONPATH=$(echo build/lib.linux-*/) \
 %install
 rm -rf $RPM_BUILD_ROOT
 #PYTHONPATH=$RPM_BUILD_ROOT%{py_sitedir}
-%{__python} setup.py install \
-	--skip-build \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ldap.git/commitdiff/3f480fedebcb2e61320873dd3f677a130f6a108b



More information about the pld-cvs-commit mailing list