File python-tz.spec of Package python-tz

#
# spec file for package python-tz (Version 2010h)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           python-tz
Version:        2010h
Release:        1
License:        MIT
Group:          Development/Libraries/Python
Url:            http://pytz.sourceforge.net/
Source0:        http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1010
BuildRequires:  fdupes
%endif
BuildRequires:  python-devel
# Requires python-setuptools with Python 2.3
%if 0%{?sles_version} == 9
BuildRequires:  python-setuptools
%endif
%py_requires
Summary:        Olson timezone database for python

%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).

%prep
%setup -n pytz-%{version}

%build
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
%if 0%{?suse_version} > 1010
%fdupes %{buildroot}
%endif

%clean
%__rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt

%changelog
openSUSE Build Service is sponsored by