From 1088c387b9a25a2f3bc3339452cb8fc43060dc99 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 9 Apr 2018 12:01:08 +0200 Subject: update to 0.3.4 with bundled liblz4 version 1.8.1.2 --- php-lz4.spec | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'php-lz4.spec') diff --git a/php-lz4.spec b/php-lz4.spec index e179810..c2a4125 100644 --- a/php-lz4.spec +++ b/php-lz4.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-lz4 # -# Copyright (c) 2016-2017 Remi Collet +# Copyright (c) 2016-2018 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} >= 28 || 0%{?rhel} >= 8 +%global with_liblz4 1 +%else %global with_liblz4 0 +%endif -%global gh_commit fb61d07a3900e4c0935366b8ac8e08ece192634b +%global gh_commit 7013a58747a70f992ebdb1fdec2d1d63ba40247c %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner kjdev %global gh_project php-ext-lz4 @@ -26,9 +30,9 @@ Summary: LZ4 Extension for PHP Name: %{?sub_prefix}php-lz4 -Version: 0.3.3 +Version: 0.3.4 %if 0%{?gh_date:1} -Release: 0.3.%{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: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %endif @@ -39,11 +43,12 @@ Source0: %{pkg_name}-%{version}-%{gh_short}.tgz # retrieve a recursive git snapshot with submodule Source1: makesrc.sh +BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel %if %{?with_liblz4} -BuildRequires: lz4-devel +BuildRequires: lz4-devel >= 1.8 %else -Provides: bundled(lz4) = 1.8.0 +Provides: bundled(lz4) = 1.8.1.2 %endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -210,6 +215,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon Apr 9 2018 Remi Collet - 0.3.4-1 +- update to 0.3.4 with bundled liblz4 version 1.8.1.2 + * Mon Aug 21 2017 Remi Collet - 0.3.3-1 - update to 0.3.3 with bundled liblz4 version 1.8.0 -- cgit