From cece4c69df7ab6f322a96b2c956bf14690f489f9a5b307732ab619da60182e46 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 22 Apr 2015 09:22:16 +0000 Subject: [PATCH] Accepting request 298497 from home:namtrac:branches:M17N - Enable harfbuzz for only suse_version > 1320. Dependency is not available on older releases. OBS-URL: https://build.opensuse.org/request/show/298497 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=97 --- freetype2.changes | 6 ++++++ freetype2.spec | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/freetype2.changes b/freetype2.changes index 52a55ed..74d4614 100644 --- a/freetype2.changes +++ b/freetype2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 22 08:15:19 UTC 2015 - idonmez@suse.com + +- Enable harfbuzz for only suse_version > 1320. Dependency is + not available on older releases. + ------------------------------------------------------------------- Fri Apr 10 09:43:06 UTC 2015 - fstrba@suse.com diff --git a/freetype2.spec b/freetype2.spec index 5e113d2..cc36ce8 100644 --- a/freetype2.spec +++ b/freetype2.spec @@ -34,8 +34,10 @@ Patch200: freetype2-subpixel.patch Patch202: don-t-mark-libpng-as-required-library.patch Patch308961: bugzilla-308961-cmex-workaround.patch BuildRequires: gawk +%if 0%{?suse_version} > 1320 # We build against a minimal bootstrap package in order to avoid a circular dependency BuildRequires: harfbuzz-bootstrap-devel +%endif BuildRequires: libbz2-devel BuildRequires: libpng-devel BuildRequires: pkg-config @@ -95,7 +97,9 @@ It also contains a small tutorial for using that library. export CFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE $(getconf LFS_CFLAGS)" %configure \ --with-bzip2 \ +%if 0%{?suse_version} > 1320 --with-harfbuzz \ +%endif --with-png \ --with-zlib \ --disable-static