diff options
Diffstat (limited to 'php-pecl-mosquitto.spec')
-rw-r--r-- | php-pecl-mosquitto.spec | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/php-pecl-mosquitto.spec b/php-pecl-mosquitto.spec index edf123e..a966fb5 100644 --- a/php-pecl-mosquitto.spec +++ b/php-pecl-mosquitto.spec @@ -23,12 +23,16 @@ Summary: Extension for libmosquitto Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.4.0 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD Group: Development/Languages URL: http://pecl.php.net/package/%{proj_name} Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz +# For https://github.com/etsy/phan/issues/1015 +# From https://github.com/mgdm/Mosquitto-PHP/pull/73 +Patch0: https://patch-diff.githubusercontent.com/raw/mgdm/Mosquitto-PHP/pull/73.patch + BuildRequires: %{?scl_prefix}php-devel > 5.3 BuildRequires: %{?scl_prefix}php-pear BuildRequires: mosquitto-devel @@ -68,6 +72,10 @@ Obsoletes: php70w-pecl-%{pecl_name} Obsoletes: php71u-pecl-%{pecl_name} Obsoletes: php71w-pecl-%{pecl_name} %endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name} +Obsoletes: php72w-pecl-%{pecl_name} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -94,6 +102,8 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS +%patch0 -p1 -b .pr73 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_MOSQUITTO_VERSION/{s/.* "//;s/".*$//;p}' php_mosquitto.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then @@ -209,6 +219,10 @@ cd ../ZTS %changelog +* Thu Jul 13 2017 Remi Collet <remi@remirepo.net> - 0.4.0-2 +- add patch for https://github.com/etsy/phan/issues/1015 + from https://github.com/mgdm/Mosquitto-PHP/pull/73 + * Tue Mar 14 2017 Remi Collet <remi@remirepo.net> - 0.4.0-1 - Update to 0.4.0 |