]> git.pld-linux.org Git - packages/python-dateutil.git/blame - python-dateutil.spec
- updated to 2.2, now works again with python 2.x (2.6+, with six)
[packages/python-dateutil.git] / python-dateutil.spec
CommitLineData
4c88eeb4 1%define module dateutil
925dc3fc 2Summary: Extensions to the standard datetime module
4edbeb34 3Summary(pl.UTF-8): Rozszerzenia modułu datetime języka Python
925dc3fc 4Name: python-dateutil
8665830c
JB
5Version: 2.2
6Release: 1
69396a30 7License: BSD
925dc3fc 8Group: Libraries/Python
8665830c
JB
9Source0: https://pypi.python.org/packages/source/p/python-dateutil/python-%{module}-%{version}.tar.gz
10# Source0-md5: c1f654d0ff7e33999380a8ba9783fd5c
07c95c93 11Patch0: system-zoneinfo.patch
8665830c
JB
12URL: http://labix.org/python-dateutil
13BuildRequires: python-modules >= 1:2.6
14BuildRequires: python-six
925dc3fc 15BuildRequires: rpm-pythonprov
fbb08368 16BuildRequires: rpmbuild(macros) >= 0.219
8665830c
JB
17Requires: python-six
18Requires: tzdata >= 2013h
fbb08368 19BuildArch: noarch
925dc3fc
MK
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
88fadcb5
JB
23The dateutil module provides powerful extensions to the standard
24datetime 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
33Moduł dateutil jest potężnym rozszerzeniem standardowego modułu
34datetime, 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
50rm -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
62rm -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
This page took 0.195656 seconds and 4 git commands to generate.