2c82c5e
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2c82c5e
2c82c5e
Name:           pytz
e19dd59
Version:        2010h
d4c715a
Release:        1%{?dist}
2c82c5e
Summary:        World Timezone Definitions for Python
2c82c5e
2c82c5e
Group:          Development/Languages
2c82c5e
License:        MIT
2c82c5e
URL:            http://pytz.sourceforge.net/
e19dd59
Source0:        http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
e19dd59
e19dd59
Patch0:         pytz-2010h_zoneinfo.patch
2c82c5e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2c82c5e
2c82c5e
BuildArch:      noarch
e19dd59
BuildRequires:  python-devel
e19dd59
e19dd59
Requires: tzdata
2c82c5e
2c82c5e
%description
2c82c5e
pytz brings the Olson tz database into Python. This library allows accurate
2c82c5e
and cross platform timezone calculations using Python 2.3 or higher. It
2c82c5e
also solves the issue of ambiguous times at the end of daylight savings,
2c82c5e
which you can read more about in the Python Library Reference
2c82c5e
(datetime.tzinfo).
2c82c5e
2c82c5e
Amost all (over 540) of the Olson timezones are supported.
2c82c5e
2c82c5e
%prep
2c82c5e
%setup -q
e19dd59
%patch0 -p1
2c82c5e
2c82c5e
%build
2c82c5e
%{__python} setup.py build
2c82c5e
2c82c5e
2c82c5e
%install
2c82c5e
rm -rf $RPM_BUILD_ROOT
2c82c5e
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
2c82c5e
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pytz/*.py
e19dd59
rm -rf  $RPM_BUILD_ROOT%{python_sitelib}/pytz/zoneinfo
d4c715a
2c82c5e
%clean
2c82c5e
rm -rf $RPM_BUILD_ROOT
2c82c5e
2c82c5e
2c82c5e
%files
2c82c5e
%defattr(-,root,root,-)
2c82c5e
%doc CHANGES.txt LICENSE.txt README.txt
2c82c5e
%{python_sitelib}/pytz/
8920db8
#%{python_sitelib}/*.egg-info
2c82c5e
2c82c5e
%changelog
e19dd59
* Tue Apr 27 2010 Jon Ciesla <limb@jcomserv.net> - 2010h-1
e19dd59
- Update to current version, BZ 573252.
e19dd59
e19dd59
* Mon Feb 01 2010 Jon Ciesla <limb@jcomserv.net> - 2009i-7
e19dd59
- Corrected Source0 URL, BZ 560168.
e19dd59
e19dd59
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-6
e19dd59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e19dd59
e19dd59
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2008i-5
e19dd59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e19dd59
e19dd59
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2008i-4
e19dd59
- Rebuild for Python 2.6
e19dd59
e19dd59
* Tue Nov 18 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-3
e19dd59
- Apply patch correctly.
e19dd59
e19dd59
* Thu Nov 13 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-2
e19dd59
- Updated tzdata patch from Petr Machata bug 471014
e19dd59
e19dd59
* Tue Nov 11 2008 Jef Spaleta <jspaleta at fedoraproject dot org> 2008i-1
e19dd59
- Update to latest, now using timezone files provided by tzdata package
e19dd59
e19dd59
* Fri Jan 04 2008 Jef Spaleta <jspaleta@gmail.com> 2006p-3
e19dd59
- Fix for egg-info file creation
e19dd59
e19dd59
* Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 2006p-2
e19dd59
- Bump for rebuild against python 2.5 and change BR to python-devel accordingly
e19dd59
d396249
* Fri Dec  8 2006 Orion Poplawski <orion@cora.nwra.com> 2006p-1
d396249
- Update to 2006p
d396249
d4c715a
* Thu Sep  7 2006 Orion Poplawski <orion@cora.nwra.com> 2006g-1
d4c715a
- Update to 2006g
d4c715a
ae7550f
* Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-2
ae7550f
- Rebuild for gcc/glibc changes
ae7550f
96b49de
* Tue Jan  3 2006 Orion Poplawski <orion@cora.nwra.com> 2005r-1
96b49de
- Update to 2005r
96b49de
910494b
* Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005m-1
910494b
- Update to 2005m
910494b
2c82c5e
* Fri Jul 22 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-2
2c82c5e
- Remove -O1 from install command
2c82c5e
2c82c5e
* Tue Jul 05 2005 Orion Poplawski <orion@cora.nwra.com> 2005i-1
2c82c5e
- Initial Fedora Extras package