[packages/python-deform] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:20:09 CET 2015
commit d7236155e31233f307d2993ef764651ab8afd393
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-deform.spec | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/python-deform.spec b/python-deform.spec
index 5f802f8..0fd134f 100644
--- a/python-deform.spec
+++ b/python-deform.spec
@@ -48,16 +48,13 @@ system of choice and a suitable renderer is supplied to deform.
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%{?with_tests:%{__python} setup.py test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --skip-build \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/locale/%{module}.pot
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-deform.git/commitdiff/d7236155e31233f307d2993ef764651ab8afd393
More information about the pld-cvs-commit
mailing list