File python-pytz.spec of Package python-pytz
#norootforbuild
#
%define real_name pytz
#
#
Name: python-pytz
Group: Development/Libraries/Python
Version: 2006p
Release: 2.1
License: MIT, Zope Public License
Summary: pytz brings the olson timezone database to python
Autoreqprov: on
Source: %{real_name}-%{version}.tar.gz
BuildRoot:%{_tmppath}/%{name}-%{version}-build
BuildRequires: python-setuptools
Url: http://sourceforge.net/projects/pytz/
Packager: Ciaran Farrell <cfarrell1980@googlemail.com>
%if 0%{?suse_version}
%{py_requires}
%else
BuildRequires: python-devel
%endif
%description
pytz brings the Olson tz database into Python. This library allows accurate and cross
platform timezone calculations using Python 2.3 or higher. It also solves the issue
of ambiguous times at the end of daylight savings, which you can read more about in
the Python Library Reference (datetime.tzinfo).
Amost all (over 540) of the Olson timezones are supported
%prep
%setup -n %{real_name}-%{version}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
%if 0%{?suse_version}
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%else
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
%changelog
* Tue Oct 07 2008 - cfarrell
- Initial import and build