commit 5c9c0f338ececdfb193277d97daf32c8ea478657
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Oct 27 19:14:13 2013 +0200

    new, version 0.1.4
    
    based on fedora package
    a7b823e8117b668558b6ca2f9ef46bb3c7863571

 python-iso8601.spec | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
---
diff --git a/python-iso8601.spec b/python-iso8601.spec
new file mode 100644
index 0000000..e5d405a
--- /dev/null
+++ b/python-iso8601.spec
@@ -0,0 +1,49 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  iso8601
+Summary:       Simple module to parse ISO 8601 dates
+Name:          python-%{module}
+Version:       0.1.4
+Release:       1
+License:       MIT
+Group:         Development/Languages
+Source0:       
http://pypi.python.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
+# Source0-md5: f63c17a1786b9fe48d05b43d61970f85
+URL:           http://pypi.python.org/pypi/iso8601/
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 -qn %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/iso8601/test_*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+%{py_sitescriptdir}/iso8601
+%{py_sitescriptdir}/iso8601-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-iso8601.git/commitdiff/5c9c0f338ececdfb193277d97daf32c8ea478657

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to