[packages/python-cffi] fix install
jajcus
jajcus at pld-linux.org
Mon Nov 30 20:01:14 CET 2015
commit 8084c254f03ea6f3c64ae474a415da05c57a7fb7
Author: Jacek Konieczny <jajcus at jajcus.net>
Date: Mon Nov 30 20:01:00 2015 +0100
fix install
Release: 4
python-cffi.spec | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/python-cffi.spec b/python-cffi.spec
index 72d976c..f8be25d 100644
--- a/python-cffi.spec
+++ b/python-cffi.spec
@@ -8,7 +8,7 @@ Summary: Foreign Function Interface for Python 2 calling C code
Summary(pl.UTF-8): Interfejs funkcji obcych (FFI) dla Pythona 2 wywołującego kod w C
Name: python-cffi
Version: 1.2.1
-Release: 3
+Release: 4
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.python.org/pypi/cffi
@@ -74,12 +74,10 @@ Ten pakiet zawiera moduł Pythona 3.
%build
%if %{with python2}
-%py_build \
- --build-base build-2
+%py_build
%endif
%if %{with python3}
-%py3_build \
- --build-base build-3
+%py3_build
%endif
%if %{with doc}
@@ -90,23 +88,13 @@ Ten pakiet zawiera moduł Pythona 3.
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build \
- --build-base build-2 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build \
- --build-base build-3 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-cffi.git/commitdiff/8084c254f03ea6f3c64ae474a415da05c57a7fb7
More information about the pld-cvs-commit
mailing list