[packages/python-gd] - use rpm python macros - updated files - rel 9

baggins baggins at pld-linux.org
Sat May 7 21:16:54 CEST 2016


commit c2bfaad83384f0fa322506012b17a6c1731e9536
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 7 21:16:36 2016 +0200

    - use rpm python macros
    - updated files
    - rel 9

 python-gd.spec | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/python-gd.spec b/python-gd.spec
index ab9f19b..b32c30e 100644
--- a/python-gd.spec
+++ b/python-gd.spec
@@ -3,7 +3,7 @@ Summary:	Python interface to GD library
 Summary(pl.UTF-8):	Interfejs do biblioteki GD dla Pythona
 Name:		python-%{module}
 Version:	0.56
-Release:	8
+Release:	9
 Epoch:		1
 License:	BSD-like
 Group:		Development/Languages/Python
@@ -52,16 +52,16 @@ oryginalnej biblioteki GD.
 %patch0 -p1
 %endif
 
+%{__mv} Setup.py setup.py
+
 %build
-CFLAGS="%{rpmcflags}" \
-python Setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python Setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
+%py_install
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -71,3 +71,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc README gd-ref.html
 %{py_sitedir}/gd.py[co]
 %attr(755,root,root) %{py_sitedir}/_gd.so
+%{py_sitedir}/gdmodule-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gd.git/commitdiff/c2bfaad83384f0fa322506012b17a6c1731e9536



More information about the pld-cvs-commit mailing list