From c95721f8c1e19faa2d6ef0b03d3eee69c52add8f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 14 May 2018 17:17:26 +0200 Subject: rebuild for librabbitmq 0.8 in RHEL 7.5 --- php-pecl-amqp.spec | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/php-pecl-amqp.spec b/php-pecl-amqp.spec index 554422f..ea23952 100644 --- a/php-pecl-amqp.spec +++ b/php-pecl-amqp.spec @@ -3,12 +3,16 @@ # # Fedora spec file for php-pecl-amqp # -# Copyright (c) 2012-2017 Remi Collet +# Copyright (c) 2012-2018 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # + +# we don't want -z defs linker flag +%undefine _strict_symbol_defs_build + %if 0%{?scl:1} %global sub_prefix %{scl_prefix} %scl_package php-pecl-amqp @@ -29,17 +33,18 @@ Summary: Communicate with any AMQP compliant server Name: %{?sub_prefix}php-pecl-amqp Version: 1.9.3 -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;')}} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/amqp Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 5.3 BuildRequires: %{?scl_prefix}php-pear #BuildRequires: php-debuginfo valgrind gdb # Upstream requires 0.5.2, set 0.8.0 to ensure "last" is used. -%if 0%{?fedora} >= 23 +%if 0%{?fedora} >= 23 || 0%{?rhel} >= 7 BuildRequires: librabbitmq-devel >= 0.8.0 Requires: librabbitmq%{?_isa} >= %{buildver} %else @@ -271,7 +276,7 @@ exit $ret %endif -%if 0%{?fedora} < 24 +%if 0%{?fedora} < 24 && 0%{?rhel} < 8 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -306,6 +311,9 @@ fi %changelog +* Mon May 14 2018 Remi Collet - 1.9.3-2 +- rebuild for librabbitmq 0.8 in RHEL 7.5 + * Thu Oct 19 2017 Remi Collet - 1.9.3-1 - Update to 1.9.3 (stable) -- cgit