summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-redis4.spec8
1 files changed, 5 insertions, 3 deletions
diff --git a/php-pecl-redis4.spec b/php-pecl-redis4.spec
index 02b3b63..0deacfd 100644
--- a/php-pecl-redis4.spec
+++ b/php-pecl-redis4.spec
@@ -44,9 +44,11 @@ Patch0: %{pecl_name}-tests.patch
# See https://github.com/phpredis/phpredis/issues/1305
ExcludeArch: s390x
-BuildRequires: php-devel
-BuildRequires: php-pear
-BuildRequires: php-pecl-igbinary-devel
+BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-pear
+%if %{with_igbin}
+BuildRequires: %{?sub_prefix}php-pecl-igbinary-devel
+%endif
BuildRequires: liblzf-devel
# to run Test suite
%if %{with_tests}