]>
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 |
8665830c JB |
5 | Version: 2.2 |
6 | Release: 1 | |
69396a30 | 7 | License: BSD |
925dc3fc | 8 | Group: Libraries/Python |
8665830c JB |
9 | Source0: https://pypi.python.org/packages/source/p/python-dateutil/python-%{module}-%{version}.tar.gz |
10 | # Source0-md5: c1f654d0ff7e33999380a8ba9783fd5c | |
07c95c93 | 11 | Patch0: system-zoneinfo.patch |
8665830c JB |
12 | URL: http://labix.org/python-dateutil |
13 | BuildRequires: python-modules >= 1:2.6 | |
14 | BuildRequires: python-six | |
925dc3fc | 15 | BuildRequires: rpm-pythonprov |
fbb08368 | 16 | BuildRequires: rpmbuild(macros) >= 0.219 |
8665830c JB |
17 | Requires: python-six |
18 | Requires: tzdata >= 2013h | |
fbb08368 | 19 | BuildArch: noarch |
925dc3fc MK |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
88fadcb5 JB |
23 | The dateutil module provides powerful extensions to the standard |
24 | datetime module, available in Python 2.3+. Allows: | |
25 | - computing of relative deltas (next month, next year, next monday, | |
26 | last week of month, etc), | |
27 | - computing of dates based on very flexible recurrence rules, using a | |
28 | superset of the [WWW] iCalendar specification, | |
925dc3fc MK |
29 | - parsing of RFC strings, |
30 | - peneric parsing of dates in almost any string format. | |
31 | ||
fc872035 JR |
32 | %description -l pl.UTF-8 |
33 | Moduł dateutil jest potężnym rozszerzeniem standardowego modułu | |
34 | datetime, dostępnego w Pythonie 2.3+. Pozwala na: | |
35 | - obliczanie relatywnych różnic (następny miesiąc, rok, poniedziałek, | |
36 | ostatni tydzień miesiąca itp.), | |
88fadcb5 | 37 | - obliczanie dat w oparciu o bardzo elastyczne rekurencyjne zasady, z |
fc872035 JR |
38 | użyciem nadzbioru specyfikacji [WWW] iCalendar, |
39 | - analizę łańcuchow znakowych RFC, | |
40 | - analizę dat w prawie każdym formacie. | |
925dc3fc MK |
41 | |
42 | %prep | |
43 | %setup -q | |
07c95c93 | 44 | %patch0 -p1 |
925dc3fc MK |
45 | |
46 | %build | |
9ede2745 | 47 | %{__python} setup.py build |
925dc3fc MK |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
9ede2745 | 51 | %{__python} setup.py install \ |
fbb08368 | 52 | --skip-build \ |
b614a922 | 53 | --optimize=2 \ |
d7e634ed | 54 | --root=$RPM_BUILD_ROOT \ |
925dc3fc | 55 | |
fbb08368 ER |
56 | %py_postclean |
57 | ||
4c88eeb4 | 58 | # NOTE: Not sure but seems zoneinfo is needed under windows only |
fbb08368 | 59 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo |
4c88eeb4 | 60 | |
925dc3fc MK |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
2398f4c2 | 66 | %doc LICENSE NEWS README |
9ede2745 | 67 | %{py_sitescriptdir}/dateutil |
68 | %{py_sitescriptdir}/python_dateutil-*.egg-info |