From ed5185b67ee73f80d8dcb37399701cdac8894e33 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 29 May 2016 11:11:49 +0200 Subject: PHP 5.5 + 5.6, fix build with gd 2.2 --- php.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/php.spec b/php.spec index 197cbff..2b6b10f 100644 --- a/php.spec +++ b/php.spec @@ -700,9 +700,6 @@ BuildRequires: libXpm-devel %if %{with_t1lib} BuildRequires: t1lib-devel %endif -%if %{with_vpx} -BuildRequires: libvpx-devel -%endif %if %{with_libgd} BuildRequires: gd-devel >= 2.1.1 %if 0%{?fedora} <= 19 && 0%{?rhel} <= 7 @@ -710,6 +707,10 @@ Requires: gd-last%{?_isa} >= 2.1.1 %else Requires: gd%{?_isa} >= 2.1.1 %endif +%else +%if %{with_vpx} +BuildRequires: libvpx-devel +%endif %endif %description gd @@ -1068,9 +1069,6 @@ ln -sf ../configure --with-freetype-dir=%{_root_prefix} \ --with-png-dir=%{_root_prefix} \ --with-xpm-dir=%{_root_prefix} \ -%if %{with_vpx} - --with-vpx-dir=%{_root_prefix} \ -%endif --enable-gd-native-ttf \ %if %{with_t1lib} --with-t1lib=%{_root_prefix} \ @@ -1115,6 +1113,9 @@ build --libdir=%{_libdir}/php \ --with-gd=shared,%{_root_prefix} \ %else --with-gd=shared \ +%if %{with_vpx} + --with-vpx-dir=%{_root_prefix} \ +%endif %endif --with-gmp=shared \ --enable-calendar=shared \ -- cgit