summaryrefslogtreecommitdiffstats
path: root/php-zstd.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-zstd.spec')
-rw-r--r--php-zstd.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/php-zstd.spec b/php-zstd.spec
index 055014a..9de7a11 100644
--- a/php-zstd.spec
+++ b/php-zstd.spec
@@ -21,8 +21,8 @@
%global with_libzstd 1
%else
%global with_libzstd 0
-%global zstdver 1.3.8
%endif
+%global zstdver 1.3.8
%global gh_commit 17ea4c3957f3d637b461a7aa375f2b4889a3ad77
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
@@ -39,7 +39,7 @@ Version: 0.6.1
%if 0%{?gh_date:1}
Release: 1%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%else
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%endif
%if %{?with_libzstd}
License: MIT
@@ -52,6 +52,8 @@ Source0: %{pkg_name}-%{version}-%{gh_short}.tgz
# retrieve a recursive git snapshot with submodule
Source1: makesrc.sh
+Patch0: https://github.com/kjdev/php-ext-zstd/pull/17.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
%if %{?with_libzstd}
@@ -108,6 +110,8 @@ These are the files needed to compile programs using %{name}.
mv %{gh_project}-%{gh_commit} NTS
cd NTS
+%patch0 -p1 -b .pr17
+
# replace symlink
rm LICENSE-zstd
mv zstd/LICENSE LICENSE-zstd
@@ -242,6 +246,10 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \
%changelog
+* Mon Apr 15 2019 Remi Collet <remi@remirepo.net> - 0.6.1-2
+- test build for Stream implementation, from
+ https://github.com/kjdev/php-ext-zstd/pull/17
+
* Thu Apr 4 2019 Remi Collet <remi@remirepo.net> - 0.6.1-1
- update to 0.6.1