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: 4
+Version: 2.2
+Release: 1
License: BSD
Group: Libraries/Python
-Source0: http://niemeyer.net/download/python-dateutil/python-%{module}-%{version}.tar.gz
-# Source0-md5: 35f3732db3f2cc4afdc68a8533b60a52
+Source0: https://pypi.python.org/packages/source/p/python-dateutil/python-%{module}-%{version}.tar.gz
+# Source0-md5: c1f654d0ff7e33999380a8ba9783fd5c
Patch0: system-zoneinfo.patch
-URL: http://niemeyer.net/python-dateutil
+URL: http://labix.org/python-dateutil
+BuildRequires: python-modules >= 1:2.6
+BuildRequires: python-six
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 0.219
-Requires: tzdata
+Requires: python-six
+Requires: tzdata >= 2013h
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
return tzinfo
def rebuild(filename, tag=None, format="gz"):
-diff -up python-dateutil-1.5/setup.py\~ python-dateutil-1.5/setup.py
---- python-dateutil-1.5/setup.py~ 2010-01-11 10:43:22.000000000 +0100
-+++ python-dateutil-1.5/setup.py 2011-08-17 15:38:13.206304651 +0200
-@@ -15,6 +15,16 @@ TOPDIR = os.path.dirname(__file__) or ".
+--- python-dateutil-2.2/setup.py.orig 2013-11-01 09:32:03.000000000 +0100
++++ python-dateutil-2.2/setup.py 2014-10-19 16:56:34.244854176 +0200
+@@ -16,6 +16,16 @@
VERSION = re.search('__version__ = "([^"]+)"',
- open(TOPDIR + "/dateutil/__init__.py").read()).group(1)
+ codecs.open(TOPDIR + "/dateutil/__init__.py", encoding='utf-8').read()).group(1)
+# XXX We would like to bind this to something like
+# --system-zoneinfo=/path/to/zoneinfo. Any way of doing this short of
setup(name="python-dateutil",
version = VERSION,
-@@ -29,7 +39,7 @@ The dateutil module provides powerful ex
- datetime module, available in Python 2.3+.
+@@ -30,7 +40,6 @@
+ datetime module available in the Python standard library.
""",
packages = ["dateutil", "dateutil.zoneinfo"],
-- package_data={"": ["*.tar.gz"]},
- include_package_data=True,
- zip_safe=False,
+- package_data = {"": ["*.tar.gz"]},
+ include_package_data = True,
+ zip_safe = False,
+ requires = ["six"],
+@@ -47,5 +56,6 @@
+ 'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3.3',
+ 'Topic :: Software Development :: Libraries',
+- ]
++ ],
+ **extra_options
)