summaryrefslogtreecommitdiffstats
path: root/php-pecl-json-post.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-24 11:15:32 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-24 11:15:32 +0200
commit538590813b0eb12706e4174330a9fc2922011a46 (patch)
treee40a6856e830711064639cfa9fb27c834d26a5ef /php-pecl-json-post.spec
parent1156948a0bbc11eaa80f9f6de1a91a616aa97072 (diff)
php-pecl-json-post: fix for php7
Diffstat (limited to 'php-pecl-json-post.spec')
-rw-r--r--php-pecl-json-post.spec9
1 files changed, 8 insertions, 1 deletions
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 <remi@fedoraproject.org> - 1.0.0-5
+- add upstream patch for PHP 7
+
* Wed Jul 22 2015 Remi Collet <remi@fedoraproject.org> - 1.0.0-4
- rebuild against php 7.0.0beta2