From 925dc3fcc686279edb162ba81e0aa21798b30362 Mon Sep 17 00:00:00 2001 From: Mateusz Korniak Date: Tue, 7 Mar 2006 13:57:03 +0000 Subject: [PATCH] - Initial spec for 1.1-1. Needs only some pl. STBR(Ac). Changed files: python-dateutil.spec -> 1.1 --- python-dateutil.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 python-dateutil.spec diff --git a/python-dateutil.spec b/python-dateutil.spec new file mode 100644 index 0000000..ad482b9 --- /dev/null +++ b/python-dateutil.spec @@ -0,0 +1,53 @@ +%define module dateutil +Summary: Extensions to the standard datetime module +Summary(pl): Rozszerzenia modulu datetime jezyka Python +Name: python-dateutil +Version: 1.1 +Release: 1 +License: PSF +Group: Libraries/Python +Source0: http://labix.org/download/python-dateutil/python-%{module}-%{version}.tar.bz2 +# Source0-md5: f259496f4059dda806837503ee4235f3 +URL: http://labix.org/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 +Modul dateutil jest poteznym rozszerzeniem standardowego modulu datetime, dostepnego w Pythonie 2.3+. +Pozwala na +- obliczanie relatywnych roznic (nastepny miesiac, rok, Poniedzialek, ostatni tydzien itp.), +- obliczanie dat bazujcych na bardzo elastycznych rekurencyjnych zasadach, uzywajac nadzbioru specyfikacji [WWW] iCalendar. +- parsowanie lancuchow znakowych RFC, +- parsowanie dat w prawie kazdym formacie. + +%prep +%setup -q + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT + +python setup.py install \ + --root=$RPM_BUILD_ROOT --optimize=2 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +#%%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO +%dir %{py_sitescriptdir}/%{module} +%{py_sitescriptdir}/%{module}/*.py[co] +#NOTE: Not sure but seems zoneinfno is needed under windows only +#%%dir %{py_sitescriptdir}/%{module}/zoneinfo +#%%{py_sitescriptdir}/%{module}/zoneinfo/*.py[co] -- 2.44.0