[packages/python-pycoin] - user rpm python macros - rel 7

baggins baggins at pld-linux.org
Sat May 7 20:57:06 CEST 2016


commit 5db57e87b50ce8b963802dbb2e02d0c05ee77a6d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 20:56:45 2016 +0200

    - user rpm python macros
    - rel 7

 python-pycoin.spec | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/python-pycoin.spec b/python-pycoin.spec
index bb758a8..8856be1 100644
--- a/python-pycoin.spec
+++ b/python-pycoin.spec
@@ -3,11 +3,11 @@
 %bcond_without	python2		# Python 2.x module
 %bcond_without	python3		# Python 3.x module
 
-%define 	module	pycoin
+%define		module	pycoin
 Summary:	Bitcoin utility library
 Name:		python-pycoin
 Version:	0.24
-Release:	6
+Release:	7
 License:	MIT
 Group:		Development/Languages/Python
 Source0:	https://github.com/richardkiss/pycoin/archive/%{version}.tar.gz
@@ -56,30 +56,22 @@ Tools that use %{module} library.
 
 %build
 %if %{with python2}
-%py_build --build-base py2
+%py_build
 %endif
 %if %{with python3}
-%py3_build --build-base py3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python-%{module}-%{version}
-%py_build \
-	--build-base py2 \
-	install \
-	--optimize 2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
 %endif
 
 %if %{with python3}
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%py3_build \
-	--build-base py3 \
-	install \
-	--optimize 2 \
-	--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pycoin.git/commitdiff/5db57e87b50ce8b963802dbb2e02d0c05ee77a6d



More information about the pld-cvs-commit mailing list