Compare commits

..

26 Commits
f25 ... master

Author SHA1 Message Date
Fedora Release Engineering
fdb67cb97f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 09:44:53 +00:00
Remi Collet
039a3ecb43 ignore 1 more test
(cherry picked from commit 0a70d3e3c4)
2019-06-07 16:21:53 +02:00
Remi Collet
222ededb69 ignore 2 more tests 2019-06-07 16:12:19 +02:00
Remi Collet
bea87bd10f v3.2.1 2019-06-07 16:01:34 +02:00
Remi Collet
6dc6a556ff ignore failed test with recent libcurl
reported as https://github.com/m6w6/ext-http/issues/84
2019-02-04 14:14:07 +01:00
Fedora Release Engineering
8d60cb5aa9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 03:17:38 +00:00
Remi Collet
ec71650323 ignore tests with erratic results 2018-10-11 10:42:47 +02:00
Remi Collet
7252e06e8a Rebuild for https://fedoraproject.org/wiki/Changes/php73 2018-10-11 10:35:38 +02:00
Remi Collet
19123e017d v3.2.0 2018-07-19 14:18:41 +02:00
Fedora Release Engineering
3cd61b0f7b - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-13 21:52:37 +00:00
Pete Walter
09cae729c9 Rebuild for ICU 62 2018-07-10 18:38:53 +01:00
Pete Walter
c50b42a874 Rebuild for ICU 61.1 2018-04-30 20:37:29 +01:00
Pete Walter
21bc2dbd06 Rebuild for ICU 61.1 2018-04-30 09:54:34 +01:00
Remi Collet
cfd141028e update to 3.2.0RC1
enable brotli compression support
2018-04-10 10:30:19 +02:00
Remi Collet
7654ac2922 rebuild for libevent 2018-02-15 12:39:57 +01:00
Fedora Release Engineering
47290ea5a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 04:12:41 +00:00
Remi Collet
07ede552f2 undefine _strict_symbol_defs_build 2018-01-29 10:07:58 +01:00
Pete Walter
75f106723d Rebuild for ICU 60.1 2017-11-30 20:42:38 +00:00
Remi Collet
73a89e5285 v3.1.1RC1 2017-10-03 10:15:21 +02:00
Remi Collet
42b92bf0ac v3.1.1RC1 2017-10-03 10:14:59 +02:00
Remi Collet
b99064bb08 rebuild for https://fedoraproject.org/wiki/Changes/php72 2017-10-03 09:46:02 +02:00
Fedora Release Engineering
f99c8cbc47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 05:57:03 +00:00
Fedora Release Engineering
9ba98b1a5a - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 08:04:18 +00:00
Remi Collet
572a49493e drop dependency on libidn, only use libicu 2017-05-09 13:18:55 +02:00
Remi Collet
5a70fd1a95 add missing BR on openssl-devel for new libcurl (FTBFS from Koschei) 2017-04-28 07:01:03 +02:00
Fedora Release Engineering
cd13fc7ae6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 07:01:50 +00:00
3 changed files with 110 additions and 19 deletions

4
.gitignore vendored
View File

@ -12,3 +12,7 @@ clog
/pecl_http-3.0.1.tgz
/pecl_http-3.1.0.tgz
/pecl_http-2.6.0.tgz
/pecl_http-3.1.1RC1.tgz
/pecl_http-3.2.0RC1.tgz
/pecl_http-3.2.0.tgz
/pecl_http-3.2.1.tgz

View File

