packages: python-dateutil/python-dateutil.spec - compile with python 3 prop...

wrobell wrobell at pld-linux.org
Sun May 22 03:53:06 CEST 2011


Author: wrobell                      Date: Sun May 22 01:53:06 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- compile with python 3 properly (package for python 2.x needs to be done)

---- Files affected:
packages/python-dateutil:
   python-dateutil.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: packages/python-dateutil/python-dateutil.spec
diff -u packages/python-dateutil/python-dateutil.spec:1.14 packages/python-dateutil/python-dateutil.spec:1.15
--- packages/python-dateutil/python-dateutil.spec:1.14	Sun May 22 03:50:44 2011
+++ packages/python-dateutil/python-dateutil.spec	Sun May 22 03:53:01 2011
@@ -42,12 +42,10 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python} setup.py install \
+%{__python3} setup.py install \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT \
 
-%py_postclean %{py_sitescriptdir}/dateutil
-
 # NOTE: Not sure but seems zoneinfo is needed under windows only
 rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo
 
@@ -57,11 +55,8 @@
 %files
 %defattr(644,root,root,755)
 %doc LICENSE NEWS README
-%dir %{py_sitescriptdir}/dateutil
-%{py_sitescriptdir}/dateutil/*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/python_dateutil-*.egg-info
-%endif
+%{py3_sitescriptdir}/dateutil
+%{py3_sitescriptdir}/python_dateutil-*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -69,6 +64,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2011/05/22 01:53:01  wrobell
+- compile with python 3 properly (package for python 2.x needs to be done)
+
 Revision 1.14  2011/05/22 01:50:44  wrobell
 - ver. 2.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-dateutil/python-dateutil.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list