diff --git a/php-pecl-http.spec b/php-pecl-http.spec index 553841f..c89f8ff 100644 --- a/php-pecl-http.spec +++ b/php-pecl-http.spec @@ -62,6 +62,7 @@ BuildRequires: libidn-devel BuildRequires: php-pecl-propro-devel BuildRequires: php-pecl-raphf-devel BuildRequires: libevent-devel >= 1.4 +BuildRequires: pkgconfig Requires(post): %{__pecl} Requires(postun): %{__pecl} @@ -215,10 +216,11 @@ done %check -%if 0%{?fedora} > 22 -# Headers order issue with new libcurl -rm */tests/{bug69313,client020,client025}.phpt -%endif +if pkg-config libcurl --atleast-version=7.42 +then + # Headers order issue with new libcurl + rm */tests/{bug69313,client020,client025}.phpt +fi %if "%{php_version}" < "5.4" # Known failed test with 5.3.3 (need investigations) export REPORT_EXIT_STATUS=0