[packages/python-xlrd] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:48:58 CET 2015
commit 59f958a36085903d86c8a3f18dee5805069078e5
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:44 2015 +0100
automatic change: use py_build/py_install macros
python-xlrd.spec | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python-xlrd.spec b/python-xlrd.spec
index d44c986..76cfc57 100644
--- a/python-xlrd.spec
+++ b/python-xlrd.spec
@@ -26,14 +26,12 @@ Pythonowy interfejs do odczytywania danych z arkuszy Excela
%setup -q -n %{module}-%{version}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%py_install
%{__mv} $RPM_BUILD_ROOT%{_bindir}/runxlrd{.py,}
%{__sed} -i -e 's|/usr/bin/env python|%{__python}|' $RPM_BUILD_ROOT%{_bindir}/runxlrd
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-xlrd.git/commitdiff/59f958a36085903d86c8a3f18dee5805069078e5
More information about the pld-cvs-commit
mailing list