-Source0: https://github.com/nicolasff/phpredis/tarball/%{version}#/%{name}-%{version}.tgz
-# Source0-md5: eb2bee7e42f7a32a38c2a45377f21086
-URL: https://github.com/nicolasff/phpredis
-%{?with_tests:BuildRequires: /usr/bin/php}
-BuildRequires: php-devel >= 4:5.0.4
-%{?with_tests:BuildRequires: php-session}
-%{?with_tests:BuildRequires: php-simplexml}
+Source0: https://github.com/phpredis/phpredis/tarball/%{version}/%{modname}-%{version}.tar.gz
+# Source0-md5: a038194807474611cf76dd727098b986
+Source1: https://github.com/ukko/phpredis-phpdoc/archive/9ec1795bcd45ec83a19b46cf9a8b78b4e4d7ac80/%{modname}-phpdoc.tar.gz
+# Source1-md5: eaba2e5fad040e2f4526374c073ae5f7
+URL: https://github.com/phpredis/phpredis
+BuildRequires: %{php_name}-cli
+BuildRequires: %{php_name}-devel >= 4:5.0.4
+BuildRequires: %{php_name}-pcre
+BuildRequires: %{php_name}-session
+BuildRequires: %{php_name}-simplexml
+%if %{with tests}
+BuildRequires: %{php_name}-pecl-igbinary
+BuildRequires: %{php_name}-zlib
+%endif