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