@@ -1,15 +1,16 @@
--- php5-pecl_http.spec.orig
+++ php5-pecl_http.spec
-@@ -2,20 +2,20 @@
+@@ -2,21 +2,21 @@
%define pkg_name pecl_http
%define pkg_version %(php-config --version | awk -F. '{print $1"."$2 }' 2>/dev/null || echo PHPCONFIG_NOT_FOUND)
%define php_version %(php-config --version 2>/dev/null)
-%if "%{pkg_version}" >= "5.6"
--%define my_version 2.6.0
+-%define my_version 2.4.3
+%if "%{pkg_version}" >= "7.0"
+%define my_version 3.1.0
%define upstream 1
BuildRequires: libevent-devel
+-BuildRequires: libevent2
-BuildRequires: php5-raphf
-BuildRequires: php5-propro
-Requires: php5-raphf
@@ -18,6 +19,7 @@
+BuildRequires: php7-propro
+Requires: php7-raphf
+Requires: php7-propro
++BuildRequires: libevent2 libevent2-devel
%else
%define my_version 1.7.6
%define upstream 0
@@ -28,7 +30,7 @@
Version: %{my_version}
Release: 0
#
-@@ -27,8 +27,8 @@ BuildRoot: %{_tmppath}/%{pkg_name}-%{ver
+@@ -28,8 +28,8 @@ BuildRoot: %{_tmppath}/%{pkg_name}-%{ver
#yes, PHP modules are required for build, as configure tests it's precence, to enable
#or disable features.
BuildRequires: php-devel curl-devel file-devel libevent php-iconv php-hash
@@ -38,7 +40,7 @@
#
URL: http://pecl.php.net/pecl_http
Source: http://pecl.php.net/package/pecl_http/%{pkg_name}-%{my_version}.tar.bz2
-@@ -37,7 +37,8 @@ Source1: http.ini
+@@ -38,7 +38,8 @@ Source1: http.ini
%else
Source1: http-2.4.3.ini
%endif
@@ -48,7 +50,7 @@
Summary: Extended HTTP Support
%description
-@@ -49,9 +50,9 @@ Authors:
+@@ -50,9 +51,9 @@ Authors:
Michael Wallner <mike@php.net>
%package devel
@@ -60,7 +62,7 @@
%description devel
-@@ -73,8 +74,8 @@ Authors:
+@@ -74,8 +75,8 @@ Authors:
%build
if [ -x /usr/bin/php ] ; then
export PHP_EXECUTABLE="/usr/bin/php"
@@ -71,7 +73,7 @@
else
export PHP_EXECUTABLE="/usr/local/bin/php"
fi
-@@ -118,14 +119,14 @@ unset NO_INTERACTION REPORT_EXIT_STATUS
+@@ -119,14 +120,14 @@ unset NO_INTERACTION REPORT_EXIT_STATUS
%install
%makeinstall INSTALL_ROOT=%{buildroot}
@@ -89,7 +91,7 @@
if [ -f ${file} ] ; then
sed -i -r s@"^(extension\s?=.*)"@";\1"@ ${file}
fi
-@@ -133,46 +134,20 @@ done
+@@ -134,46 +135,20 @@ done
%files
%defattr(-,root,root,-)
|