summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-09-02 15:53:24 +0200
committerRemi Collet <remi@php.net>2025-09-02 15:53:24 +0200
commitdbe0b8544fdd9338f27c141502f246d9167852bd (patch)
tree562cb808c792b1099ab98e605b98d19b87f92e4b
parent767831d080fc89e65474a670b81f755c1607349e (diff)
re-license spec file to CECILL-2.1HEADmaster
disable test suite on aarch64
-rw-r--r--php-pecl-http-message.spec36
1 files changed, 17 insertions, 19 deletions
diff --git a/php-pecl-http-message.spec b/php-pecl-http-message.spec
index f9a84f5..5c20493 100644
--- a/php-pecl-http-message.spec
+++ b/php-pecl-http-message.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-http-message
#
-# Copyright (c) 2019-2024 Remi Collet
-# License: CC-BY-SA
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2019-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -13,7 +13,12 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name http_message
-%global with_tests 0%{!?_without_tests:1}
+%ifarch aarch64
+# strange failure, need investigation
+%bcond_with tests
+%else
+%bcond_without tests
+%endif
# after 40-psr.ini
%global ini_name 50-%{pecl_name}.ini
#global prever RC2
@@ -21,7 +26,7 @@
Summary: PSR-7 HTTP Message implementation
Name: %{?sub_prefix}php-pecl-http-message
Version: 1.0.0
-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;')}}
License: MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
@@ -73,7 +78,7 @@ These are the files needed to compile programs using %{name}.
mv %{pecl_name}-%{version}%{?prever} NTS
# Don't install/register tests
-%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml}
+sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
cd NTS
%patch -P1 -p1 -b .pr7
@@ -153,7 +158,7 @@ cd NTS
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
-%if %{with_tests}
+%if %{with tests}
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \
@@ -167,23 +172,12 @@ cd ../ZTS
%{__ztsphp} $OPT \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
-
-%if %{with_tests}
-: Ignore tests using CGI
-rm -r tests/Emitter
-
-: Upstream test suite for NTS extension
-TEST_PHP_EXECUTABLE=%{__ztsphp} \
-TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \
-REPORT_EXIT_STATUS=1 \
-%{__ztsphp} -n run-tests.php -q --show-diff
-%endif
%endif
%files
%doc %{pecl_docdir}/%{pecl_name}
-%{?_licensedir:%license NTS/LICENSE}
+%license NTS/LICENSE
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -205,6 +199,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Sep 2 2025 Remi Collet <remi@remirepo.net> - 1.0.0-3
+- re-license spec file to CECILL-2.1
+- disable test suite on aarch64
+
* Thu Aug 22 2024 Remi Collet <remi@remirepo.net> - 1.0.0-2
- cleanup