@ -1,37 +1,44 @@
# Fedora spec file for php-pecl-http
#
# Copyright (c) 2012-2016 Remi Collet
# Copyright (c) 2012-2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
# we don't want -z defs linker flag
%undefine _strict_symbol_defs_build
# The project is pecl_http but the extension is only http
%global proj_name pecl_http
%global pecl_name http
%global with_zts 0%{?__ztsphp:1}
# after 20-iconv 40-propro 40-raphf
%global ini_name 50-%{pecl_name}.ini
%ifarch %{arm}
%ifarch %{arm} aarch64
# Test suite disabled because of erratic results on slow ARM (timeout)
%global with_tests 0%{?_with_tests:1}
%else
%global with_tests 0%{!?_without_tests:1}
%endif
%global upstream_version 3.2.1
#global upstream_prever RC1
Name: php-pecl-http
Version: 3.1.0
Release: 1%{?dist}
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 2%{?dist}
Summary: Extended HTTP support
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/pecl_http
Source0: http://pecl.php.net/get/%{proj_name}-%{version}%{?prever}.tgz
Source0: http://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: gcc
BuildRequires: php-devel >= 7
BuildRequires: php-hash
BuildRequires: php-iconv
@ -40,12 +47,14 @@ BuildRequires: php-pear
BuildRequires: pcre-devel
BuildRequires: zlib-devel >= 1.2.0.4
BuildRequires: curl-devel >= 7.18.2
BuildRequires: libidn-devel
BuildRequires: libicu-devel
BuildRequires: php-pecl-propro-devel >= 1.0.0
BuildRequires: php-pecl-raphf-devel >= 1.1.0
BuildRequires: libevent-devel >= 1.4
BuildRequires: brotli-devel >= 1.0
BuildRequires: pkgconfig
# only needed in F27+
BuildRequires: openssl-devel
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
@ -57,12 +66,12 @@ Requires: php-pecl(raphf)%{?_isa} >= 1.1.0
# V1 don't support PHP 5.6 https://bugs.php.net/66879
Obsoletes: php-pecl-http1 < 2
Provides: php-pecl(%{proj_name}) = %{version}%{?prever}
Provides: php-pecl(%{proj_name})%{?_isa} = %{version}%{?prever}
Provides: php-pecl(%{pecl_name}) = %{version}%{?prever}
Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}%{?prever}
Provides: php-%{pecl_name} = %{version}%{?prever}
Provides: php-%{pecl_name}%{?_isa} = %{version}%{?prever}
Provides: php-pecl(%{proj_name}) = %{version}
Provides: php-pecl(%{proj_name})%{?_isa} = %{version}
Provides: php-pecl(%{pecl_name}) = %{version}
Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
Provides: php-%{pecl_name} = %{version}
Provides: php-%{pecl_name}%{?_isa} = %{version}
%description
@ -84,7 +93,6 @@ Documentation : https://mdref.m6w6.name/http
%package devel
Summary: Extended HTTP support developer files (header)
Group: Development/Libraries
Requires: php-pecl-http%{?_isa} = %{version}-%{release}
Requires: php-devel%{?_isa} >= 5.3.0
Obsoletes: php-pecl-http1-devel < 2
@ -98,13 +106,13 @@ These are the files needed to compile programs using HTTP extension.
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
mv %{proj_name}-%{version}%{?prever} NTS
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%{version}%{?prever}"; then
: Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}.
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}.
: Update the pdover macro and rebuild.
exit 1
fi
@ -124,11 +132,16 @@ peclconf() {
--with-http \
--with-http-zlib-dir=%{_prefix} \
--with-http-libcurl-dir=%{_prefix} \
--with-http-libidn-dir=%{_prefix} \
--without-http-libidn-dir \
--without-http-libidn2-dir \
--without-http-libidnkit-dir \
--without-http-libidnkit2-dir \
--with-http-libicu-dir=%{_prefix} \
--with-http-libevent-dir=%{_prefix} \
--with-http-libbrotli-dir=%{_prefix} \
--with-libdir=%{_lib} \
--with-php-config=$1
grep IDNA config.h
}
cd NTS
%{_bindir}/phpize
@ -171,6 +184,14 @@ done
export REPORT_EXIT_STATUS=1
export SKIP_ONLINE_TESTS=1
: ignore tests with erratic results
rm ?TS/tests/client021.phpt
rm ?TS/tests/client022.phpt
rm ?TS/tests/client027.phpt
# sometime on s390x
rm ?TS/tests/client016.phpt
rm ?TS/tests/client028.phpt
# Shared needed extensions
modules=""
for mod in hash iconv propro raphf; do
@ -234,6 +255,72 @@ NO_INTERACTION=1 \
%changelog
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Jun 7 2019 Remi Collet <remi@remirepo.net> - 3.2.1-1
- update to 3.2.1
* Mon Feb 4 2019 Remi Collet <remi@remirepo.net> - 3.2.0-3
- ignore failed test with recent libcurl
reported as https://github.com/m6w6/ext-http/issues/84
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Oct 11 2018 Remi Collet <remi@remirepo.net> - 3.2.0-2
- Rebuild for https://fedoraproject.org/wiki/Changes/php73
* Thu Jul 19 2018 Remi Collet <remi@remirepo.net> - 3.2.0-1
- update to 3.2.0 (php 7, stable)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0~RC1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 3.2.0~RC1-4
- Rebuild for ICU 62
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 3.2.0~RC1-3
- Rebuild for ICU 61.1
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 3.2.0~RC1-2
- Rebuild for ICU 61.1
* Tue Apr 10 2018 Remi Collet <remi@remirepo.net> - 3.2.0~RC1-1
- update to 3.2.0RC1
- enable brotli compression support
* Thu Feb 15 2018 Remi Collet <remi@remirepo.net> - 3.1.1~RC1-5
- rebuild for libevent
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1~RC1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 29 2018 Remi Collet <remi@remirepo.net> - 3.1.1~RC1-3
- undefine _strict_symbol_defs_build
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 3.1.1~RC1-2
- Rebuild for ICU 60.1
* Tue Oct 03 2017 Remi Collet <remi@fedoraproject.org> - 3.1.1~RC1-1
- update to 3.1.1RC1
- rebuild for https://fedoraproject.org/wiki/Changes/php72
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Tue May 9 2017 Remi Collet <remi@remirepo.net> - 3.1.0-4
- drop dependency on libidn, only use libicu
* Fri Apr 28 2017 Remi Collet <remi@fedoraproject.org> - 3.1.0-3
- add missing BR on openssl-devel for new libcurl (FTBFS from Koschei)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 12 2016 Remi Collet <remi@fedoraproject.org> - 3.1.0-1
- Update to 3.1.0 (php 7, stable)

View File

@ -1 +1 @@
SHA512 (pecl_http-3.1.0.tgz) = 1c272aa476106bb61848f175f0ba6715b3d8928f70cdac1a673cc87c2dc780dff5434a3bc595d5e8a1ef7b847a1d2e214f9e9ae80b8b5d1f80a299febc85b0ea
SHA512 (pecl_http-3.2.1.tgz) = e67d4b32ba6f524e3fcf65f5497b94275e1a4a14fce97c57afe366369f368b3acdbedf364ed73cf983fb2c5f57f498adaa1100e7c936f11cbc5de1caedad7b51