From 52b25c7338e1b55ba696b281f9227c437f2d0968 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 25 Oct 2018 14:36:58 +0200 Subject: add upstream patches for PHP 7.3 --- php-pecl-v8js.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'php-pecl-v8js.spec') diff --git a/php-pecl-v8js.spec b/php-pecl-v8js.spec index 9955bac..f23b7c2 100644 --- a/php-pecl-v8js.spec +++ b/php-pecl-v8js.spec @@ -20,19 +20,20 @@ Summary: V8 Javascript Engine for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 2.1.0 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: PHP -Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: %{pecl_name}-upstream.patch + # See http://pkgs.fedoraproject.org/cgit/rpms/v8.git/tree/v8.spec#n74 ExclusiveArch: %{ix86} x86_64 %{arm} ppc mipsel mips64el BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear -# because of https://bugzilla.redhat.com/1378889 -BuildRequires: v8-devel >= 5.2.258-7 +# from config.m4 for full features (else 4.6.76) +BuildRequires: v8-devel >= 1:6.5.143 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -59,6 +60,10 @@ Obsoletes: php71w-pecl-%{pecl_name} <= %{version} Obsoletes: php72u-pecl-%{pecl_name} <= %{version} Obsoletes: php72w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.3" +Obsoletes: php73u-pecl-%{pecl_name} <= %{version} +Obsoletes: php73w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -86,6 +91,7 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 -b .upstream # Sanity check, really often broken extver=$(sed -n '/#define PHP_V8JS_VERSION/{s/.* "//;s/".*$//;p}' php_v8js_macros.h) @@ -238,6 +244,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Oct 25 2018 Remi Collet - 2.1.0-3 +- add upstream patches for PHP 7.3 + * Fri Sep 7 2018 Remi Collet - 2.1.0-2 - rebuild -- cgit