下载php-redis-extension安装包:
[root@dongyaming SOURCES]# ls
php-7.1.5.tar.gz redis-3.1.2.tgz
[root@dongyaming SOURCES]# pwd
/root/rpmbuild/SOURCES
[root@dongyaming SPECS]#
cat php-redis.spec
%global php_extdir %(/usr/local/php7/bin/php-config --extension-dir 2>/dev/null || echo "undefined")
Name: x-php7-redis
Version: 3.1.2
Release: 1%{?dist}
Summary: The phpredis extension provides an API for communicating with the Redis key-value store.
Group: Development/Languages
License: PHP
URL: http://pecl.php.net/package/redis
Source0: redis-%{version}.tgz
BuildRoot: %_topdir/BUILDROOT
Requires: php
BuildRequires: php >= 7.0.0
<