|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Fedora spec file for php-pecl-http
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2012-2019 Remi Collet
|
|
|
|
|
# Copyright (c) 2012-2022 Remi Collet
|
|
|
|
|
# License: CC-BY-SA
|
|
|
|
|
# http://creativecommons.org/licenses/by-sa/4.0/
|
|
|
|
|
#
|
|
|
|
@ -14,7 +14,7 @@
|
|
|
|
|
%global proj_name pecl_http
|
|
|
|
|
%global pecl_name http
|
|
|
|
|
%global with_zts 0%{?__ztsphp:1}
|
|
|
|
|
# after 20-iconv 40-propro 40-raphf
|
|
|
|
|
# after 20-iconv 40-raphf
|
|
|
|
|
%global ini_name 50-%{pecl_name}.ini
|
|
|
|
|
%ifarch %{arm} aarch64
|
|
|
|
|
# Test suite disabled because of erratic results on slow ARM (timeout)
|
|
|
|
@ -23,24 +23,24 @@
|
|
|
|
|
%global with_tests 0%{!?_without_tests:1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global upstream_version 3.2.1
|
|
|
|
|
%global upstream_version 4.2.3
|
|
|
|
|
#global upstream_prever RC1
|
|
|
|
|
|
|
|
|
|
Name: php-pecl-http
|
|
|
|
|
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Extended HTTP support
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
URL: http://pecl.php.net/package/pecl_http
|
|
|
|
|
Source0: http://pecl.php.net/get/%{proj_name}-%{upstream_version}%{?upstream_prever}.tgz
|
|
|
|
|
URL: https://pecl.php.net/package/pecl_http
|
|
|
|
|
Source0: https://pecl.php.net/get/%{proj_name}-%{upstream_version}%{?upstream_prever}.tgz
|
|
|
|
|
|
|
|
|
|
# From http://www.php.net/manual/en/http.configuration.php
|
|
|
|
|
Source1: %{proj_name}.ini
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: php-devel >= 7
|
|
|
|
|
BuildRequires: php-hash
|
|
|
|
|
BuildRequires: php-devel >= 8.0
|
|
|
|
|
BuildRequires: php-iconv
|
|
|
|
|
BuildRequires: php-spl
|
|
|
|
|
BuildRequires: php-pear
|
|
|
|
@ -48,8 +48,7 @@ BuildRequires: pcre-devel
|
|
|
|
|
BuildRequires: zlib-devel >= 1.2.0.4
|
|
|
|
|
BuildRequires: curl-devel >= 7.18.2
|
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
|
BuildRequires: php-pecl-propro-devel >= 1.0.0
|
|
|
|
|
BuildRequires: php-pecl-raphf-devel >= 1.1.0
|
|
|
|
|
BuildRequires: php-pecl-raphf-devel >= 2
|
|
|
|
|
BuildRequires: libevent-devel >= 1.4
|
|
|
|
|
BuildRequires: brotli-devel >= 1.0
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
@ -58,13 +57,13 @@ BuildRequires: openssl-devel
|
|
|
|
|
|
|
|
|
|
Requires: php(zend-abi) = %{php_zend_api}
|
|
|
|
|
Requires: php(api) = %{php_core_api}
|
|
|
|
|
Requires: php-hash%{?_isa}
|
|
|
|
|
Requires: php-iconv%{?_isa}
|
|
|
|
|
Requires: php-spl%{?_isa}
|
|
|
|
|
Requires: php-pecl(propro)%{?_isa} >= 1.0.0
|
|
|
|
|
Requires: php-pecl(raphf)%{?_isa} >= 1.1.0
|
|
|
|
|
Requires: php-raphf%{?_isa} >= 2
|
|
|
|
|
# V1 don't support PHP 5.6 https://bugs.php.net/66879
|
|
|
|
|
Obsoletes: php-pecl-http1 < 2
|
|
|
|
|
# to allow migration from PHP 7 (last is 2.1.0)
|
|
|
|
|
Obsoletes: php-pecl-propro < 2.2
|
|
|
|
|
|
|
|
|
|
Provides: php-pecl(%{proj_name}) = %{version}
|
|
|
|
|
Provides: php-pecl(%{proj_name})%{?_isa} = %{version}
|
|
|
|
@ -108,8 +107,6 @@ sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
|
|
|
|
|
|
|
|
|
|
mv %{proj_name}-%{upstream_version}%{?upstream_prever} NTS
|
|
|
|
|
cd NTS
|
|
|
|
|
sed -e '/WORDS_BIGENDIAN/s/if /ifdef /' -i src/php_http_etag.c
|
|
|
|
|
|
|
|
|
|
extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h)
|
|
|
|
|
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?gh_date:dev}"; then
|
|
|
|
|
: Error: Upstream HTTP version is now ${extver}, expecting %{upstream_version}%{?upstream_prever}%{?gh_date:dev}.
|
|
|
|
@ -191,10 +188,11 @@ rm ?TS/tests/client027.phpt
|
|
|
|
|
# sometime on s390x
|
|
|
|
|
rm ?TS/tests/client016.phpt
|
|
|
|
|
rm ?TS/tests/client028.phpt
|
|
|
|
|
rm ?TS/tests/etag001.phpt
|
|
|
|
|
|
|
|
|
|
# Shared needed extensions
|
|
|
|
|
modules=""
|
|
|
|
|
for mod in hash iconv propro raphf; do
|
|
|
|
|
for mod in iconv raphf; do
|
|
|
|
|
if [ -f %{php_extdir}/${mod}.so ]; then
|
|
|
|
|
modules="$modules -d extension=${mod}.so"
|
|
|
|
|
fi
|
|
|
|
@ -255,6 +253,87 @@ NO_INTERACTION=1 \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 4.2.3-3
|
|
|
|
|
- Rebuilt for ICU 71.1
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 10 2022 Remi Collet <remi@remirepo.net> - 4.2.3-1
|
|
|
|
|
- update to 4.2.3
|
|
|
|
|
|
|
|
|
|
* Fri Feb 25 2022 Remi Collet <remi@remirepo.net> - 4.2.2-1
|
|
|
|
|
- update to 4.2.2
|
|
|
|
|
|
|
|
|
|
* Fri Feb 25 2022 Remi Collet <remi@remirepo.net> - 4.2.1-5
|
|
|
|
|
- add upstream patch for recent libcurl
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 28 2021 Remi Collet <remi@remirepo.net> - 4.2.1-3
|
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Changes/php81
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 4.2.1-2
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Mon Sep 13 2021 Remi Collet <remi@remirepo.net> - 4.2.1-1
|
|
|
|
|
- update to 4.2.1
|
|
|
|
|
|
|
|
|
|
* Wed Sep 1 2021 Remi Collet <remi@remirepo.net> - 4.2.0-1
|
|
|
|
|
- update to 4.2.0
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 2021 Remi Collet <remi@remirepo.net> - 4.1.0-4
|
|
|
|
|
- ignore 2 more tests failing with libcurl 7.77
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu May 20 2021 Pete Walter <pwalter@fedoraproject.org> - 4.1.0-3
|
|
|
|
|
- Rebuild for ICU 69
|
|
|
|
|
|
|
|
|
|
* Wed May 19 2021 Pete Walter <pwalter@fedoraproject.org> - 4.1.0-2
|
|
|
|
|
- Rebuild for ICU 69
|
|
|
|
|
|
|
|
|
|
* Mon Apr 19 2021 Remi Collet <remi@remirepo.net> - 4.1.0-1
|
|
|
|
|
- update to 4.1.0
|
|
|
|
|
|
|
|
|
|
* Thu Mar 4 2021 Remi Collet <remi@remirepo.net> - 4.0.0-1
|
|
|
|
|
- update to 4.0.0 (stable)
|
|
|
|
|
- raise dependency on PHP 8.0
|
|
|
|
|
- drop dependency on propro extension
|
|
|
|
|
- obsolete propro to allow upgrade from 7.x
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 14 2021 Remi Collet <remi@remirepo.net> - 3.2.4-1
|
|
|
|
|
- update to 3.2.4
|
|
|
|
|
|
|
|
|
|
* Tue Sep 15 2020 Remi Collet <remi@remirepo.net> - 3.2.3-4
|
|
|
|
|
- rebuild for new libevent
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 15 2020 Pete Walter <pwalter@fedoraproject.org> - 3.2.3-2
|
|
|
|
|
- Rebuild for ICU 67
|
|
|
|
|
|
|
|
|
|
* Fri Mar 27 2020 Remi Collet <remi@remirepo.net> - 3.2.3-1
|
|
|
|
|
- update to 3.2.3
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Nov 01 2019 Pete Walter <pwalter@fedoraproject.org> - 3.2.2-2
|
|
|
|
|
- Rebuild for ICU 65
|
|
|
|
|
|
|
|
|
|
* Thu Oct 24 2019 Remi Collet <remi@remirepo.net> - 3.2.2-1
|
|
|
|
|
- update to 3.2.2
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 3.2.1-3
|
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Changes/php74
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|