From ca3906af5443a4e31f676ddb2f3b4a4a3fb58d43bf3c667eb495fcbed59fa74a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 13 Jan 2015 13:04:16 +0000 Subject: [PATCH] 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 --- python-pytz.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-pytz.spec b/python-pytz.spec index 1551e48..4ae3089 100644 --- a/python-pytz.spec +++ b/python-pytz.spec @@ -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