forked from pool/python-iso8601
Initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-iso8601?expand=0&rev=1
This commit is contained in:
40
python-iso8601.spec
Normal file
40
python-iso8601.spec
Normal 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
|
||||
Reference in New Issue
Block a user