From ac722796c373e22a3098bb6f66ef15c1b476625e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 22 Nov 2017 13:34:41 +0100 Subject: add upstream patch for PHP 7.2 --- php-pecl-timecop.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'php-pecl-timecop.spec') diff --git a/php-pecl-timecop.spec b/php-pecl-timecop.spec index 46877f7..e616c2f 100644 --- a/php-pecl-timecop.spec +++ b/php-pecl-timecop.spec @@ -23,12 +23,14 @@ Summary: Time travel and freezing extension Name: %{?sub_prefix}php-pecl-timecop Version: 1.2.8 -Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: https://github.com/hnw/php-timecop/commit/5492f345a2dbe2f2e0610e088a57283c25270e3b.patch + BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear @@ -90,6 +92,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_TIMECOP_VERSION/{s/.* "//;s/".*$//;p}' php_timecop.h) @@ -232,6 +235,9 @@ fi %changelog +* Wed Nov 22 2017 Remi Collet - 1.2.8-3 +- add upstream patch for PHP 7.2 + * Tue Jul 18 2017 Remi Collet - 1.2.8-2 - rebuild for PHP 7.2.0beta1 new API -- cgit