From fecbf0d20d903b3ea10a692e1873794e8fd0cfc1 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Fri, 12 Oct 2007 14:13:55 +0000 Subject: [PATCH] - added bcond goffice (plugin-goffice doesn't build with goffice-0.5) Changed files: abiword.spec -> 1.144 --- abiword.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/abiword.spec b/abiword.spec index 02a7274..f49a1f6 100644 --- a/abiword.spec +++ b/abiword.spec @@ -5,6 +5,7 @@ # #%bcond_without gnome # without GNOME libs #%bcond_without gda # libgda support +%bcond_with goffice # try build plugin-goffice # %define mver 2.4 # @@ -45,7 +46,7 @@ BuildRequires: libglade2-devel >= 1:2.6.0 BuildRequires: libgnomedb-devel >= 1:1.2.2 BuildRequires: libgnomeprintui-devel >= 2.12.1 BuildRequires: libgnomeui-devel >= 2.15.91 -BuildRequires: libgoffice-devel >= 0.5.0 +%{?with_goffice:BuildRequires: libgoffice-devel >= 0.5.0} BuildRequires: libgsf-devel >= 1.14.1 BuildRequires: libjpeg-devel BuildRequires: libpng-devel @@ -752,7 +753,8 @@ cd abi cd ../abiword-plugins ./nextgen.sh -%configure +%configure \ + %{!?with_goffice:--disable-abigochart} %{__make} %install @@ -834,9 +836,11 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/AbiWord-%{mver}/plugins/libAbiGimp.so +%if %{with goffice} %files plugin-goffice %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/AbiWord-%{mver}/plugins/libAbiGOChart.so +%endif %files plugin-google %defattr(644,root,root,755) -- 2.44.0