[python-dateutil] new upstream release fix UTF8 encoding correctly drop redundant definition of buildroot, python_site

Rahul Sundaram sundaram at fedoraproject.org
Tue Jul 12 23:20:34 UTC 2011


commit b2d0694f4c3d44d044ada4181612c211ab8ef58e
Author: Rahul Sundaram <sundaram at fedoraproject.org>
Date:   Wed Jul 13 04:36:43 2011 +0530

    new upstream release
    fix UTF8 encoding correctly
    drop redundant definition of buildroot, python_sitelib
    drop redundant clean stage and defattr
    use macro for Source

 python-dateutil.spec |   28 ++++++++++------------------
 1 files changed, 10 insertions(+), 18 deletions(-)
---
diff --git a/python-dateutil.spec b/python-dateutil.spec
index 1107e86..62b817a 100644
--- a/python-dateutil.spec
+++ b/python-dateutil.spec
@@ -1,17 +1,12 @@
-%if 0%{?fedora} < 13 && 0%{?rhel} < 6
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%endif
-
 Name:           python-dateutil
-Version:        1.4.1
-Release:        6%{?dist}
+Version:        1.5
+Release:        1%{?dist}
 Summary:        Powerful extensions to the standard datetime module
 
 Group:          Development/Languages
 License:        Python
 URL:            http://labix.org/python-dateutil
-Source0:        http://labix.org/download/python-dateutil/python-dateutil-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://labix.org/download/%{name}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
 BuildRequires:  python-devel,python-setuptools
@@ -23,29 +18,26 @@ module available in Python 2.3+.
 %prep
 %setup -q
 
-# Reencode this as utf8
-iconv -f ISO-8859-1 -t utf8 NEWS
+iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
+mv NEWS.new NEWS
 
 %build
 %{__python} setup.py build
 
-
 %install
-rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
 
- 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc example.py LICENSE NEWS README
 %{python_sitelib}/dateutil/
 %{python_sitelib}/*.egg-info
 
 %changelog
+* Wed Jul 13 2011 Rahul Sundaram <sundaram at fedoraproject.org> - 1.5-1
+- New upstream release
+- Fix UTF8 encoding correctly
+- Drop buildroot, clean, defattr and use macro for Source
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list