summaryrefslogtreecommitdiffstats
path: root/php-pecl-awscrt.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-02-13 13:53:45 +0100
committerRemi Collet <remi@php.net>2026-02-13 13:53:45 +0100
commit5fcf01078ff5669aa7a0ae39b6ac1054063e86cc (patch)
tree68dfb530a2e5d63ffcb7316122a3e44408ffe503 /php-pecl-awscrt.spec
parent4632977d7e8b903a45ef697e9c9255401a7a7b21 (diff)
workround build failure with cmake 4HEADmaster
https://github.com/awslabs/aws-crt-php/issues/122 re-license spec file to CECILL-2.1
Diffstat (limited to 'php-pecl-awscrt.spec')
-rw-r--r--php-pecl-awscrt.spec24
1 files changed, 19 insertions, 5 deletions
diff --git a/php-pecl-awscrt.spec b/php-pecl-awscrt.spec
index 8628bd5..2e9503f 100644
--- a/php-pecl-awscrt.spec
+++ b/php-pecl-awscrt.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-awscrt
#
-# Copyright (c) 2021-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2021-2026 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -21,7 +21,7 @@
Summary: AWS Common Runtime PHP bindings
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 1.2.7
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}
# extension is Apache-2.0
# see LICENSE* and THIRD-PARTY-LICENSES.txt for bundled libraries
# ittapi, ittnotify.h: GPL-2.0-only OR BSD-3-Clause
@@ -44,7 +44,7 @@ BuildRequires: openssl-devel
%if 0%{?fedora} >= 41
BuildRequires: openssl-devel-engine
%endif
-BuildRequires: cmake
+BuildRequires: cmake >= 3.5
BuildRequires: php-nikic-php-parser4
# List from config.m4
@@ -87,7 +87,16 @@ sed -e 's/role="test"/role="src"/' \
-e '/"README.md"/s/role="src"/role="doc"/'\
-i package.xml
+# Workaround for cmake4
+find . \
+ -name CMakeLists.txt \
+ -exec sed -e '/cmake_minimum_required/s/3../3.5/' -i {} \; \
+ -print
+
pushd %{sources}
+# avoid gen_stub
+touch ext/*_arginfo.h
+
%patch -P0 -p1 -b .phpparser
%patch -P1 -p1 -b .fixbuild
@@ -202,6 +211,11 @@ done
%changelog
+* Fri Feb 13 2026 Remi Collet <remi@remirepo.net> - 1.2.7-2
+- workround build failure with cmake 4
+ https://github.com/awslabs/aws-crt-php/issues/122
+- re-license spec file to CECILL-2.1
+
* Mon Oct 21 2024 Remi Collet <remi@remirepo.net> - 1.2.7-1
- update to 1.2.7
- fix out of sources tree using patch from