summaryrefslogtreecommitdiffstats
path: root/php-pecl-scoutapm.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-11-06 12:32:48 +0100
committerRemi Collet <remi@remirepo.net>2019-11-06 12:32:48 +0100
commitbb1f286578c846fb4200e306dde8b5d01edee002 (patch)
tree2d8c41df4587e18ec9e14bc06f52f9d77776a694 /php-pecl-scoutapm.spec
parentc308a8ed1b71ddb1c0cf0f71c7aad7b718323dc2 (diff)
test build with upstream patch for https://github.com/scoutapp/scout-apm-php-ext/issues/47
Diffstat (limited to 'php-pecl-scoutapm.spec')
-rw-r--r--php-pecl-scoutapm.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-pecl-scoutapm.spec b/php-pecl-scoutapm.spec
index fcfb039..3ae0ac2 100644
--- a/php-pecl-scoutapm.spec
+++ b/php-pecl-scoutapm.spec
@@ -18,11 +18,13 @@
Summary: Native Extension Component for ScoutAPM's PHP Agent
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.0.0
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
License: PHP
URL: http://pecl.php.net/package/%{pecl_name}
+Patch0: %{pecl_name}-upstream.patch
+
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel > 7.1
BuildRequires: %{?scl_prefix}php-pear
@@ -89,6 +91,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
pushd NTS
+%patch0 -p1
+
: Check version
extver=$(sed -n '/#define PHP_SCOUTAPM_VERSION /{s/.* "//;s/".*$//;p}' zend_scoutapm.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
@@ -221,6 +225,10 @@ TEST_PHP_EXECUTABLE=%{__ztsphp} \
%changelog
+* Wed Nov 6 2019 Remi Collet <remi@remirepo.net> - 1.0.0-2
+- test build with upstream patch for
+ https://github.com/scoutapp/scout-apm-php-ext/issues/47
+
* Mon Nov 4 2019 Remi Collet <remi@remirepo.net> - 1.0.0-1
- update to 1.0.0