[packages/python-ago] - use rpm python macros - rel 7

baggins baggins at pld-linux.org
Sat May 7 21:42:18 CEST 2016


commit 64f46c8fe5884be8d17d33abde56480d176ac6b6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:41:59 2016 +0200

    - use rpm python macros
    - rel 7

 python-ago.spec | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/python-ago.spec b/python-ago.spec
index 4eab495..02be618 100644
--- a/python-ago.spec
+++ b/python-ago.spec
@@ -8,7 +8,7 @@
 Summary:	Makes customizable human readable timedeltas
 Name:		python-ago
 Version:	0.0.6
-Release:	6
+Release:	7
 License:	public domain
 Group:		Development/Languages/Python
 Source0:	https://pypi.python.org/packages/source/a/ago/ago-%{version}.tar.gz
@@ -47,30 +47,22 @@ Makes customizable human readable timedeltas.
 
 %build
 %if %{with python2}
-%py_build --build-base py2
+%py_build
 %endif
 %if %{with python3}
-%{__python3} %py_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}
-%{__python3} %py_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-ago.git/commitdiff/64f46c8fe5884be8d17d33abde56480d176ac6b6



More information about the pld-cvs-commit mailing list