SHA256
1
0
forked from pool/python-pytz

Accepting request 281020 from home:bergmannf:branches:devel:languages:python

Prevent removing the pytz-zoneinfo on systems, where we do not use the system's timezone db.

OBS-URL: https://build.opensuse.org/request/show/281020
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytz?expand=0&rev=32
This commit is contained in:
Michal Čihař 2015-01-13 13:04:16 +00:00 committed by Git OBS Bridge
parent e2bb570701
commit ca3906af54

View File

@ -70,8 +70,10 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Remove the pytz zoneinfo
# Remove the pytz zoneinfo only if we use the system tz database
%if 0%{?suse_version} >= 1310
rm -fr %{buildroot}%{python_sitelib}/pytz/zoneinfo
%endif
%fdupes %{buildroot}%{python_sitelib}
%check