3 %bcond_without tests # do not perform "make test"
6 Summary: Simple module to parse ISO 8601 dates
11 Group: Development/Languages
12 Source0: http://pypi.python.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
13 # Source0-md5: b207ad4f2df92810533ce6145ab9c3e7
14 URL: https://bitbucket.org/micktwomey/pyiso8601
15 BuildRequires: python-devel
16 BuildRequires: python-setuptools
17 BuildRequires: rpmbuild(macros) >= 1.219
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This module parses the most common forms of ISO 8601 date strings
23 (e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
26 %setup -qn %{module}-%{version}
32 rm -rf $RPM_BUILD_ROOT
37 %{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/iso8601/test_*
40 rm -rf $RPM_BUILD_ROOT
43 %defattr(644,root,root,755)
44 %doc README.rst LICENSE
45 %{py_sitescriptdir}/iso8601
46 %{py_sitescriptdir}/iso8601-%{version}-py*.egg-info