[packages/python-daemon] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:19:40 CET 2015
commit ce275acd3ee25d93eb5493c41d3d9712a81b18a1
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:42 2015 +0100
automatic change: use py_build/py_install macros
python-daemon.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-daemon.spec b/python-daemon.spec
index 1dcb22f..cf1a9a2 100644
--- a/python-daemon.spec
+++ b/python-daemon.spec
@@ -36,7 +36,7 @@ This library implements the well-behaved daemon specification of PEP
%{__sed} -i -e '/^#!\//, 1d' daemon/version/version_info.py
%build
-%{__python} setup.py build
+%py_build
# Test suite requires minimock and lockfile
%if %{with tests}
@@ -45,10 +45,7 @@ PYTHONPATH=$(pwd) nosetests-%{py_ver}
%install
rm -rf $RPM_BUILD_ROOT
-%{__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-daemon.git/commitdiff/ce275acd3ee25d93eb5493c41d3d9712a81b18a1
More information about the pld-cvs-commit
mailing list