From efebda861032afe914ee9f0012d0933dafaf8fc12877b0688c2e74b9392cf0d4 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 22 Aug 2017 13:21:15 +0000 Subject: [PATCH] Accepting request 518118 from home:tbechtold:branches:devel:languages:python - fix conditional build with tk (bsc#1054719) OBS-URL: https://build.opensuse.org/request/show/518118 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=63 --- python-Pillow.changes | 5 +++++ python-Pillow.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-Pillow.changes b/python-Pillow.changes index edc1e33..38af39a 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 22 11:52:50 UTC 2017 - tbechtold@suse.com + +- fix conditional build with tk (bsc#1054719) + ------------------------------------------------------------------- Mon Aug 21 10:06:47 UTC 2017 - tbechtold@suse.com diff --git a/python-Pillow.spec b/python-Pillow.spec index 09ba157..810d8d3 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -154,7 +154,8 @@ $python test-installed.py %{python_sitearch}/PIL %{python_sitearch}/PIL.pth %{python_sitearch}/Pillow-%{version}-py%{python_version}.egg-info -%if 0%{?is_opensuse} + +%if %{with tk} %exclude %{python_sitearch}/PIL/ImageTk* %exclude %{python_sitearch}/PIL/_imagingtk* %pycache_only %exclude %{python_sitearch}/PIL/__pycache__/ImageTk.*