summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO6
-rw-r--r--REFLECTION2
-rw-r--r--php-snappy.spec31
3 files changed, 32 insertions, 7 deletions
diff --git a/PHPINFO b/PHPINFO
new file mode 100644
index 0000000..6cc50bf
--- /dev/null
+++ b/PHPINFO
@@ -0,0 +1,6 @@
+
+snappy
+
+Snappy support => enabled
+Extension Version => 0.1.10
+Snappy Version => 1.1.8
diff --git a/REFLECTION b/REFLECTION
index bd988eb..96d9b2e 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #129 snappy version 0.1.9 ] {
+Extension [ <persistent> extension #97 snappy version 0.1.10 ] {
- Functions {
Function [ <internal:snappy> function snappy_compress ] {
diff --git a/php-snappy.spec b/php-snappy.spec
index 622630f..a8bf513 100644
--- a/php-snappy.spec
+++ b/php-snappy.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-snappy
#
-# Copyright (c) 2016-2017 Remi Collet
+# Copyright (c) 2016-2020 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -13,9 +13,13 @@
%global pkg_name %{name}
%endif
+%if 0%{?fedora} >= 32
+%global with_libsnappy 1
+%else
%global with_libsnappy 0
+%endif
-%global gh_commit 2f8efcfcb210ea2e00dcdc42a2d4701fe6b3bfad
+%global gh_commit ae9f56ca5abfab0375a66263a0882e7782daf0f4
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner kjdev
%global gh_project php-ext-snappy
@@ -24,13 +28,25 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
+%if ! 0%{?dtsversion}
+%if 0%{?rhel} == 6
+%global dtsenable export PHP_AUTOCONF=autoconf268;export PHP_AUTOHEADER=autoheader268;source /opt/rh/devtoolset-7/enable
+BuildRequires: devtoolset-7-toolchain
+BuildRequires: autoconf268
+%endif
+%if 0%{?rhel} == 7
+%global dtsenable source /opt/rh/devtoolset-7/enable
+BuildRequires: devtoolset-7-toolchain
+%endif
+%endif
+
Summary: Snappy Extension for PHP
Name: %{?sub_prefix}php-snappy
-Version: 0.1.9
+Version: 0.1.10
%if 0%{?gh_date:1}
-Release: 0.6.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%endif
%if %{?with_libsnappy}
License: PHP
@@ -46,7 +62,7 @@ BuildRequires: %{?scl_prefix}php-devel
%if %{?with_libsnappy}
BuildRequires: snappy-devel
%else
-Provides: bundled(snappy) = 1.1.7
+Provides: bundled(snappy) = 1.1.8
%endif
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
@@ -227,6 +243,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri May 29 2020 Remi Collet <remi@remirepo.net> - 0.1.10-1
+- update to 0.1.10 with libsnappy 1.1.8
+
* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 0.1.9-4
- rebuild for 7.4.0RC1