From 7d72f710a3b59940dc70deb97e5afc6e7f46489b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 19 Sep 2020 08:26:14 +0200 Subject: update to 2.2.1 (beta) enable upstream test suite --- php-pecl-xhprof.spec | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) (limited to 'php-pecl-xhprof.spec') diff --git a/php-pecl-xhprof.spec b/php-pecl-xhprof.spec index 5115f84..4add7cd 100644 --- a/php-pecl-xhprof.spec +++ b/php-pecl-xhprof.spec @@ -9,6 +9,9 @@ # # Please, preserve the changelog entries # + +%bcond_without tests + %if 0%{?scl:1} %global sub_prefix %{scl_prefix} %scl_package php-pecl-xhprof @@ -22,7 +25,7 @@ %global ini_name 40-%{pecl_name}.ini Name: %{?sub_prefix}php-pecl-xhprof -Version: 2.2.0 +Version: 2.2.1 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: PHP extension for XHProf, a Hierarchical Profiler @@ -48,19 +51,16 @@ Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -%if "%{php_version}" > "7.2" -Obsoletes: php72u-pecl-%{pecl_name} <= %{version} -Obsoletes: php72w-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "7.3" Obsoletes: php73-pecl-%{pecl_name} <= %{version} -Obsoletes: php73w-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} -Obsoletes: php74w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "8.0" +Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif %endif @@ -117,6 +117,16 @@ sed -e 's/role="php"/role="src"/' \ %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ -i package.xml +pushd %{pecl_name}-%{version}/extension +sed -e '/XHPROF_VERSION/s/2.2.1-dev/2.2.1/' -i php_xhprof.h +# Sanity check, really often broken +extver=$(sed -n '/#define XHPROF_VERSION/{s/.* "//;s/".*$//;p}' php_xhprof.h) +if test "x${extver}" != "x%{version}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}. + exit 1 +fi +popd + # Extension configuration file cat >%{ini_name} < - 2.2.1-1 +- update to 2.2.1 (beta) +- enable upstream test suite + * Sat Apr 11 2020 Remi Collet - 2.2.0-1 - update to 2.2.0 -- cgit