From 973f94461deadd580e321aeffbf48725a784627ddf1e073da83a348ddd43f56b Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 27 May 2014 12:54:18 +0000 Subject: [PATCH] Accepting request 235507 from home:Nijel:branches:devel:languages:python Adjust openjpeg2 dependency for older distributions The openjpeg2 package is not available in SLE12 and older, so let's build Pillow there without it. OBS-URL: https://build.opensuse.org/request/show/235507 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pillow?expand=0&rev=14 --- python-Pillow.changes | 5 +++++ python-Pillow.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/python-Pillow.changes b/python-Pillow.changes index 71826e7..ced4017 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 08:25:54 UTC 2014 - mcihar@suse.com + +- Adjust openjpeg2 dependency for older distributions + ------------------------------------------------------------------- Thu May 8 14:22:57 UTC 2014 - hpj@urpla.net diff --git a/python-Pillow.spec b/python-Pillow.spec index 05e674f..ec96bab 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -34,6 +34,8 @@ BuildRequires: unzip BuildRequires: libjpeg8-devel BuildRequires: liblcms2-devel BuildRequires: libwebp-devel +%endif +%if 0%{?suse_version} > 1315 BuildRequires: openjpeg2-devel %endif BuildRequires: freetype2-devel