From 9a9c45a76712661d5efb1ba2fcb0ffacb7dff86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 14 Apr 2018 12:50:30 +0200 Subject: [PATCH] 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. --- graphviz.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphviz.spec b/graphviz.spec index c26584a..801e058 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -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.