%bcond_without evolution # Evolution Data Server for contacts and calendar
%bcond_without champlain # champlain maps display support
%bcond_with gda # libgda (1.x) support
-%bcond_without goffice # without plugin-goffice
-%bcond_without gnome # without GNOME libs
+%bcond_without goffice # goffice plugin
%bcond_with gnomevfs # gnome-vfs support (GTK+ 2.x only)
%bcond_with gtk2 # GTK+ 2.x instead of 3.x
%bcond_without introspection # GObject introspection
%bcond_without ots # Open Text Summarizer plugin
%bcond_without redland # redland/raptor libraries
+%bcond_with psiconv # psiconv / psion plugin
+%bcond_with wordperfect # wordperfect plugin
#
%define mver 3.0
#
Summary: Multi-platform word processor
Summary(pl.UTF-8): Wieloplatformowy procesor tekstu
Name: abiword
-Version: 3.0.1
-Release: 8
+Version: 3.0.5
+Release: 1
Epoch: 1
License: GPL v2+
Group: X11/Applications/Editors
Source0: http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz
-# Source0-md5: f3f8052e7b4979a43b75775a381e6cb8
+# Source0-md5: a8f218b711450e4ccae43a0522e0e806
Patch0: %{name}-desktop.patch
Patch1: %{name}-mht.patch
Patch2: %{name}-librevenge.patch
-Patch3: %{name}-link-grammar-5.patch
-Patch4: %{name}-link-grammar-5-second.patch
-Patch5: %{name}-parallel.patch
Patch6: %{name}-tidy.patch
Patch7: %{name}-asio.patch
URL: http://www.abisource.com/
BuildRequires: librevenge-devel
BuildRequires: librsvg-devel >= 1:2.16.0
BuildRequires: libsoup-devel >= 2.4
+BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: libtool >= 2:1.5
BuildRequires: libwmf-devel >= 2:0.2.8.4
-BuildRequires: libwpd-devel >= 0.9.0
-BuildRequires: libwpg-devel >= 0.2.0
-BuildRequires: libwps-devel >= 0.2.0
+%{?with_wordperfect:BuildRequires: libwpd-devel >= 0.9.0}
+%{?with_wordperfect:BuildRequires: libwpg-devel >= 0.2.0}
+%{?with_wordperfect:BuildRequires: libwps-devel >= 0.2.0}
BuildRequires: libxml2-devel >= 1:2.6.26
BuildRequires: libxslt-devel
-BuildRequires: link-grammar-devel >= 4.2.1
+BuildRequires: link-grammar-devel >= 5.1.0
BuildRequires: loudmouth-devel >= 1.3.2
%{?with_ots:BuildRequires: ots-devel >= 0.5.0}
BuildRequires: pango-devel
BuildRequires: perl-devel
BuildRequires: pkgconfig >= 1:0.9.0
BuildRequires: popt-devel
-BuildRequires: psiconv-devel >= 0.9.6
+%{?with_psiconv:BuildRequires: psiconv-devel >= 0.9.6}
%{?with_introspection:BuildRequires: python >= 2}
%{?with_introspection:BuildRequires: python-pygobject3 >= 3}
%{?with_redland:BuildRequires: rasqal-devel >= 0.9.17}
Obsoletes: abiword-plugin-t602
Obsoletes: abiword-plugin-urldict
Obsoletes: abiword-plugin-wikipedia
-Obsoletes: abiword-plugin-wordperfect
+%{!?with_wordperfect:Obsoletes: abiword-plugin-wordperfect}
Obsoletes: abiword-plugin-wml
Obsoletes: abiword-plugin-xhtml
Obsoletes: abiword-plugin-xslfo
Summary(pl.UTF-8): Wtyczka Gramatyki dla Abiworda
Group: X11/Applications/Editors
Requires: %{name} = %{epoch}:%{version}-%{release}
-Requires: link-grammar >= 4.2.1
+Requires: link-grammar >= 5.1.0
%description plugin-link-grammar
AbiWord Link Grammar plugin.
%patch0 -p1
%patch1 -p1
%patch2 -p0
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
%patch6 -p1
%patch7 -p1
%{_datadir}/abiword-%{mver}/templates
%{_datadir}/abiword-%{mver}/ui
%{_datadir}/abiword-%{mver}/xsltml
+%{_datadir}/appdata/abiword.appdata.xml
+%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service
%{_desktopdir}/abiword.desktop
%{_iconsdir}/hicolor/*/apps/abiword.*
%{_mandir}/man1/abiword.1*
-%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service
%{_datadir}/telepathy/clients/AbiCollab.client
# These don't add any additional dependencies so there's no reason to split
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/urldict.so
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wikipedia.so
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wml.so
-#%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/xslfo.so
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/grammar.so
+%if %{with psiconv}
%files plugin-psion
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/psion.so
+%endif
%files plugin-wmf
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wmf.so
-#%files plugin-wordperfect
-#%defattr(644,root,root,755)
-#%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so
+%if %{with wordperfect}
+%files plugin-wordperfect
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wordperfect.so
+%attr(755,root,root) %{_libdir}/abiword-%{mver}/plugins/wpg.so
+%endif
%files clipart
%defattr(644,root,root,755)