summaryrefslogtreecommitdiffstats
path: root/php-pecl-grpc.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-grpc.spec')
-rw-r--r--php-pecl-grpc.spec21
1 files changed, 14 insertions, 7 deletions
diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec
index 6ea9832..3853d12 100644
--- a/php-pecl-grpc.spec
+++ b/php-pecl-grpc.spec
@@ -11,6 +11,8 @@
%scl_package php-pecl-grpc
%endif
+## TODO: not suitable for Fedora, tons of bundled libraries
+
%global pecl_name grpc
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%if "%{php_version}" < "5.6"
@@ -18,15 +20,17 @@
%else
%global ini_name 40-%{pecl_name}.ini
%endif
+%global upstream_version 1.3.1
+%global upstream_prever RC1
Summary: General RPC framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 1.2.0
+Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?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
+Source0: http://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
BuildRequires: %{?scl_prefix}php-devel > 5.5
BuildRequires: %{?scl_prefix}php-pear
@@ -86,7 +90,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
-mv %{pecl_name}-%{version} NTS
+mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
# Don't install/register tests
sed -e 's/role="test"/role="src"/' \
@@ -95,13 +99,13 @@ sed -e 's/role="test"/role="src"/' \
cd NTS
# https://github.com/grpc/grpc/issues/10842
-sed -e '/Replace with version number/s/0.1.0/%{version}/' \
+sed -e '/Replace with version number/s/0.1.0/%{upstream_version}%{?upstream_prever}/' \
-i src/php/ext/grpc/php_grpc.h
# Sanity check, really often broken
extver=$(sed -n '/Replace/{s/.* "//;s/".*$//;p}' src/php/ext/grpc/php_grpc.h)
-if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
- : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}.
+if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.
exit 1
fi
cd ..
@@ -216,7 +220,10 @@ cd ../ZTS
%changelog
-* Thu Dec 1 2016 Remi Collet <remi@remirepo.net> - 1.2.0-1
+* Sat May 6 2017 Remi Collet <remi@remirepo.net> - 1.3.1~RC1-1
+- update to 1.3.1RC1
+
+* Tue Apr 25 2017 Remi Collet <remi@remirepo.net> - 1.2.0-1
- initial package, version 1.2.0 (stable)
- open https://github.com/grpc/grpc/issues/10842 bad version
- open https://github.com/grpc/grpc/issues/10843 build fail with gcc 7