summaryrefslogtreecommitdiffstats
path: root/php-pecl-amqp.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-06-17 14:12:31 +0200
committerRemi Collet <remi@php.net>2022-06-17 14:12:31 +0200
commit3e68bad1ec3ef2dcdc73663c1d9b73e803322fc2 (patch)
tree3757db5ec5a646ae650943a858d907bf2553afde /php-pecl-amqp.spec
parent9839d6d032f755b3805171294a1e5ff1a1f6a4bf (diff)
add patch for test suite with 8.2 from
https://github.com/php-amqp/php-amqp/pull/418
Diffstat (limited to 'php-pecl-amqp.spec')
-rw-r--r--php-pecl-amqp.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/php-pecl-amqp.spec b/php-pecl-amqp.spec
index cebc784..3a92fe9 100644
--- a/php-pecl-amqp.spec
+++ b/php-pecl-amqp.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-amqp
#
-# Copyright (c) 2012-2021 Remi Collet
+# Copyright (c) 2012-2022 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -32,11 +32,13 @@
Summary: Communicate with any AMQP compliant server
Name: %{?sub_prefix}php-pecl-amqp
Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}}
-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
URL: https://pecl.php.net/package/amqp
Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
+Patch0: https://patch-diff.githubusercontent.com/raw/php-amqp/php-amqp/pull/418.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 5.6
@@ -107,6 +109,8 @@ sed -e 's/role="test"/role="src"/' \
mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
cd NTS
+%patch0 -p1 -b .php82
+
sed -e 's/CFLAGS="-I/CFLAGS="-fPIC -I/' -i config.m4
# Upstream often forget to change this
@@ -228,6 +232,7 @@ done
%if %{with tests}
mkdir log run base
: Launch the RabbitMQ service
+export LANG=C.UTF-8
export RABBITMQ_PID_FILE=$PWD/run/pid
export RABBITMQ_LOG_BASE=$PWD/log
export RABBITMQ_MNESIA_BASE=$PWD/base
@@ -296,6 +301,10 @@ fi
%changelog
+* Fri Jun 17 2022 Remi Collet <remi@remirepo.net> - 1.11.0-2
+- add patch for test suite with 8.2 from
+ https://github.com/php-amqp/php-amqp/pull/418
+
* Wed Dec 1 2021 Remi Collet <remi@remirepo.net> - 1.11.0-1
- update to 1.11.0