summaryrefslogtreecommitdiffstats
path: root/php-pecl-pq.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2024-01-29 17:18:45 +0100
committerRemi Collet <remi@php.net>2024-01-29 17:18:45 +0100
commit41cdf652f6ebf992c05b35f885859fb1e924f604 (patch)
tree663b5990e7c46ccea2c3a693f2699930c226b90b /php-pecl-pq.spec
parent0141220a26edbbf0225e327d3ea28f47414737c2 (diff)
Fix incompatible pointer types using patch from
https://github.com/m6w6/ext-pq/pull/52
Diffstat (limited to 'php-pecl-pq.spec')
-rw-r--r--php-pecl-pq.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/php-pecl-pq.spec b/php-pecl-pq.spec
index f53e23f..217ef0e 100644
--- a/php-pecl-pq.spec
+++ b/php-pecl-pq.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-pq
#
-# Copyright (c) 2014-2023 Remi Collet
+# Copyright (c) 2014-2024 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -23,11 +23,13 @@
Summary: PostgreSQL client library (libpq) binding
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 2.2.2
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
License: BSD-2-Clause
URL: https://pecl.php.net/package/%{pecl_name}
+Patch0: %{pecl_name}-build.patch
+
%if 0%{?fedora} >= 29 && 0%{?rhel} >= 8
BuildRequires: libpq-devel > 9
%else
@@ -78,6 +80,8 @@ sed -e '/role="test"/d' \
-i package.xml
cd %{sources}
+%patch -P0 -p1
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PQ_VERSION/{s/.* "//;s/".*$//;p}' php_pq.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
@@ -246,6 +250,10 @@ exit $RET
%changelog
+* Mon Jan 29 2024 Remi Collet <remi@remirepo.net> - 2.2.2-5
+- Fix incompatible pointer types using patch from
+ https://github.com/m6w6/ext-pq/pull/52
+
* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 2.2.2-2
- rebuild for PHP 8.3.0RC1