From: John Ellson <ellson@research.att.com> Date: Mon, 23 Jan 2012 00:06:15 +0000 (-0500) Subject: more attempts to work around php api issues X-Git-Tag: LAST_LIBGRAPH~32^2~561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0686dfb873bfae9552680a9af04fc51a239fdf35;p=graphviz more attempts to work around php api issues --- diff --git a/graphviz.spec.in b/graphviz.spec.in index a257320fe..fc3741686 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -158,6 +158,15 @@ BuildRequires: R-devel swig >= 1.3.33 perl-libs %endif %endif +%global php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4) +# Fix private-shared-object-provides +# RPM 4.8 +%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$} +%{?filter_setup} +# RPM 4.9 +%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$ + + #-- main graphviz rpm ------------------------------------------------ Requires: urw-fonts Requires(post): /sbin/ldconfig @@ -510,17 +519,8 @@ Perl extension for graphviz. Group: Applications/Multimedia Summary: PHP extension for graphviz Requires: %{name} = %{version}-%{release}, php -%if 0%{?fedora} >= 17 -Requires: php(zend-abi) = %{php_zend_api} -Requires: php(api) = %{php_core_api} -%else -%if 0%{?fedora} == 16 -Requires: php-api = %{php_apiver} -%else Requires: php(zend-abi) = %{php_zend_api} Requires: php(api) = %{php_core_api} -%endif -%endif %description php PHP extension for graphviz.