Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php7
:
extensions
>
php7-redis
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Difference Between Revision 11 and
internetx:php5:extensions
/
php5-redis
[-]
[+]
Changed
php5-redis.spec
@@ -3,15 +3,24 @@ %define php_version %(php-config --version 2>/dev/null || echo PHPCONFIG_NOT_FOUND) %define pkg_version 3.1.3 # +%if "%{php_version}" >= "5.7" +%define my_version 3.1.3 +%define pkg_version 3.1.3 +%define upstream 1 +%else +%define my_version 2.2.8 +%define pkg_version 2.2.8 +%define upstream 0 +%endif BuildPreReq: coreutils awk -Name: php5-redis -Version: 3.1.3 +Name: php7-redis +Version: %{my_version} Release: 1 License: BSD Group: Productivity/Networking/Web/Servers -BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build +BuildRoot: %{_tmppath}/%{pkg_name}-%{pkg_version}-build BuildRequires: php-devel -Requires: php5 = %{php_version} +Requires: php7 = %{php_version} URL: http://pecl.php.net/package/redis Source: %{pkg_name}-%{pkg_version}.tgz Summary: API for redis communication @@ -44,9 +53,9 @@ %install %__install -D -m0755 modules/redis.so %{buildroot}`php-config --extension-dir`/redis.so -%{__mkdir} -p %{buildroot}%{_sysconfdir}/php5/conf.d -echo "; comment out next line to disable redis extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/redis.ini -echo 'extension = redis.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/redis.ini +%{__mkdir} -p %{buildroot}%{_sysconfdir}/php7/conf.d +echo "; comment out next line to disable redis extension in php" > %{buildroot}%{_sysconfdir}/php7/conf.d/redis.ini +echo 'extension = redis.so' >> %{buildroot}%{_sysconfdir}/php7/conf.d/redis.ini %clean @@ -54,8 +63,8 @@ %files %defattr(-,root,root,-) -%{_libdir}/php5/extensions/redis.so -%config(noreplace) %{_sysconfdir}/php5/conf.d/redis.ini +%{_libdir}/php7/extensions/redis.so +%config(noreplace) %{_sysconfdir}/php7/conf.d/redis.ini %changelog
Added
redis-2.2.8.tgz
^
Added
redis-3.1.3RC2.tgz
^