diff options
author | Remi Collet <remi@remirepo.net> | 2017-06-24 08:07:37 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2017-06-24 08:07:37 +0200 |
commit | 82738c8acdf7a4034f20e010c6963f115ecc5416 (patch) | |
tree | 21e658ff20adba59584420aa6679cb2e7e3740e5 /php-pecl-druid.spec | |
parent | 7f1ae8035085b4e10f4f28de8021147e92665eaf (diff) |
fix for 7.2
Diffstat (limited to 'php-pecl-druid.spec')
-rw-r--r-- | php-pecl-druid.spec | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/php-pecl-druid.spec b/php-pecl-druid.spec index b162f89..ee44cc9 100644 --- a/php-pecl-druid.spec +++ b/php-pecl-druid.spec @@ -25,13 +25,14 @@ Summary: A Druid driver for PHP Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.9.2 -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: ASL 2.0 Group: Development/Languages URL: http://pecl.php.net/package/%{proj_name} Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: 5ba2256141c7f724920bde9eddfd4f666c309d61.patch + BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json @@ -75,6 +76,10 @@ Obsoletes: php70w-pecl-%{pecl_name} <= %{version} Obsoletes: php71u-pecl-%{pecl_name} <= %{version} Obsoletes: php71w-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name} <= %{version} +Obsoletes: php72w-pecl-%{pecl_name} <= %{version} +%endif %endif %if 0%{?fedora} < 20 && 0%{?rhel} < 7 @@ -102,6 +107,7 @@ sed -e 's/role="test"/role="src"/' \ mv %{proj_name}-%{version} NTS cd NTS +%patch0 -p1 -b .pr8 # Sanity check, really often broken extver=$(sed -n '/#define PHP_DRUID_VERSION/{s/.* "//;s/".*$//;p}' php_druid.h) @@ -158,7 +164,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} %{?dtsenable} make -C NTS install INSTALL_ROOT=%{buildroot} @@ -219,12 +224,7 @@ cd ../ZTS %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{?_licensedir:%license NTS/LICENSE} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -239,6 +239,10 @@ rm -rf %{buildroot} %changelog +* Sat Jun 24 2017 Remi Collet <remi@fedoraproject.org> - 0.9.2-2 +- add patch for PHP 7.2 from + https://github.com/Neeke/PHP-Druid/pull/8 + * Mon Jan 09 2017 Remi Collet <remi@fedoraproject.org> - 0.9.2-1 - Update to 0.9.2 |