[packages/python-pycap] - usr rpm python macros - rel 7

baggins baggins at pld-linux.org
Sat May 7 20:58:54 CEST 2016


commit e77a1597599a9da8c0b06458e23dc7fb5813d320
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 20:58:35 2016 +0200

    - usr rpm python macros
    - rel 7

 python-pycap.spec | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/python-pycap.spec b/python-pycap.spec
index 5916cba..f450f9c 100644
--- a/python-pycap.spec
+++ b/python-pycap.spec
@@ -2,7 +2,7 @@ Summary:	Python Packet Capture and Injection Library
 Summary(pl.UTF-8):	Biblioteka Pythona do przechwytywania i wstrzykiwania pakietów
 Name:		python-pycap
 Version:	0.1.6
-Release:	6
+Release:	7
 License:	BSD
 Group:		Libraries/Python
 Source0:	http://dl.sourceforge.net/pycap/pycap-%{version}.tar.gz
@@ -30,11 +30,13 @@ takie jak Ethernet, PPP, IP, ARP, TCP, UDP i ICMP.
 %setup -q -n pycap-%{version}
 
 %build
-env CFLAGS="%{rpmcflags}" %py_build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python -- setup.py install --root=$RPM_BUILD_ROOT --optimize=2
+
+%py_install
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycap.git/commitdiff/e77a1597599a9da8c0b06458e23dc7fb5813d320



More information about the pld-cvs-commit mailing list