]> git.pld-linux.org Git - packages/python-pytz.git/commitdiff
- initial PLD release
authorMarcin Gajda <m.gajda@functional-software.com>
Fri, 11 Jun 2004 09:27:14 +0000 (09:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pytz.spec -> 1.1

python-pytz.spec [new file with mode: 0644]

diff --git a/python-pytz.spec b/python-pytz.spec
new file mode 100644 (file)
index 0000000..bfffe52
--- /dev/null
@@ -0,0 +1,54 @@
+
+%include       /usr/lib/rpm/macros.python
+%define        module  pytz
+
+Summary:       pytz - Olson timezone database in Python
+Summary(pl):   pytz - baza stref czasowych Olsona w Pythonie
+Name:          python-%{module}
+Version:       2004a
+Release:       1
+License:       BSD
+Group:         Libraries/Python
+Source0:       http://dl.sourceforge.net/pytz/%{module}-%{version}.tar.bz2
+# Source0-md5: b02adef468cbd6354309347f59eb08c2
+URL:           http://sourceforge.net/projects/pytz/
+BuildRequires: python-devel >= 2.3
+Requires:      python >= 2.3
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytz brings the Olson tz database into Python. This library allows
+accurate and cross platform timezone calculations using Python 2.3 or
+higher.
+
+%description -l pl
+pytz dodaje do Pythona modu³ umo¿liwiaj±cy odpytywanie bazy stref
+czasowych Olsona. Modu³ ten umo¿liwia przeprowadzanie dok³adnych,
+niezale¿nych od platformy obliczeñ uwzglêdniaj±cych strefy czasowy
+przy u¿yciu Pythona w wersji co najmniej 2.3.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
+
+python setup.py install \
+       --root=$RPM_BUILD_ROOT \
+       --install-lib=%{py_sitescriptdir} \
+       --optimize=2
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/pytz
This page took 0.104937 seconds and 4 git commands to generate.