14
0
Peter Nixon
2008-09-13 12:40:23 +00:00
committed by Git OBS Bridge
commit 8fb2dbaeed
4 changed files with 67 additions and 0 deletions

40
python-iso8601.spec Normal file
View File

@@ -0,0 +1,40 @@
Summary: Simple module to parse ISO 8601 dates
Name: python-iso8601
Version: 0.1.4
Release: 0
License: MIT
Group: Development/Libraries
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