From 5fcf01078ff5669aa7a0ae39b6ac1054063e86cc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Feb 2026 13:53:45 +0100 Subject: workround build failure with cmake 4 https://github.com/awslabs/aws-crt-php/issues/122 re-license spec file to CECILL-2.1 --- php-pecl-awscrt.spec | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'php-pecl-awscrt.spec') 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 - 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 - 1.2.7-1 - update to 1.2.7 - fix out of sources tree using patch from -- cgit