2010-05-31 07:25:17 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-iso8601
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
|
|
|
|
|
|
2008-09-13 12:40:23 +00:00
|
|
|
Summary: Simple module to parse ISO 8601 dates
|
|
|
|
|
Name: python-iso8601
|
|
|
|
|
Version: 0.1.4
|
|
|
|
|
Release: 0
|
|
|
|
|
License: MIT
|
2010-05-31 07:25:17 +00:00
|
|
|
Group: Development/Libraries/Python
|
2008-09-13 12:40:23 +00:00
|
|
|
URL: http://pypi.python.org/pypi/iso8601/
|
|
|
|
|
Source: iso8601-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
BuildRequires: python-devel python-setuptools
|
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module parses the most common forms of ISO 8601 date strings (e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
|
|
%setup -n iso8601-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
%{__python} setup.py install \
|
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
|
--prefix="%{_prefix}" \
|
|
|
|
|
--record-rpm=INSTALLED_FILES
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
|
|
|
|
|
%defattr(-, root, root, 0755)
|
|
|
|
|
%{py_sitedir}*
|
|
|
|
|
%doc README LICENSE
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Sep 13 2008 - Peter Nixon
|
|
|
|
|
- first build
|