]>
Commit | Line | Data |
---|---|---|
925dc3fc MK |
1 | %define module dateutil |
2 | Summary: Extensions to the standard datetime module | |
3 | Summary(pl): Rozszerzenia modulu datetime jezyka Python | |
4 | Name: python-dateutil | |
5 | Version: 1.1 | |
6 | Release: 1 | |
7 | License: PSF | |
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) | |
14 | ||
15 | %description | |
16 | The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+. | |
17 | Allows | |
18 | - computing of relative deltas (next month, next year, next monday, last week of month, etc), | |
19 | - computing of dates based on very flexible recurrence rules, using a superset of the [WWW] iCalendar specification, | |
20 | - parsing of RFC strings, | |
21 | - peneric parsing of dates in almost any string format. | |
22 | ||
23 | %description -l pl | |
24 | Modul dateutil jest poteznym rozszerzeniem standardowego modulu datetime, dostepnego w Pythonie 2.3+. | |
25 | Pozwala na | |
26 | - obliczanie relatywnych roznic (nastepny miesiac, rok, Poniedzialek, ostatni tydzien itp.), | |
27 | - obliczanie dat bazujcych na bardzo elastycznych rekurencyjnych zasadach, uzywajac nadzbioru specyfikacji [WWW] iCalendar. | |
28 | - parsowanie lancuchow znakowych RFC, | |
29 | - parsowanie dat w prawie kazdym formacie. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | python setup.py build | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | python setup.py install \ | |
41 | --root=$RPM_BUILD_ROOT --optimize=2 | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | #%%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
49 | %dir %{py_sitescriptdir}/%{module} | |
50 | %{py_sitescriptdir}/%{module}/*.py[co] | |
51 | #NOTE: Not sure but seems zoneinfno is needed under windows only | |
52 | #%%dir %{py_sitescriptdir}/%{module}/zoneinfo | |
53 | #%%{py_sitescriptdir}/%{module}/zoneinfo/*.py[co] |