[packages/python-ReportLab] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:11:53 CET 2015
commit c141c05bf35b527ff5546ad025c89fdc5670a389
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-ReportLab.spec | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/python-ReportLab.spec b/python-ReportLab.spec
index b6a0a09..cbca882 100644
--- a/python-ReportLab.spec
+++ b/python-ReportLab.spec
@@ -78,9 +78,7 @@ Przykłady do biblioteki ReportLab.
%{__unzip} -qq -d src/reportlab/fonts %{SOURCE1}
%build
-CC="%{__cc}" \
-CFLAGS="%{rpmcflags}" \
-%{__python} setup.py build
+%py_build
%if %{with doc}
cd docs
PYTHONPATH=$(pwd)/../src %{__python} genAll.py
@@ -89,9 +87,7 @@ cd ..
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
install -p tools/pythonpoint/pythonpoint.py $RPM_BUILD_ROOT%{_bindir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ReportLab.git/commitdiff/c141c05bf35b527ff5546ad025c89fdc5670a389
More information about the pld-cvs-commit
mailing list