packages: python3-dateutil/python3-dateutil.spec (NEW) - based on python-da...
wrobell
wrobell at pld-linux.org
Mon May 30 20:06:45 CEST 2011
Author: wrobell Date: Mon May 30 18:06:45 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- based on python-dateutil.spec rev. 1.15
---- Files affected:
packages/python3-dateutil:
python3-dateutil.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python3-dateutil/python3-dateutil.spec
diff -u /dev/null packages/python3-dateutil/python3-dateutil.spec:1.1
--- /dev/null Mon May 30 20:06:45 2011
+++ packages/python3-dateutil/python3-dateutil.spec Mon May 30 20:06:40 2011
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+%define module dateutil
+Summary: Extensions to the standard datetime module
+Summary(pl.UTF-8): Rozszerzenia modułu datetime języka Python
+Name: python3-dateutil
+Version: 2.0
+Release: 1
+License: BSD
+Group: Libraries/Python
+Source0: http://niemeyer.net/download/python-dateutil/python-%{module}-%{version}.tar.gz
+# Source0-md5: 22297f7e891bcd79a80d9446d8b20542
+URL: http://niemeyer.net/python-dateutil
+BuildRequires: rpm-pythonprov
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The dateutil module provides powerful extensions to the standard
+datetime module, available in Python 2.3+. Allows:
+- computing of relative deltas (next month, next year, next monday,
+ last week of month, etc),
+- computing of dates based on very flexible recurrence rules, using a
+ superset of the [WWW] iCalendar specification,
+- parsing of RFC strings,
+- peneric parsing of dates in almost any string format.
+
+%description -l pl.UTF-8
+Moduł dateutil jest potężnym rozszerzeniem standardowego modułu
+datetime, dostępnego w Pythonie 2.3+. Pozwala na:
+- obliczanie relatywnych różnic (następny miesiąc, rok, poniedziałek,
+ ostatni tydzień miesiąca itp.),
+- obliczanie dat w oparciu o bardzo elastyczne rekurencyjne zasady, z
+ użyciem nadzbioru specyfikacji [WWW] iCalendar,
+- analizę łańcuchow znakowych RFC,
+- analizę dat w prawie każdym formacie.
+
+%prep
+%setup -q -n python-%{module}-%{version}
+
+%build
+%{__python3} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python3} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT \
+
+# NOTE: Not sure but seems zoneinfo is needed under windows only
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/dateutil/zoneinfo
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NEWS README
+%{py3_sitescriptdir}/dateutil
+%{py3_sitescriptdir}/python_dateutil-*.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/05/30 18:06:40 wrobell
+- based on python-dateutil.spec rev. 1.15
+
================================================================
More information about the pld-cvs-commit
mailing list