[packages/python-dateutil] build noarch; rebuild for fixed pythoneggs

glen glen at pld-linux.org
Thu Jan 24 20:13:57 CET 2013


commit fbb08368a4a4e9d8a7c148dbaf415c45f625b4a2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 24 21:13:40 2013 +0200

    build noarch; rebuild for fixed pythoneggs

 python-dateutil.spec | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/python-dateutil.spec b/python-dateutil.spec
index 31126bd..37de869 100644
--- a/python-dateutil.spec
+++ b/python-dateutil.spec
@@ -3,13 +3,15 @@ Summary:	Extensions to the standard datetime module
 Summary(pl.UTF-8):	Rozszerzenia modułu datetime języka Python
 Name:		python-dateutil
 Version:	1.5
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries/Python
 Source0:	http://niemeyer.net/download/python-dateutil/python-%{module}-%{version}.tar.gz
 # Source0-md5:	35f3732db3f2cc4afdc68a8533b60a52
 URL:		http://niemeyer.net/python-dateutil
 BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 0.219
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,13 +42,15 @@ datetime, dostępnego w Pythonie 2.3+. Pozwala na:
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__python} setup.py install \
+	--skip-build \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT \
 
+%py_postclean
+
 # NOTE: Not sure but seems zoneinfo is needed under windows only
-rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-dateutil.git/commitdiff/fbb08368a4a4e9d8a7c148dbaf415c45f625b4a2



More information about the pld-cvs-commit mailing list