summaryrefslogtreecommitdiffstats
path: root/php-pecl-mysql-xdevapi.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-07-18 13:09:10 +0200
committerRemi Collet <remi@remirepo.net>2018-07-18 13:09:10 +0200
commitc60391afab65e634eab6193fb4b6b2423034509f (patch)
tree15ea8a0c5fb6ed48c29ab65f1a56d467c0728ac1 /php-pecl-mysql-xdevapi.spec
parent624c2ff0aadccacccda934bd3925d268d50bcfe2 (diff)
rebuild for 7.3.0alpha4 new ABI, using patch from https://github.com/php/pecl-database-mysql_xdevapi/pull/5
Diffstat (limited to 'php-pecl-mysql-xdevapi.spec')
-rw-r--r--php-pecl-mysql-xdevapi.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/php-pecl-mysql-xdevapi.spec b/php-pecl-mysql-xdevapi.spec
index cac0920..c56a2b0 100644
--- a/php-pecl-mysql-xdevapi.spec
+++ b/php-pecl-mysql-xdevapi.spec
@@ -25,13 +25,14 @@
Summary: MySQL database access functions
Name: %{?sub_prefix}php-pecl-mysql-xdevapi
Version: 8.0.11
-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: PHP
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
Patch0: https://github.com/php/pecl-database-mysql_xdevapi/commit/f7fe2b6f7a184c92ff50290f3c2adfd4dcead010.patch
+Patch1: https://patch-diff.githubusercontent.com/raw/php/pecl-database-mysql_xdevapi/pull/5.patch
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
@@ -75,6 +76,10 @@ Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: php73u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -124,6 +129,7 @@ sed -e 's/role="test"/role="src"/' \
cd NTS
%patch0 -p1 -b .upstream
+%patch1 -p1 -b .pr5
# Check version as upstream often forget to update this
extver=$(sed -n '/#define PHP_MYSQL_XDEVAPI_VERSION/{s/.* "//;s/".*$//;p}' php_mysql_xdevapi.h)
@@ -312,6 +318,10 @@ fi
%changelog
+* Wed Jul 18 2018 Remi Collet <remi@remirepo.net> - 8.0.11-3
+- rebuild for 7.3.0alpha4 new ABI, using patch from
+ https://github.com/php/pecl-database-mysql_xdevapi/pull/5
+
* Fri Jun 29 2018 Remi Collet <remi@remirepo.net> - 8.0.11-2
- add upstream patch for 7.3