[packages/python-pycurl] automatic change: use py_build/py_install macros
jajcus
jajcus at pld-linux.org
Sat Nov 28 18:37:10 CET 2015
commit 7f4748c00862dca1332ee3d4ff8fbe3e39fe74e7
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Sat Nov 28 18:06:43 2015 +0100
automatic change: use py_build/py_install macros
python-pycurl.spec | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/python-pycurl.spec b/python-pycurl.spec
index 351ee65..bd99382 100644
--- a/python-pycurl.spec
+++ b/python-pycurl.spec
@@ -113,7 +113,7 @@ Moduł zawierający przykładowe programy do modułu Pythona pycurl.
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}" \
-%{__python} setup.py build --build-base build-2 \
+%py_build \
--debug
%endif
@@ -121,7 +121,7 @@ LDFLAGS="%{rpmldflags}" \
CC="%{__cc}" \
CFLAGS="%{rpmcflags}" \
LDFLAGS="%{rpmldflags}" \
-%{__python3} setup.py build --build-base build-3 \
+%py3_build \
--debug
%endif
@@ -130,21 +130,13 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
%if %{with python2}
-%{__python} setup.py \
- build --build-base build-2 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build --build-base build-3 \
- install --skip-build \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pycurl.git/commitdiff/7f4748c00862dca1332ee3d4ff8fbe3e39fe74e7
More information about the pld-cvs-commit
mailing list