summaryrefslogtreecommitdiffstats
path: root/php-zstd.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-zstd.spec')
-rw-r--r--php-zstd.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-zstd.spec b/php-zstd.spec
index 6f09d81..768dff1 100644
--- a/php-zstd.spec
+++ b/php-zstd.spec
@@ -40,7 +40,7 @@ Version: 0.7.3
%if 0%{?gh_date:1}
Release: 2%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%endif
%if %{?with_libzstd}
License: MIT
@@ -53,6 +53,8 @@ Source0: %{pkg_name}-%{version}-%{gh_short}.tgz
# retrieve a recursive git snapshot with submodule
Source1: makesrc.sh
+Patch0: https://patch-diff.githubusercontent.com/raw/kjdev/php-ext-zstd/pull/24.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
%if %{?with_libzstd}
@@ -114,6 +116,8 @@ These are the files needed to compile programs using %{name}.
mv %{gh_project}-%{gh_commit} NTS
cd NTS
+%patch0 -p1
+
# replace symlink
rm LICENSE-zstd
mv zstd/LICENSE LICENSE-libzstd
@@ -247,6 +251,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%changelog
+* Wed Jul 24 2019 Remi Collet <remi@remirepo.net> - 0.7.3-4
+- add patch for 7.4.0beta1 from
+ https://github.com/kjdev/php-ext-zstd/pull/24
+
* Tue Jul 23 2019 Remi Collet <remi@remirepo.net> - 0.7.3-3
- rebuild for 7.4.0beta1