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

baggins baggins at pld-linux.org
Sat May 7 20:52:40 CEST 2016


commit 32fe4c8f80b3ac4825f3dbde0964c515f8c7bf8b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 20:52:18 2016 +0200

    - use rpm python macros
    - rel 6

 python-pygpgme.spec | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
---
diff --git a/python-pygpgme.spec b/python-pygpgme.spec
index fede430..dc08b4d 100644
--- a/python-pygpgme.spec
+++ b/python-pygpgme.spec
@@ -7,7 +7,7 @@ Summary:	A Python 2 wrapper for the GPGME library
 Summary(pl.UTF-8):	Interfejs Pythona 2 do biblioteki GPGME
 Name:		python-pygpgme
 Version:	0.3
-Release:	5
+Release:	6
 License:	LGPL v2.1+
 Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/p/pygpgme/pygpgme-%{version}.tar.gz
@@ -62,36 +62,24 @@ 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
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-	build \
-		--build-base build-2 \
-	install \
-		--optimize=2 \
-		--root=$RPM_BUILD_ROOT
+%py_install
 
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-	build \
-		--build-base build-3 \
-	install \
-		--optimize=2 \
-		--root=$RPM_BUILD_ROOT
+%py3_install
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygpgme.git/commitdiff/32fe4c8f80b3ac4825f3dbde0964c515f8c7bf8b



More information about the pld-cvs-commit mailing list