[packages/python-ZopePageTemplates] - use rpm python macros - rel 5

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


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

    - use rpm python macros
    - rel 5

 python-ZopePageTemplates.spec | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/python-ZopePageTemplates.spec b/python-ZopePageTemplates.spec
index a0fdc03..62cf8d9 100644
--- a/python-ZopePageTemplates.spec
+++ b/python-ZopePageTemplates.spec
@@ -1,11 +1,9 @@
-
 %define	module	ZopePageTemplates
-
 Summary:	Zope Page Templates which works outside Zope
 Summary(pl.UTF-8):	Zope Page Templates działające poza środowiskiem Zope
 Name:		python-%{module}
 Version:	1.4.0
-Release:	4
+Release:	5
 License:	distributable
 Group:		Development/Languages/Python
 Source0:	http://dl.sourceforge.net/zpt/%{module}-%{version}.tgz
@@ -35,16 +33,13 @@ stron WWW w swojej własnej aplikacji.
 %setup -q -n %{module}
 
 %build
-env CFLAGS="%{rpmcflags}" %py_build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python -- setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
-
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py | xargs rm -f
+%py_install
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-ZopePageTemplates.git/commitdiff/ba94337ee4b25aa6bcddb55d6f201d2adf8a9772



More information about the pld-cvs-commit mailing list