[packages/python-coinkit] - use rpm python macros - rel 6

baggins baggins at pld-linux.org
Sat May 7 21:52:26 CEST 2016


commit 76bfd4da04f09c1c3e3a23a6075f22eb21f70dc8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:51:50 2016 +0200

    - use rpm python macros
    - rel 6

 python-coinkit.spec | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
---
diff --git a/python-coinkit.spec b/python-coinkit.spec
index 74bf863..6ecdc58 100644
--- a/python-coinkit.spec
+++ b/python-coinkit.spec
@@ -3,11 +3,11 @@
 %bcond_without	python2		# Python 2.x module
 %bcond_without	python3		# Python 3.x module
 
-%define 	module	coinkit
+%define		module	coinkit
 Summary:	Tools for Bitcoin and other cryptocurrencies
 Name:		python-%{module}
 Version:	0.3
-Release:	5
+Release:	6
 License:	MIT
 Group:		Libraries/Python
 Source0:	https://github.com/halfmoonlabs/coinkit/archive/v%{version}.tar.gz
@@ -46,30 +46,22 @@ Tools for Bitcoin and other cryptocurrencies.
 
 %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-coinkit.git/commitdiff/76bfd4da04f09c1c3e3a23a6075f22eb21f70dc8



More information about the pld-cvs-commit mailing list