From 538590813b0eb12706e4174330a9fc2922011a46 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 24 Jul 2015 11:15:32 +0200 Subject: php-pecl-json-post: fix for php7 --- php-pecl-json-post.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php-pecl-json-post.spec') diff --git a/php-pecl-json-post.spec b/php-pecl-json-post.spec index c437d1f..0c86beb 100644 --- a/php-pecl-json-post.spec +++ b/php-pecl-json-post.spec @@ -37,12 +37,14 @@ Summary: JSON POST handler Name: %{?sub_prefix}php-pecl-json-post Version: 1.0.0 -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Patch0: %{pecl_name}-php7.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel > 5.3 BuildRequires: %{?scl_prefix}php-json @@ -105,6 +107,8 @@ mv %{pecl_name}-%{version}%{?prever} NTS 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_JSON_POST_VERSION/{s/.* "//;s/".*$//;p}' php_json_post.h) if test "x${extver}" != "x%{version}%{?prever}"; then @@ -240,6 +244,9 @@ rm -rf %{buildroot} %changelog +* Fri Jul 24 2015 Remi Collet - 1.0.0-5 +- add upstream patch for PHP 7 + * Wed Jul 22 2015 Remi Collet - 1.0.0-4 - rebuild against php 7.0.0beta2 -- cgit