]> git.pld-linux.org Git - packages/abiword.git/blobdiff - abiword.spec
- rel 6
[packages/abiword.git] / abiword.spec
index 02a7274f6e18eb4540b9b57e3d3b35eafae0bd2c..0c4da5bc9723c6168fe364eb5c0c61aa789bf8ff 100644 (file)
@@ -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
 #
@@ -12,7 +13,7 @@ Summary:      Multi-platform word processor
 Summary(pl.UTF-8):     Wieloplatformowy procesor tekstu
 Name:          abiword
 Version:       2.4.6
-Release:       5.1
+Release:       6
 Epoch:         1
 License:       GPL
 Group:         X11/Applications
@@ -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
@@ -725,8 +726,8 @@ Jest to teczka clipartów używanych przez AbiWorda.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch5 -p1
 %patch4 -p0
+%patch5 -p1
 %patch6 -p0
 
 # use generic icon name
@@ -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)
This page took 0.033339 seconds and 4 git commands to generate.