summaryrefslogtreecommitdiffstats
path: root/php-pecl-timecop.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-11-22 13:34:41 +0100
committerRemi Collet <remi@remirepo.net>2017-11-22 13:34:41 +0100
commitac722796c373e22a3098bb6f66ef15c1b476625e (patch)
tree4bf7d867ec28667024deb298d599c400c66b4307 /php-pecl-timecop.spec
parent60ed72f7b76eabe55179d5c86e999a1b36a654d4 (diff)
add upstream patch for PHP 7.2
Diffstat (limited to 'php-pecl-timecop.spec')
-rw-r--r--php-pecl-timecop.spec8
1 files changed, 7 insertions, 1 deletions
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 <remi@remirepo.net> - 1.2.8-3
+- add upstream patch for PHP 7.2
+
* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 1.2.8-2
- rebuild for PHP 7.2.0beta1 new API