packages: python-isodate/python-isodate.spec (NEW) - initial

arekm arekm at pld-linux.org
Mon Jul 18 14:50:47 CEST 2011


Author: arekm                        Date: Mon Jul 18 12:50:47 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/python-isodate:
   python-isodate.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-isodate/python-isodate.spec
diff -u /dev/null packages/python-isodate/python-isodate.spec:1.1
--- /dev/null	Mon Jul 18 14:50:47 2011
+++ packages/python-isodate/python-isodate.spec	Mon Jul 18 14:50:41 2011
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define 	module	isodate
+Summary:	An ISO 8601 date/time/duration parser and formater
+Name:		python-%{module}
+Version:	0.4.4
+Release:	1
+License:	GPL v3
+Group:		Development/Languages
+URL:		http://pypi.python.org/pypi/isodate/
+Source0:	http://pypi.python.org/packages/source/i/isodate/isodate-%{version}.tar.gz
+# Source0-md5:	c331586a738ca77fb94190b35e2a5a11
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ISO 8601 date/time parser
+
+This module implements ISO 8601 date, time and duration parsing. The
+implementation follows ISO8601:2004 standard, and implements only
+date/time representations mentioned in the standard. If something is
+not mentioned there, then it is treated as non existent, and not as an
+allowed option.
+
+%prep
+%setup -q -n isodate-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt README.txt TODO.txt
+%dir %{py_sitescriptdir}/isodate
+%{py_sitescriptdir}/isodate/*.py*
+%{py_sitescriptdir}/isodate-%{version}*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/18 12:50:41  arekm
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list