From d0e7faa1c9be117f7b38da291b1f1f246b65b968 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Wed, 19 Feb 2014 16:07:04 -0500 Subject: [PATCH] attempt to deal with php versioning crap on EL5 (correction) --- graphviz.spec.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/graphviz.spec.in b/graphviz.spec.in index 0e0fe316f..123f0e911 100644 --- a/graphviz.spec.in +++ b/graphviz.spec.in @@ -664,10 +664,15 @@ Perl extension for graphviz. %package lang-php Group: Applications/Multimedia Summary: PHP extension for graphviz +Requires: %{name} = %{version}-%{release} %if %rhel == 5 -Requires: %{name} = %{version}-%{release}, php53 -%else -Requires: %{name} = %{version}-%{release}, php +Requires: php53 +%endif +%if %rhel >= 5 +Requires: php +%endif +%if 0%{?fedora} +Requires: php %endif Obsoletes: %{name}-php -- 2.40.0