]>
Commit | Line | Data |
---|---|---|
7055521e AM |
1 | %define module isodate |
2 | Summary: An ISO 8601 date/time/duration parser and formater | |
3 | Name: python-%{module} | |
4 | Version: 0.4.4 | |
5 | Release: 1 | |
6 | License: GPL v3 | |
7 | Group: Development/Languages | |
8 | URL: http://pypi.python.org/pypi/isodate/ | |
9 | Source0: http://pypi.python.org/packages/source/i/isodate/isodate-%{version}.tar.gz | |
10 | # Source0-md5: c331586a738ca77fb94190b35e2a5a11 | |
11 | BuildRequires: python-modules | |
12 | BuildRequires: python-setuptools | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: rpmbuild(macros) >= 1.219 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | ISO 8601 date/time parser | |
20 | ||
21 | This module implements ISO 8601 date, time and duration parsing. The | |
22 | implementation follows ISO8601:2004 standard, and implements only | |
23 | date/time representations mentioned in the standard. If something is | |
24 | not mentioned there, then it is treated as non existent, and not as an | |
25 | allowed option. | |
26 | ||
27 | %prep | |
28 | %setup -q -n isodate-%{version} | |
29 | ||
30 | %build | |
31 | %{__python} setup.py build | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | %{__python} setup.py install \ | |
36 | --optimize=2 \ | |
37 | --root=$RPM_BUILD_ROOT | |
38 | ||
39 | %py_postclean | |
40 | ||
41 | %clean | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %files | |
45 | %defattr(644,root,root,755) | |
46 | %doc CHANGES.txt README.txt TODO.txt | |
47 | %dir %{py_sitescriptdir}/isodate | |
48 | %{py_sitescriptdir}/isodate/*.py* | |
49 | %{py_sitescriptdir}/isodate-%{version}*.egg-info |