1 %define module dateutil
2 Summary: Extensions to the standard datetime module
3 Summary(pl): Rozszerzenia modu³u datetime jêzyka Python
8 Group: Libraries/Python
9 Source0: http://labix.org/download/python-dateutil/python-%{module}-%{version}.tar.bz2
10 # Source0-md5: f259496f4059dda806837503ee4235f3
11 URL: http://labix.org/python-dateutil
12 BuildRequires: rpm-pythonprov
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 The dateutil module provides powerful extensions to the standard
17 datetime module, available in Python 2.3+. Allows:
18 - computing of relative deltas (next month, next year, next monday,
19 last week of month, etc),
20 - computing of dates based on very flexible recurrence rules, using a
21 superset of the [WWW] iCalendar specification,
22 - parsing of RFC strings,
23 - peneric parsing of dates in almost any string format.
26 Modu³ dateutil jest potê¿nym rozszerzeniem standardowego modu³u
27 datetime, dostêpnego w Pythonie 2.3+. Pozwala na:
28 - obliczanie relatywnych ró¿nic (nastêpny miesi±c, rok, poniedzia³ek,
29 ostatni tydzieñ miesi±ca itp.),
30 - obliczanie dat w oparciu o bardzo elastyczne rekurencyjne zasady, z
31 u¿yciem nadzbioru specyfikacji [WWW] iCalendar,
32 - analizê ³añcuchow znakowych RFC,
33 - analizê dat w prawie ka¿dym formacie.
42 rm -rf $RPM_BUILD_ROOT
44 python setup.py install \
45 --root=$RPM_BUILD_ROOT \
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 #%%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
54 %dir %{py_sitescriptdir}/%{module}
55 %{py_sitescriptdir}/%{module}/*.py[co]
56 #NOTE: Not sure but seems zoneinfno is needed under windows only
57 #%%dir %{py_sitescriptdir}/%{module}/zoneinfo
58 #%%{py_sitescriptdir}/%{module}/zoneinfo/*.py[co]