Avoid warning about unexpanded macro

%{php_zend_api} is available only when php-devel is installed, which is not
necessary when creating the SRPM. rpm warns about an unexpanded macro.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-04-14 12:50:30 +02:00
parent b6b470bfa1
commit 9a9c45a767
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ Perl extension for graphviz.
%package php
Summary: PHP extension for graphviz
Requires: %{name} = %{version}-%{release}
Requires: php(zend-abi) = %{php_zend_api}
Requires: php(api) = %{php_core_api}
Requires: php(zend-abi) = %{?php_zend_api}%{?!php_zend_api:UNDEFINED}
Requires: php(api) = %{?php_core_api}%{?!php_core_api:UNDEFINED}
%description php
PHP extension for graphviz.