]>
Commit | Line | Data |
---|---|---|
4c88eeb4 | 1 | %define module dateutil |
925dc3fc | 2 | Summary: Extensions to the standard datetime module |
4edbeb34 | 3 | Summary(pl.UTF-8): Rozszerzenia modułu datetime języka Python |
925dc3fc | 4 | Name: python-dateutil |
acdac6dd | 5 | Version: 1.3 |
aa7cf47a | 6 | Release: 2 |
925dc3fc MK |
7 | License: PSF |
8 | Group: Libraries/Python | |
9 | Source0: http://labix.org/download/python-dateutil/python-%{module}-%{version}.tar.bz2 | |
acdac6dd | 10 | # Source0-md5: 23ee74f85bf96ed3da3fb8bf88b4db04 |
925dc3fc MK |
11 | URL: http://labix.org/python-dateutil |
12 | BuildRequires: rpm-pythonprov | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
88fadcb5 JB |
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, | |
925dc3fc MK |
22 | - parsing of RFC strings, |
23 | - peneric parsing of dates in almost any string format. | |
24 | ||
fc872035 JR |
25 | %description -l pl.UTF-8 |
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.), | |
88fadcb5 | 30 | - obliczanie dat w oparciu o bardzo elastyczne rekurencyjne zasady, z |
fc872035 JR |
31 | użyciem nadzbioru specyfikacji [WWW] iCalendar, |
32 | - analizę łańcuchow znakowych RFC, | |
33 | - analizę dat w prawie każdym formacie. | |
925dc3fc MK |
34 | |
35 | %prep | |
36 | %setup -q | |
37 | ||
38 | %build | |
4c88eeb4 | 39 | %{__python} setup.py build |
925dc3fc MK |
40 | |
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
4c88eeb4 | 44 | %{__python} setup.py install \ |
d7e634ed | 45 | --root=$RPM_BUILD_ROOT \ |
88fadcb5 | 46 | --optimize=2 |
925dc3fc | 47 | |
f1cf5c8a JK |
48 | %py_postclean %{py_sitescriptdir}/dateutil |
49 | ||
4c88eeb4 ER |
50 | # NOTE: Not sure but seems zoneinfo is needed under windows only |
51 | rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo | |
52 | ||
925dc3fc MK |
53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
2398f4c2 JB |
58 | %doc LICENSE NEWS README |
59 | %dir %{py_sitescriptdir}/dateutil | |
60 | %{py_sitescriptdir}/dateutil/*.py[co] |