]>
Commit | Line | Data |
---|---|---|
1d169444 | 1 | |
1d169444 MG |
2 | %define module pytz |
3 | ||
4 | Summary: pytz - Olson timezone database in Python | |
a49ed86c | 5 | Summary(pl.UTF-8): pytz - baza stref czasowych Olsona w Pythonie |
1d169444 | 6 | Name: python-%{module} |
ce06966e | 7 | Version: 2006p |
1d169444 MG |
8 | Release: 1 |
9 | License: BSD | |
10 | Group: Libraries/Python | |
11 | Source0: http://dl.sourceforge.net/pytz/%{module}-%{version}.tar.bz2 | |
ce06966e | 12 | # Source0-md5: ae3569bc2831d30d2ee1fabac54c43dd |
1d169444 | 13 | URL: http://sourceforge.net/projects/pytz/ |
a17a0084 | 14 | BuildRequires: python-devel >= 1:2.3 |
1d169444 MG |
15 | Requires: python >= 2.3 |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | pytz brings the Olson tz database into Python. This library allows | |
21 | accurate and cross platform timezone calculations using Python 2.3 or | |
22 | higher. | |
23 | ||
a49ed86c JR |
24 | %description -l pl.UTF-8 |
25 | pytz dodaje do Pythona moduł umożliwiający odpytywanie bazy stref | |
26 | czasowych Olsona. Moduł ten umożliwia przeprowadzanie dokładnych, | |
27 | niezależnych od platformy obliczeń uwzględniających strefy czasowy | |
28 | przy użyciu Pythona w wersji co najmniej 2.3. | |
1d169444 MG |
29 | |
30 | %prep | |
31 | %setup -q -n %{module}-%{version} | |
32 | ||
33 | %build | |
34 | python setup.py build_ext | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{py_sitescriptdir} | |
39 | ||
40 | python setup.py install \ | |
41 | --root=$RPM_BUILD_ROOT \ | |
42 | --install-lib=%{py_sitescriptdir} \ | |
43 | --optimize=2 | |
44 | ||
45 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \; | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
52 | %doc README.txt | |
53 | %{py_sitescriptdir}/pytz |