summaryrefslogtreecommitdiffstats
path: root/php-pecl-pq.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-08 15:11:05 +0200
committerRemi Collet <remi@php.net>2025-07-08 15:11:05 +0200
commit8f81f31671945fa24e3ad1752d27056d249cc476 (patch)
treeae62b40ed2c9398e5a069b0961e1db508f20972e /php-pecl-pq.spec
parent1bcdab02f576f0224ce04e6ed649312aa7c85395 (diff)
re-license spec file to CECILL-2.1HEADmaster
add patch for test suite with PHP 8.5 from https://github.com/m6w6/ext-pq/pull/53
Diffstat (limited to 'php-pecl-pq.spec')
-rw-r--r--php-pecl-pq.spec17
1 files changed, 13 insertions, 4 deletions
diff --git a/php-pecl-pq.spec b/php-pecl-pq.spec
index adad0ab..d3a2006 100644
--- a/php-pecl-pq.spec
+++ b/php-pecl-pq.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-pq
#
-# Copyright (c) 2014-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2014-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -23,11 +23,13 @@
Summary: PostgreSQL client library (libpq) binding
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 2.2.3
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?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: 53.patch
+
BuildRequires: libpq-devel > 9
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -74,6 +76,8 @@ sed -e '/role="test"/d' \
-i package.xml
cd %{sources}
+%patch -P0 -p1 -b .pr53
+
# 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
@@ -221,6 +225,11 @@ exit $RET
%changelog
+* Tue Jul 8 2025 Remi Collet <remi@remirepo.net> - 2.2.3-3
+- re-license spec file to CECILL-2.1
+- add patch for test suite with PHP 8.5 from
+ https://github.com/m6w6/ext-pq/pull/53
+
* Fri Feb 16 2024 Remi Collet <remi@remirepo.net> - 2.2.3-2
- F40: fix build dependencies