]> granicus.if.org Git - graphviz/commitdiff
fix for distros without php
authorellson <devnull@localhost>
Thu, 16 Jul 2009 12:12:55 +0000 (12:12 +0000)
committerellson <devnull@localhost>
Thu, 16 Jul 2009 12:12:55 +0000 (12:12 +0000)
graphviz.spec.in

index 049c2e6d8290140b2d1f9cdf53c9fb4dea598403..fa405402722bf5ceb515be8b7dd6c445d6dff435 100644 (file)
@@ -735,13 +735,14 @@ find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
 chmod -x %{buildroot}%{_datadir}/%{name}/lefty/*
 cp -a %{buildroot}%{_datadir}/%{name}/doc __doc
 rm -rf %{buildroot}%{_datadir}/%{name}/doc
-
+%if 0%{?PHP}
 # PHP configuration file
 %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
 %{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini
 ; Enable %{name} extension module
 extension=gv.so
 __EOF__
+%endif
 
 %check
 %ifnarch ppc64 ppc