[packages/libnl] - use rpm python macros - rel 4

baggins baggins at pld-linux.org
Thu May 5 18:08:36 CEST 2016


commit 0b1f7b495148e0ee939cd15ef3b593fb130312ab
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu May 5 18:08:24 2016 +0200

    - use rpm python macros
    - rel 4

 libnl.spec | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/libnl.spec b/libnl.spec
index 6b4c1cc..4d40ee1 100644
--- a/libnl.spec
+++ b/libnl.spec
@@ -7,7 +7,7 @@ Summary:	Netlink sockets library
 Summary(pl.UTF-8):	Biblioteka do obsługi gniazd netlink
 Name:		libnl
 Version:	3.2.25
-Release:	3
+Release:	4
 Epoch:		1
 License:	LGPL v2.1
 Group:		Libraries
@@ -130,9 +130,9 @@ mv -f libnl-doc-%{version} doc
 %endif
 
 cd python
-CFLAGS="%{rpmcflags}" \
-LDFLAGS="%{rpmldflags} -L$(pwd)/../lib/.libs" \
-%{__python} setup.py build
+CFLAGS="%{rpmcflags}"
+LDFLAGS="%{rpmldflags} -L$(pwd)/../lib/.libs"
+%py_build
 
 %{?with_tests:%{__make} check}
 
@@ -143,9 +143,7 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT
 
 cd python
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 %py_postclean
 
 # dynamic modules
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnl.git/commitdiff/0b1f7b495148e0ee939cd15ef3b593fb130312ab



More information about the pld-cvs-commit mailing list