[packages/python-slip] - use rpm python macros - rel 6
baggins
baggins at pld-linux.org
Sat May 7 20:13:49 CEST 2016
commit 5d94d3575e2c6938dd260a5e9123795af03889c7
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat May 7 20:13:35 2016 +0200
- use rpm python macros
- rel 6
python-slip.spec | 24 +++++-------------------
1 file changed, 5 insertions(+), 19 deletions(-)
---
diff --git a/python-slip.spec b/python-slip.spec
index 4202699..ef15ae4 100644
--- a/python-slip.spec
+++ b/python-slip.spec
@@ -7,7 +7,7 @@ Summary: Miscellaneous convenience, extension and workaround code for Python 2
Summary(pl.UTF-8): Kod różnych udogodnień, rozszerzeń i obejść dla Pythona 2
Name: python-slip
Version: 0.6.0
-Release: 5
+Release: 6
License: GPL v2+
Group: Development/Languages/Python
Source0: https://fedorahosted.org/released/python-slip/%{name}-%{version}.tar.bz2
@@ -155,38 +155,24 @@ PolicyKit.
%{__make} $(pwd)/setup.py
%if %{with python2}
-%py_build \
- --build-base build-2
+%py_build
%endif
%if %{with python3}
-%py3_build \
- --build-base build-3
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py \
- build \
- --build-base build-2 \
- install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT \
- --skip-build
+%py_install
%py_postclean
%endif
%if %{with python3}
-%{__python3} setup.py \
- build \
- --build-base build-3 \
- install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT \
- --skip-build
+%py3_install
%endif
install -d $RPM_BUILD_ROOT%{_examplesdir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-slip.git/commitdiff/5d94d3575e2c6938dd260a5e9123795af03889c7
More information about the pld-cvs-commit
mailing list