]>
Commit | Line | Data |
---|---|---|
925dc3fc MK |
1 | %define module dateutil |
2 | Summary: Extensions to the standard datetime module | |
fc872035 | 3 | Summary(pl.UTF-8): Rozszerzenia modułu datetime języka Python |
925dc3fc MK |
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 | |
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 | |
39 | python setup.py build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | python setup.py install \ | |
88fadcb5 JB |
45 | --root=$RPM_BUILD_ROOT \ |
46 | --optimize=2 | |
925dc3fc MK |
47 | |
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
2398f4c2 JB |
53 | %doc LICENSE NEWS README |
54 | %dir %{py_sitescriptdir}/dateutil | |
55 | %{py_sitescriptdir}/dateutil/*.py[co] | |
56 | #NOTE: Not sure but seems zoneinfo is needed under windows only | |
57 | #%%dir %{py_sitescriptdir}/dateutil/zoneinfo | |
58 | #%%{py_sitescriptdir}/dateutil/zoneinfo/*.py[co] |