File project.diff of Package php7-redis
--- php7-redis.changes.orig
+++ php7-redis.changes
@@ -1,4 +1,14 @@
-------------------------------------------------------------------
+Tue Jan 3 13:24:11 UTC 2017 - freitag@owncloud.com
+
+- cat the right name into the ini file
+
+-------------------------------------------------------------------
+Mon Jan 2 19:34:32 UTC 2017 - freitag@owncloud.com
+
+- update to 3.2.4
+
+-------------------------------------------------------------------
Thu Dec 15 04:19:19 UTC 2016 - munix9@googlemail.com
- update to version 3.1.0
--- php7-redis.spec.orig
+++ php7-redis.spec
@@ -18,18 +18,22 @@
%bcond_without igbinary
-%define pkg_name redis
+%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
+%global php_extdir %(php-config --extension-dir 2>/dev/null || echo "undefined")
+%global php_version %(php-config --version 2>/dev/null || echo 0)
+
+%define pkg_name phpredis
%define conf_dir %{_sysconfdir}/php7/conf.d
%define ext_dir %(%{__php_config} --extension-dir)
Name: php7-redis
-Version: 3.1.0
+Version: 3.1.1RC1
Release: 0
Summary: PHP extension for interfacing with Redis
License: PHP-3.01
Group: Productivity/Networking/Web/Servers
Url: https://pecl.php.net/package/redis
-Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz
+Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tar.gz
BuildRequires: lsof
BuildRequires: php7-devel >= 7.0
BuildRequires: php7-zlib
@@ -49,49 +53,24 @@ This extension provides an API for commu
%setup -q -n %{pkg_name}-%{version}
%build
-CFLAGS="%{optflags}"
-CXXFLAGS="%{optflags}"
-export CFLAGS
-export CXXFLAGS
-
-%{__phpize}
-%configure \
-%if %{with igbinary}
- --enable-redis-igbinary \
-%endif
- --enable-redis
+%{_bindir}/phpize
+%configure
make %{?_smp_mflags}
+
%install
-make INSTALL_ROOT=%{buildroot} install
+make install INSTALL_ROOT=$RPM_BUILD_ROOT
install -d -m 0755 %{buildroot}%{conf_dir}/
-cat > %{buildroot}%{conf_dir}/%{pkg_name}.ini <<EOF
+cat > %{buildroot}/%{conf_dir}/%{pkg_name}.ini <<EOF
; comment out next line to disable %{pkg_name} extension in php
-extension = %{pkg_name}.so
+extension = redis.so
EOF
-%check
-cd tests
-export PATH=/sbin:/usr/sbin:$PATH
-test_params="-d extension=../modules/redis.so -d error_reporting=22517"
-test_params="$test_params TestRedis.php --class"
-sed -e 's|tempfile|mktemp|' -i mkring.sh
-./mkring.sh start
-%{__php} $test_params Redis || :
-%{__php} $test_params RedisArray || :
-./mkring.sh stop || :
-sleep 10
-# Must have redis-trib.rb on the path!
-#./make-cluster.sh start
-#%%{__php} $test_params RedisCluster || :
-#./make-cluster.sh stop || :
-#sleep 10
-
%files
-%defattr(-,root,root)
-%doc COPYING CREDITS *.markdown
-%{ext_dir}/%{pkg_name}.so
+%defattr(-,root,root,-)
+%doc CREDITS COPYING *markdown
%config(noreplace) %{conf_dir}/%{pkg_name}.ini
+%{php_extdir}/redis.so
%changelog