Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python-pytz
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
python-pytz.spec
@@ -0,0 +1,46 @@ +# +# spec file for package python-pytz for Mer, based on OpenSuse version +# + +Name: python-pytz +Version: 2014.2 +Release: 0 +Summary: World timezone definitions, modern and historical +License: MIT +Group: Development/Languages +Url: http://pytz.sourceforge.net +Source: pytz-%{version}.tar.bz2 +BuildRequires: fdupes +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Provides: python-tz = 2014b + +%description +pytz - World Timezone Definitions for Python +pytz brings the Olson tz database into Python. This library allows +accurate and cross platform timezone calculations using Python 2.4 +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``). + +Almost all of the Olson timezones are supported. + +%prep +%setup -q -n pytz-%{version} +# For rpmlint warning: remove shebang from python library: +sed -i '/^#!/d' ./pytz/tzfile.py + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%fdupes %{buildroot}%{python_sitelib} + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt README.txt +%{python_sitelib}/* + +%changelog